aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2016-10-31 13:13:11 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-03-02 19:12:39 +0100
commit12e122908c3833ec86323354c31aa613fb40b8f6 (patch)
tree94ac3af83e9cd7415024c054b7dedc3124daff47
parent1cd5d64b714ec97f2169ce59549ea1ff47da358f (diff)
downloadsparse-dev-12e122908c3833ec86323354c31aa613fb40b8f6.tar.gz
By default disable the warning flag '-Wunknown-attribute'
Generally, we're not interested by those warnings, but we can always explicitly ask for them if needed. So make the flag '-Wunknown-attribute' off by default. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--lib.c2
-rw-r--r--validation/Wunknown-attribute-def.c4
2 files changed, 1 insertions, 5 deletions
diff --git a/lib.c b/lib.c
index 0bdb6062..645132a8 100644
--- a/lib.c
+++ b/lib.c
@@ -250,7 +250,7 @@ int Wtransparent_union = 0;
int Wtypesign = 0;
int Wundef = 0;
int Wuninitialized = 1;
-int Wunknown_attribute = 1;
+int Wunknown_attribute = 0;
int Wvla = 1;
int dump_macro_defs = 0;
diff --git a/validation/Wunknown-attribute-def.c b/validation/Wunknown-attribute-def.c
index 0c0868d6..cccce357 100644
--- a/validation/Wunknown-attribute-def.c
+++ b/validation/Wunknown-attribute-def.c
@@ -2,8 +2,4 @@ static int foo(void) __attribute__((unknown_attribute));
/*
* check-name: warn-unknown-attribute
- *
- * check-error-start
-Wunknown-attribute-def.c:1:37: warning: attribute 'unknown_attribute': unknown attribute
- * check-error-end
*/