diff options
Diffstat (limited to 'meta/recipes-devtools/apt/apt/0001-remove-Wsuggest-attribute-from-CFLAGS.patch')
-rw-r--r-- | meta/recipes-devtools/apt/apt/0001-remove-Wsuggest-attribute-from-CFLAGS.patch | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/meta/recipes-devtools/apt/apt/0001-remove-Wsuggest-attribute-from-CFLAGS.patch b/meta/recipes-devtools/apt/apt/0001-remove-Wsuggest-attribute-from-CFLAGS.patch index 7c42ff07b8..47870e3c8b 100644 --- a/meta/recipes-devtools/apt/apt/0001-remove-Wsuggest-attribute-from-CFLAGS.patch +++ b/meta/recipes-devtools/apt/apt/0001-remove-Wsuggest-attribute-from-CFLAGS.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 2bff7ee06a4f96e7d326991d61fb86f8aa651d48 Mon Sep 17 00:00:00 2001 | 1 | From 9fdf50d63df08ee65e7d8e62c35f19ac4841bca9 Mon Sep 17 00:00:00 2001 |
2 | From: Roy Li <rongqing.li@windriver.com> | 2 | From: Roy Li <rongqing.li@windriver.com> |
3 | Date: Wed, 27 May 2015 09:48:45 +0800 | 3 | Date: Wed, 27 May 2015 09:48:45 +0800 |
4 | Subject: [PATCH] remove Wsuggest-attribute from CXXFLAGS | 4 | Subject: [PATCH] remove Wsuggest-attribute from CXXFLAGS |
@@ -15,29 +15,29 @@ Signed-off-by: Roy Li <rongqing.li@windriver.com> | |||
15 | 2 files changed, 2 deletions(-) | 15 | 2 files changed, 2 deletions(-) |
16 | 16 | ||
17 | diff --git a/buildlib/environment.mak.in b/buildlib/environment.mak.in | 17 | diff --git a/buildlib/environment.mak.in b/buildlib/environment.mak.in |
18 | index b0a8d9d..91ed011 100644 | 18 | index 9620722..c344d01 100644 |
19 | --- a/buildlib/environment.mak.in | 19 | --- a/buildlib/environment.mak.in |
20 | +++ b/buildlib/environment.mak.in | 20 | +++ b/buildlib/environment.mak.in |
21 | @@ -11,7 +11,6 @@ CPPFLAGS+= @CPPFLAGS@ @DEFS@ -D_REENTRANT -D_FORTIFY_SOURCE=2 | 21 | @@ -14,7 +14,6 @@ CXXFLAGS+= @CXXFLAGS@ -Wall -Wextra |
22 | CXX = @CXX@ | ||
23 | CXXFLAGS+= @CXXFLAGS@ -Wall -Wextra | ||
24 | CXXFLAGS+= -Wcast-align -Wlogical-op -Wredundant-decls -Wmissing-declarations -Wunsafe-loop-optimizations | 22 | CXXFLAGS+= -Wcast-align -Wlogical-op -Wredundant-decls -Wmissing-declarations -Wunsafe-loop-optimizations |
25 | -CXXFLAGS+= -Wsuggest-attribute=pure -Wsuggest-attribute=const -Wsuggest-attribute=noreturn | 23 | CXXFLAGS+= -Wctor-dtor-privacy -Wdisabled-optimization -Winit-self -Wmissing-include-dirs -Wnoexcept -Wsign-promo -Wundef |
24 | # suggests methods which already have such an attribute | ||
25 | -#CXXFLAGS+= -Wsuggest-attribute=pure -Wsuggest-attribute=const -Wsuggest-attribute=noreturn | ||
26 | # sanitize options to be enabled for testing | ||
27 | #CXXFLAGS+= -fsanitize=address -fsanitize=undefined -fno-sanitize=vptr | ||
26 | # a bit too pedantic to be run by default | 28 | # a bit too pedantic to be run by default |
27 | #CXXFLAGS+= -Wpedantic -Wno-long-long -Wno-vla -Wno-variadic-macros | ||
28 | NUM_PROCS = @NUM_PROCS@ | ||
29 | diff --git a/test/libapt/makefile b/test/libapt/makefile | 29 | diff --git a/test/libapt/makefile b/test/libapt/makefile |
30 | index 7f23ace..e805f13 100644 | 30 | index 5ff9cf6..c5b5190 100644 |
31 | --- a/test/libapt/makefile | 31 | --- a/test/libapt/makefile |
32 | +++ b/test/libapt/makefile | 32 | +++ b/test/libapt/makefile |
33 | @@ -39,7 +39,6 @@ CXXFLAGS += -pthread | 33 | @@ -40,7 +40,6 @@ CXXFLAGS += -pthread |
34 | # disable some flags for gtest again | 34 | # disable some flags for gtest again |
35 | CXXFLAGS+= -Wno-missing-declarations | 35 | CXXFLAGS+= -Wno-missing-declarations |
36 | CXXFLAGS+= -Wno-missing-field-initializers | 36 | CXXFLAGS+= -Wno-missing-field-initializers |
37 | -CXXFLAGS+= -Wno-suggest-attribute=pure -Wno-suggest-attribute=const -Wno-suggest-attribute=noreturn | 37 | -CXXFLAGS+= -Wno-suggest-attribute=pure -Wno-suggest-attribute=const -Wno-suggest-attribute=noreturn |
38 | CXXFLAGS+= -Wno-undef | ||
38 | 39 | ||
39 | # All Google Test headers. Usually you shouldn't change this definition. | 40 | # All Google Test headers. Usually you shouldn't change this definition. |
40 | GTEST_HEADERS = /usr/include/gtest/*.h \ | ||
41 | -- | 41 | -- |
42 | 1.9.1 | 42 | 2.1.4 |
43 | 43 | ||