From 5a013c5b896d5b6722837d451ed61c1225a60e76 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Sun, 30 Dec 2012 11:59:29 +0100 Subject: [PATCH] Do we REALLY need to listen to splint? --- parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.c b/parser.c index b32f623..1a9e40d 100644 --- 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",