-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Compile error in Fedora 28: strncpy’ specified bound equals destination size #7826
Comments
BTW:
|
@dioni21 thanks for filing this. When Fedora 28 was first released with gcc 8.1 we fixed a bunch of these kinds of warnings, see commit 21a4f5c. I thought we'd gotten all of them since our Fedora 28 builds have been cleanly passing since then. But clearly we missed at least one. Although I'm not sure why your additional build options would have caused it. |
Sent my first github PR. Hope it is ok. |
@dioni21 thanks! |
Fix a bunch of truncation compiler warnings that show up on Fedora 28 (GCC 8.0.1). Reviewed-by: Giuseppe Di Natale <[email protected]> Reviewed-by: George Melikov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Issue openzfs#7368 Closes openzfs#7826 Closes openzfs#7830
Fix a bunch of truncation compiler warnings that show up on Fedora 28 (GCC 8.0.1). Reviewed-by: Giuseppe Di Natale <[email protected]> Reviewed-by: George Melikov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Issue openzfs#7368 Closes openzfs#7826 Closes openzfs#7830
Fix a bunch of truncation compiler warnings that show up on Fedora 28 (GCC 8.0.1). Reviewed-by: Giuseppe Di Natale <[email protected]> Reviewed-by: George Melikov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Issue openzfs#7368 Closes openzfs#7826 Closes openzfs#7830
System information
Describe the problem you're observing
Error compiling the current master on Fedora 28. It worked on Fedora 27
I suspect Fedora 28 has enabled by default stricter compile verification.
Describe how to reproduce the problem
Include any warning/errors/backtraces from the system logs
The text was updated successfully, but these errors were encountered: