Skip to content

Instantly share code, notes, and snippets.

@2m
Created July 11, 2019 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2m/1cdd77f51b92c536cd58858b0fac8f4a to your computer and use it in GitHub Desktop.
Save 2m/1cdd77f51b92c536cd58858b0fac8f4a to your computer and use it in GitHub Desktop.
In file included from /usr/include/string.h:494,
from /home/martynas/.cache/yay/openswan-git/src/openswan-git/programs/tncfg/tncfg.c:19:
In function ‘strncpy’,
inlined from ‘main’ at /home/martynas/.cache/yay/openswan-git/src/openswan-git/programs/tncfg/tncfg.c:233:4:
/usr/include/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ specified bound 16 equals destination size [-Werror=stringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy’,
inlined from ‘main’ at /home/martynas/.cache/yay/openswan-git/src/openswan-git/programs/tncfg/tncfg.c:236:4:
/usr/include/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ specified bound 12 equals destination size [-Werror=stringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment