X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=warning.c;h=34062c8cbfefcbcbcf2ed65cc267f5dd90d3079c;hb=c4004b40b7e11ae7ff32c26b330e5f33a7abe2d3;hp=2c4ce12f5b91d48d243c6af535854ef38adff6dc;hpb=abfe00dd0c1451f075c0a5863d44259ef8891657;p=cparser diff --git a/warning.c b/warning.c index 2c4ce12..34062c8 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 @@ -64,6 +64,7 @@ warning_t warning = { .switch_default = false, .switch_enum = false, .traditional = false, + .uninitialized = true, .unknown_pragmas = true, .unreachable_code = false, .unused_function = false, @@ -113,6 +114,7 @@ void set_warning_opt(const char *const opt) SET(sign_compare); SET(strict_prototypes); SET(switch_enum); + SET(uninitialized); SET(unknown_pragmas); SET(unreachable_code); SET(unused_function); @@ -178,6 +180,7 @@ void set_warning_opt(const char *const opt) OPT("switch-default", switch_default); OPT("switch-enum", switch_enum); OPT("traditional", traditional); + OPT("uninitialized", uninitialized); OPT("unknown-pragmas", unknown_pragmas); OPT("unreachable-code", unreachable_code); OPTX("unused") {