[Bug c/105131] Warning for mismatched declaration/definition with enum

2022-05-18 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105131 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c/105131] Warning for mismatched declaration/definition with enum

2022-05-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105131 --- Comment #3 from CVS Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:7da9a089608b0ca09683332ce014fb6184842724 commit r13-627-g7da9a089608b0ca09683332ce014fb6184842724 Author: Marek Polacek Date: Fri

[Bug c/105131] Warning for mismatched declaration/definition with enum

2022-05-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105131 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug c/105131] Warning for mismatched declaration/definition with enum

2022-04-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105131 --- Comment #2 from Marek Polacek --- Maybe something like the attached patch would work (but needs a new option, maybe -Wenum-int-mismatch, possibly enabled by -Wall?). With it, the following test enum E { l = -1, z = 0, g = 1 }; int foo(void

[Bug c/105131] Warning for mismatched declaration/definition with enum

2022-04-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105131 Marek Polacek changed: What|Removed |Added Last reconfirmed||2022-04-01 Ever confirmed|0