Do we REALLY need to listen to splint?

This commit is contained in:
Wolfgang Bumiller 2012-12-30 11:59:29 +01:00
parent d9282ed988
commit 5a013c5b89

View file

@ -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",