[Bug middle-end/111669] bogus -Wnonnull in conditionally executed code

2025-02-21 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111669 Jeffrey A. Law changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug middle-end/111669] bogus -Wnonnull in conditionally executed code

2023-10-04 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111669 Xi Ruoyao changed: What|Removed |Added Severity|normal |enhancement --- Comment #7 from Xi Ruoyao

[Bug middle-end/111669] bogus -Wnonnull in conditionally executed code

2023-10-04 Thread zfigura at codeweavers dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111669 --- Comment #6 from Zeb Figura --- It is my impression that gcc is interested in avoiding false positives for its warnings. This isn't to say that there aren't some number of false positives in existence, but it is my impression that gcc is inte

[Bug middle-end/111669] bogus -Wnonnull in conditionally executed code

2023-10-04 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111669 --- Comment #5 from Xi Ruoyao --- And you can tell the compiler some fact about the semantics of the Windoge API functions if you really need -Werror=nonnull (though I cannot see any reason you must use -Werror here): int GetSystemDirectory16(c

[Bug middle-end/111669] bogus -Wnonnull in conditionally executed code

2023-10-04 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111669 --- Comment #4 from Xi Ruoyao --- (In reply to Zeb Figura from comment #3) > (In reply to Xi Ruoyao from comment #2) > > (In reply to Xi Ruoyao from comment #1) > > > The warning given for the reduced test case is correct because it does not > >

[Bug middle-end/111669] bogus -Wnonnull in conditionally executed code

2023-10-04 Thread zfigura at codeweavers dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111669 --- Comment #3 from Zeb Figura --- (In reply to Xi Ruoyao from comment #2) > (In reply to Xi Ruoyao from comment #1) > > The warning given for the reduced test case is correct because it does not > > make sense. It should be just rewritten as >

[Bug middle-end/111669] bogus -Wnonnull in conditionally executed code

2023-10-03 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111669 --- Comment #2 from Xi Ruoyao --- (In reply to Xi Ruoyao from comment #1) > The warning given for the reduced test case is correct because it does not > make sense. It should be just rewritten as I mean, the code does not make sense. And the

[Bug middle-end/111669] bogus -Wnonnull in conditionally executed code

2023-10-03 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111669 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org --- Comment #1 fr