Commit 31b4b27
committed
{cs,gcc-}parser: eliminate warning[-Wodr] reports with -flto
Error: COMPILER_WARNING:
csparser.cc:87:6: warning[-Wodr]: type 'EToken' violates the C++ One Definition Rule
gcc-parser.cc:27:6: note: an enum with different value name is defined in another translation unit
csparser.cc:89:5: note: name 'T_EMPTY' differs from name 'T_UNKNOWN' defined in another translation unit
gcc-parser.cc:29:5: note: mismatching definition1 parent 456931b commit 31b4b27
2 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
196 | 198 | | |
197 | 199 | | |
198 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
199 | 205 | | |
200 | 206 | | |
201 | 207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
554 | 556 | | |
555 | 557 | | |
556 | 558 | | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
557 | 563 | | |
558 | 564 | | |
559 | 565 | | |
| |||
0 commit comments