X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=warning.c;h=f2fd2b9243f7bb0bbfbb950bb04409e6304c082b;hb=f618d56a33190711d5bf34f1341a268667ce4645;hp=8de3339e35b0acb0c301fc8aecbbdafd981dfc0b;hpb=c6083a78b21bc4e8a9bed0fe21b042b873e23fc7;p=cparser diff --git a/warning.c b/warning.c index 8de3339..f2fd2b9 100644 --- a/warning.c +++ b/warning.c @@ -1,6 +1,6 @@ /* * This file is part of cparser. - * Copyright (C) 2007-2008 Matthias Braun + * Copyright (C) 2007-2009 Matthias Braun * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -53,6 +53,7 @@ warning_t warning = { .old_style_definition = false, .packed = false, .padded = false, + .parentheses = false, .pointer_arith = true, .redundant_decls = true, .return_type = true, @@ -104,6 +105,7 @@ void set_warning_opt(const char *const opt) SET(init_self); SET(main); SET(nonnull); + SET(parentheses); SET(pointer_arith); SET(redundant_decls); SET(return_type); @@ -166,6 +168,7 @@ void set_warning_opt(const char *const opt) OPT("old-style-definition", old_style_definition); OPT("packed", packed); OPT("padded", padded); + OPT("parentheses", parentheses); OPT("pointer-arith", pointer_arith); OPT("redundant-decls", redundant_decls); OPT("return-type", return_type);