-
-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compiler warning: printf allows null string args... no (new/broken check?) #2109
Comments
No, nothing was changed recently that should have impacted this... Is it a cross-build or native (so executables can run locally)? Can something like an antivirus get in the way of running test programs, having their newly written binaries locked for its own checks - breaks a lot of active logic on Windows, for example. The autotools |
It's a native build on Slackware 15.0 with gcc 11.2.0 Actually I've checked-out 3bf526e again just now and built it with the null arg check passing. |
Here goes config.log building from current master just now:
Here goes config.log building from 3bf526e just now:
Seems the warning in the "working" build was raised to be an error in the newer master. |
Interesting, seems the checking code snippet defined in |
Good catch - yes, that change was intentional as we had some other tests sort-of-passing when something was not really supported. But did not cross-check if some other new "errors" got discovered that way. |
I'm the one who's thankful for the effort you put into all of this - so, thanks ;-) |
So, after running some log collections with the likes of
So it apparently also "lost" cppunit tests. Thanks again :) |
Can confirm this works as intended when I patch in an inclusion of stdio.h:
|
Huh, it seems there are two tests historically - in the main
|
So with a fix like yours, it still rejects the change for my test system under hands (WSL2 Ubuntu 22.04,
Both tests seem to fail with master-branch codebase in fact:
In the older version, the m4 test did complain (warnings about NULL) but did "succeed" as far as practice goes (despite complaints, current compiler+libc do provide a fallback):
So I guess I need a way to pass For context, this is part of the bugfix effort that introduced NUT_STRARG (on some systems, |
Interesting, the m4 test always passed for me, the configure.ac test now passes (but only with the include patched in). |
…and CXXFLAGS [networkupstools#2109] Signed-off-by: Jim Klimov <[email protected]>
…_OR_LINK_IFELSE option to ignore certain warnings [networkupstools#2109] Signed-off-by: Jim Klimov <[email protected]>
…LL) [networkupstools#2109] Signed-off-by: Jim Klimov <[email protected]>
…rintf("%s", NULL) support [networkupstools#2109] Signed-off-by: Jim Klimov <[email protected]>
…nction-declaration [networkupstools#2109, networkupstools#2096 fallout] Signed-off-by: Jim Klimov <[email protected]>
Compiling on my usual (unchanged) build environment on Slackware 15.0, gcc 11.2.0:
last build from 3bf526e
new build from current master (after 3bf526e)
Attempt to re-create the check on my build system:
I was trying to pin-point this from the commits since, but I couldn't figure out what has changed that could cause this.
The text was updated successfully, but these errors were encountered: