diff --git a/adb/Android.mk b/adb/Android.mk index e17240bad..be04cfa10 100644 --- a/adb/Android.mk +++ b/adb/Android.mk @@ -18,11 +18,9 @@ ADB_COMMON_CFLAGS := \ -DADB_REVISION='"$(adb_version)"' \ ADB_COMMON_linux_CFLAGS := \ - -std=c++14 \ -Wexit-time-destructors \ ADB_COMMON_darwin_CFLAGS := \ - -std=c++14 \ -Wexit-time-destructors \ # Define windows.h and tchar.h Unicode preprocessor symbols so that diff --git a/debuggerd/Android.mk b/debuggerd/Android.mk index fdedb767e..1fc850f38 100644 --- a/debuggerd/Android.mk +++ b/debuggerd/Android.mk @@ -1,7 +1,6 @@ LOCAL_PATH := $(call my-dir) common_cppflags := \ - -std=gnu++11 \ -W \ -Wall \ -Wextra \ diff --git a/fastboot/Android.mk b/fastboot/Android.mk index d69a81fc3..286de5bee 100644 --- a/fastboot/Android.mk +++ b/fastboot/Android.mk @@ -37,7 +37,6 @@ LOCAL_SRC_FILES := \ LOCAL_MODULE := fastboot LOCAL_MODULE_TAGS := debug LOCAL_MODULE_HOST_OS := darwin linux windows -LOCAL_CONLYFLAGS += -std=gnu99 LOCAL_CFLAGS += -Wall -Wextra -Werror -Wunreachable-code LOCAL_CFLAGS += -DFASTBOOT_REVISION='"$(fastboot_version)"' diff --git a/libbacktrace/Android.bp b/libbacktrace/Android.bp index 93d997bf7..85b559768 100644 --- a/libbacktrace/Android.bp +++ b/libbacktrace/Android.bp @@ -21,8 +21,6 @@ cc_defaults { "-Wall", "-Werror", ], - conlyflags: ["-std=gnu99"], - cppflags: ["-std=gnu++11"], clang_cflags: ["-Wno-inline-asm"], diff --git a/libbacktrace/Android.mk b/libbacktrace/Android.mk index 56a397016..bb1732587 100644 --- a/libbacktrace/Android.mk +++ b/libbacktrace/Android.mk @@ -20,12 +20,6 @@ libbacktrace_common_cflags := \ -Wall \ -Werror \ -libbacktrace_common_conlyflags := \ - -std=gnu99 \ - -libbacktrace_common_cppflags := \ - -std=gnu++11 \ - libbacktrace_common_c_includes := \ external/libunwind/include/tdep \ diff --git a/libcrypto_utils/Android.bp b/libcrypto_utils/Android.bp index ca7bd3119..f2560e6a3 100644 --- a/libcrypto_utils/Android.bp +++ b/libcrypto_utils/Android.bp @@ -24,7 +24,6 @@ cc_library { "-Wall", "-Wextra", "-Werror", - "-std=c99", ], local_include_dirs: ["include"], export_include_dirs: ["include"], diff --git a/libcrypto_utils/tests/Android.mk b/libcrypto_utils/tests/Android.mk index bdaef71f2..ef3d0cf57 100644 --- a/libcrypto_utils/tests/Android.mk +++ b/libcrypto_utils/tests/Android.mk @@ -19,6 +19,6 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := libcrypto_utils_test LOCAL_SRC_FILES := android_pubkey_test.cpp -LOCAL_CFLAGS := -Wall -Werror -Wextra -std=c++11 +LOCAL_CFLAGS := -Wall -Werror -Wextra LOCAL_SHARED_LIBRARIES := libcrypto_utils libcrypto include $(BUILD_HOST_NATIVE_TEST) diff --git a/libcutils/Android.bp b/libcutils/Android.bp index 955c0ecd6..94275bd1e 100644 --- a/libcutils/Android.bp +++ b/libcutils/Android.bp @@ -89,10 +89,6 @@ cc_library { static_libs: ["libdebuggerd_client"], export_static_lib_headers: ["libdebuggerd_client"], - - cflags: [ - "-std=gnu90", - ], }, android_arm: { diff --git a/liblog/tests/Android.mk b/liblog/tests/Android.mk index a755b980c..158987a25 100644 --- a/liblog/tests/Android.mk +++ b/liblog/tests/Android.mk @@ -28,7 +28,6 @@ benchmark_c_flags := \ -Wall -Wextra \ -Werror \ -fno-builtin \ - -std=gnu++11 benchmark_src_files := \ benchmark_main.cpp \ @@ -54,7 +53,6 @@ test_c_flags := \ -Wall -Wextra \ -Werror \ -fno-builtin \ - -std=gnu++11 test_src_files := \ liblog_test.cpp diff --git a/libmemunreachable/Android.bp b/libmemunreachable/Android.bp index 85bc421c3..4662368fe 100644 --- a/libmemunreachable/Android.bp +++ b/libmemunreachable/Android.bp @@ -2,7 +2,6 @@ cc_defaults { name: "libmemunreachable_defaults", cflags: [ - "-std=c++14", "-Wall", "-Wextra", "-Werror", diff --git a/libnativebridge/Android.bp b/libnativebridge/Android.bp index 598dfcdc9..5fb56f2d0 100644 --- a/libnativebridge/Android.bp +++ b/libnativebridge/Android.bp @@ -12,7 +12,6 @@ cc_library { "-Wall", ], cppflags: [ - "-std=gnu++11", "-fvisibility=protected", ], diff --git a/libnativebridge/tests/Android.mk b/libnativebridge/tests/Android.mk index 72659396c..5ad1569ed 100644 --- a/libnativebridge/tests/Android.mk +++ b/libnativebridge/tests/Android.mk @@ -31,7 +31,6 @@ shared_libraries := \ $(foreach file,$(test_src_files), \ $(eval include $(CLEAR_VARS)) \ $(eval LOCAL_CLANG := true) \ - $(eval LOCAL_CPPFLAGS := -std=gnu++11) \ $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \ $(eval LOCAL_SRC_FILES := $(file)) \ $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \ @@ -41,7 +40,6 @@ $(foreach file,$(test_src_files), \ $(foreach file,$(test_src_files), \ $(eval include $(CLEAR_VARS)) \ $(eval LOCAL_CLANG := true) \ - $(eval LOCAL_CPPFLAGS := -std=gnu++11) \ $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \ $(eval LOCAL_SRC_FILES := $(file)) \ $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \ diff --git a/libnativebridge/tests/Android.nativebridge-dummy.mk b/libnativebridge/tests/Android.nativebridge-dummy.mk index 551765a39..e556f805f 100644 --- a/libnativebridge/tests/Android.nativebridge-dummy.mk +++ b/libnativebridge/tests/Android.nativebridge-dummy.mk @@ -12,7 +12,7 @@ LOCAL_MODULE:= libnativebridge-dummy LOCAL_SRC_FILES:= $(NATIVE_BRIDGE_COMMON_SRC_FILES) LOCAL_CLANG := true LOCAL_CFLAGS += -Werror -Wall -LOCAL_CPPFLAGS := -std=gnu++11 -fvisibility=protected +LOCAL_CPPFLAGS := -fvisibility=protected LOCAL_SHARED_LIBRARIES := libdl LOCAL_MULTILIB := both @@ -27,7 +27,7 @@ LOCAL_MODULE:= libnativebridge-dummy LOCAL_SRC_FILES:= $(NATIVE_BRIDGE_COMMON_SRC_FILES) LOCAL_CLANG := true LOCAL_CFLAGS += -Werror -Wall -LOCAL_CPPFLAGS := -std=gnu++11 -fvisibility=protected +LOCAL_CPPFLAGS := -fvisibility=protected LOCAL_LDFLAGS := -ldl LOCAL_MULTILIB := both @@ -48,7 +48,7 @@ LOCAL_MODULE:= libnativebridge2-dummy LOCAL_SRC_FILES:= $(NATIVE_BRIDGE2_COMMON_SRC_FILES) LOCAL_CLANG := true LOCAL_CFLAGS += -Werror -Wall -LOCAL_CPPFLAGS := -std=gnu++11 -fvisibility=protected +LOCAL_CPPFLAGS := -fvisibility=protected LOCAL_SHARED_LIBRARIES := libdl LOCAL_MULTILIB := both @@ -63,7 +63,7 @@ LOCAL_MODULE:= libnativebridge2-dummy LOCAL_SRC_FILES:= $(NATIVE_BRIDGE2_COMMON_SRC_FILES) LOCAL_CLANG := true LOCAL_CFLAGS += -Werror -Wall -LOCAL_CPPFLAGS := -std=gnu++11 -fvisibility=protected +LOCAL_CPPFLAGS := -fvisibility=protected LOCAL_LDFLAGS := -ldl LOCAL_MULTILIB := both diff --git a/libnativeloader/Android.bp b/libnativeloader/Android.bp index b4a69bcfc..30531bcbd 100644 --- a/libnativeloader/Android.bp +++ b/libnativeloader/Android.bp @@ -24,7 +24,6 @@ cc_library { "-Wall", ], cppflags: [ - "-std=gnu++14", "-fvisibility=hidden", ], export_include_dirs: ["include"], diff --git a/libsync/Android.bp b/libsync/Android.bp index 4948aa524..a4e55992c 100644 --- a/libsync/Android.bp +++ b/libsync/Android.bp @@ -34,7 +34,6 @@ cc_test { "-g", "-Wall", "-Werror", - "-std=gnu++11", "-Wno-missing-field-initializers", "-Wno-sign-compare", ], diff --git a/logcat/tests/Android.mk b/logcat/tests/Android.mk index a28664e30..99c2e0a88 100644 --- a/logcat/tests/Android.mk +++ b/logcat/tests/Android.mk @@ -25,7 +25,6 @@ test_c_flags := \ -Wall -Wextra \ -Werror \ -fno-builtin \ - -std=gnu++11 # ----------------------------------------------------------------------------- # Benchmarks (actually a gTest where the result code does not matter) diff --git a/logwrapper/Android.bp b/logwrapper/Android.bp index 41f072601..7ee04642a 100644 --- a/logwrapper/Android.bp +++ b/logwrapper/Android.bp @@ -14,7 +14,6 @@ cc_library { local_include_dirs: ["include"], cflags: [ "-Werror", - "-std=gnu99", ], } @@ -31,6 +30,5 @@ cc_binary { ], cflags: [ "-Werror", - "-std=gnu99", ], } diff --git a/toolbox/Android.mk b/toolbox/Android.mk index 4852fa4f8..5319ff4ab 100644 --- a/toolbox/Android.mk +++ b/toolbox/Android.mk @@ -42,7 +42,6 @@ LOCAL_SRC_FILES := \ LOCAL_CFLAGS += $(common_cflags) LOCAL_C_INCLUDES += $(LOCAL_PATH)/upstream-netbsd/include/ -LOCAL_CONLYFLAGS += -std=gnu99 LOCAL_SHARED_LIBRARIES := \ libcutils \