]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Do we REALLY need to listen to splint?
authorWolfgang Bumiller <blub@speed.at>
Sun, 30 Dec 2012 10:59:29 +0000 (11:59 +0100)
committerWolfgang Bumiller <blub@speed.at>
Sun, 30 Dec 2012 10:59:29 +0000 (11:59 +0100)
parser.c

index b32f6230e2f50be7c3766737bf5db9d516f16d36..1a9e40dd2f89691b828e43746f2171ea49d2eda9 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -4366,7 +4366,7 @@ static bool parser_check_qualifiers(parser_t *parser, const ast_value *var, cons
     }
     av = (var  ->expression.flags & AST_FLAG_NORETURN);
     ao = (proto->expression.flags & AST_FLAG_NORETURN);
-    if (av != ao) {
+    if (!av != !ao) {
         return !parsewarning(parser, WARN_DIFFERENT_ATTRIBUTES,
                              "`%s` declared with different attributes%s\n"
                              " -> previous declaration here: %s:%i",