-
Notifications
You must be signed in to change notification settings - Fork 35
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
compiling tunefs.ocfs2/op_query.c failed with -Werror=format-security #18
Comments
Please refer commit 3e692a9 for details. |
The commit above does not deal with this issue. The failed source line is:
Others are just warnings. |
One workaround for this would be to use a dummy argument:
|
A good catch! |
fprintf(stdout, "%s", fmt); |
But fmt might contain specifies registered by ocfs2 that would not print this way. |
Signed-off-by: gaosong <[email protected]>
-Wformat-security is enabled by default for C, C++, ObjC on high version GCC or high version system. To disable, use -Wno-format-security. I have compiled successfully in rhel8. |
On Tue, Aug 13, 2019 at 03:59:11AM -0700, Song_G wrote:
-Wformat-security is enabled by default for C, C++, ObjC on high version GCC
or high version system. To disable, use -Wno-format-security. I have
compiled successfully in rhel8.
Sure, we can disable the check but it would be nicer if it worked with the
check enabled somehow :)
…--
Valentin
|
at commit 401407e
Fedora 26
gcc-7.1.1-3.fc26.x86_64
The text was updated successfully, but these errors were encountered: