We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug A compiler warning pops up when enabling full optimizations:
In function ‘strncpy’, inlined from ‘CFE_ES_ReloadApp’ at /home/joe/code/cfecfs/github/cfe/fsw/cfe-core/src/es/cfe_es_api.c:259:12: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ specified bound 64 equals destination size [-Werror=stringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors
To Reproduce Build with BUILDTYPE=release using a recent GCC (e.g. v9.0+) such as the one with Ubuntu 20.04
BUILDTYPE=release
Expected behavior Should build cleanly
System observed on: Ubuntu 20.04
Reporter Info Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered:
Fix nasa#970, strncpy warning
49d93c2
Adjust strncpy call to not trigger warning
5365480
Merge pull request #971 from jphickey/fix-970-strncpy-warning
180559b
Fix #970, strncpy warning
jphickey
Successfully merging a pull request may close this issue.
Describe the bug
A compiler warning pops up when enabling full optimizations:
To Reproduce
Build with
BUILDTYPE=release
using a recent GCC (e.g. v9.0+) such as the one with Ubuntu 20.04Expected behavior
Should build cleanly
System observed on:
Ubuntu 20.04
Reporter Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered: