projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The standard calls it "file scope", so rename global_scope to file_scope.
[cparser]
/
warning.c
diff --git
a/warning.c
b/warning.c
index
3867718
..
894b782
100644
(file)
--- a/
warning.c
+++ b/
warning.c
@@
-22,6
+22,7
@@
#include "warning.h"
warning_t warning = {
#include "warning.h"
warning_t warning = {
+ .address = true,
.aggregate_return = false,
.attribute = true,
.cast_qual = false,
.aggregate_return = false,
.attribute = true,
.cast_qual = false,
@@
-87,6
+88,7
@@
void set_warning_opt(const char *const opt)
#define OPT(x, y) OPTX(x) SET(y)
OPTX("all") {
/* Note: this switched on a lot of more warnings than gcc's -Wall */
#define OPT(x, y) OPTX(x) SET(y)
OPTX("all") {
/* Note: this switched on a lot of more warnings than gcc's -Wall */
+ SET(address);
SET(attribute);
SET(char_subscripts);
SET(comment);
SET(attribute);
SET(char_subscripts);
SET(comment);
@@
-112,6
+114,7
@@
void set_warning_opt(const char *const opt)
SET(unused_value);
SET(unused_variable);
}
SET(unused_value);
SET(unused_variable);
}
+ OPT("address", address);
OPT("aggregate-return", aggregate_return);
OPT("attribute", attribute);
OPT("cast-qual", cast_qual);
OPT("aggregate-return", aggregate_return);
OPT("attribute", attribute);
OPT("cast-qual", cast_qual);
@@
-157,7
+160,7
@@
void set_warning_opt(const char *const opt)
OPT("old-style-definition", old_style_definition);
OPT("packed", packed);
OPT("padded", padded);
OPT("old-style-definition", old_style_definition);
OPT("packed", packed);
OPT("padded", padded);
- OPT("pointer
_
arith", pointer_arith);
+ OPT("pointer
-
arith", pointer_arith);
OPT("redundant-decls", redundant_decls);
OPT("return-type", return_type);
OPT("shadow", shadow);
OPT("redundant-decls", redundant_decls);
OPT("return-type", return_type);
OPT("shadow", shadow);