Skip to content
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

Build failure with GCC 10 #262

Open
felixonmars opened this issue May 25, 2020 · 0 comments
Open

Build failure with GCC 10 #262

felixonmars opened this issue May 25, 2020 · 0 comments

Comments

@felixonmars
Copy link
Contributor

In file included from /usr/include/string.h:495,
                 from /usr/include/libcork/core/net-addresses.h:14,
                 from /usr/include/libcork/core.h:24,
                 from netutils.c:25:
In function ‘strncpy’,
    inlined from ‘setinterface’ at netutils.c:88:5:
/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 file included from /usr/include/string.h:495,
                 from /usr/include/libcork/core/net-addresses.h:14,
                 from /usr/include/libcork/core.h:24,
                 from netutils.c:25:
In function ‘strncpy’,
    inlined from ‘setinterface’ at netutils.c:88:5:
/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));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant