mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-15 12:34:55 +00:00
407a1f1e98
No amount of _Pragma was able to disable this warning. In function ‘strncpy’, inlined from ‘_nm_strndup_a_step’ at ./shared/nm-glib-aux/nm-macros-internal.h:1367:3, inlined from ‘nms_keyfile_nmmeta_check_filename’ at src/settings/plugins/keyfile/nms-keyfile-utils.c:61:0: /usr/include/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ specified bound depends on the length of the source argument [-Werror=stringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^ src/settings/plugins/keyfile/nms-keyfile-utils.c: In function ‘nms_keyfile_nmmeta_check_filename’: src/settings/plugins/keyfile/nms-keyfile-utils.c:44: note: length computed here 44 | len = strlen (filename); | lto1: all warnings being treated as errors Oddly enough, gcc is still emitting the warning even with "-Wno-stringop-overflow", but at least it doesn't break the build. |
||
---|---|---|
.. | ||
attributes.m4 | ||
ax_lib_readline.m4 | ||
compiler_options.m4 | ||
git-sha-record.m4 | ||
gnome-code-coverage.m4 | ||
introspection.m4 | ||
vapigen.m4 |