projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
591b936
)
pass -ansi flag to preprocessor
author
Matthias Braun
<matze@braunis.de>
Tue, 27 Sep 2011 15:13:10 +0000
(17:13 +0200)
committer
Matthias Braun
<matze@braunis.de>
Thu, 13 Oct 2011 09:27:58 +0000
(11:27 +0200)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index
85964f0
..
47b33d4
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-1463,8
+1463,9
@@
int main(int argc, char **argv)
} else if (streq(option, "pg")) {
set_be_option("gprof");
add_flag(&ldflags_obst, "-pg");
- } else if (streq(option, "pedantic") ||
- streq(option, "ansi")) {
+ } else if (streq(option, "ansi")) {
+ add_flag(&cppflags_obst, "-ansi");
+ } else if (streq(option, "pedantic")) {
fprintf(stderr, "warning: ignoring gcc option '%s'\n", arg);
} else if (strstart(option, "std=")) {
const char *const o = &option[4];