projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
If a K&R function definition has a variadic prototype earlier, then make the function...
[cparser]
/
warning.c
diff --git
a/warning.c
b/warning.c
index
8de3339
..
f2fd2b9
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
@@
-53,6
+53,7
@@
warning_t warning = {
.old_style_definition = false,
.packed = false,
.padded = false,
.old_style_definition = false,
.packed = false,
.padded = false,
+ .parentheses = false,
.pointer_arith = true,
.redundant_decls = true,
.return_type = true,
.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(init_self);
SET(main);
SET(nonnull);
+ SET(parentheses);
SET(pointer_arith);
SET(redundant_decls);
SET(return_type);
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("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);
OPT("pointer-arith", pointer_arith);
OPT("redundant-decls", redundant_decls);
OPT("return-type", return_type);