projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make the uninitialized warning depend on the -wuninitialized switch
[cparser]
/
warning.c
diff --git
a/warning.c
b/warning.c
index
2c4ce12
..
34062c8
100644
(file)
--- a/
warning.c
+++ b/
warning.c
@@
-1,6
+1,6
@@
/*
* This file is part of cparser.
/*
* This file is part of cparser.
- * Copyright (C) 2007-200
8
Matthias Braun <matze@braunis.de>
+ * Copyright (C) 2007-200
9
Matthias Braun <matze@braunis.de>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
*
* 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,
.switch_default = false,
.switch_enum = false,
.traditional = false,
+ .uninitialized = true,
.unknown_pragmas = true,
.unreachable_code = false,
.unused_function = false,
.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(sign_compare);
SET(strict_prototypes);
SET(switch_enum);
+ SET(uninitialized);
SET(unknown_pragmas);
SET(unreachable_code);
SET(unused_function);
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("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") {
OPT("unknown-pragmas", unknown_pragmas);
OPT("unreachable-code", unreachable_code);
OPTX("unused") {