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

Compilation failed on mod_amr with gcc 14.0.1 #2450

Open
ROBERT-MCDOWELL opened this issue Apr 26, 2024 · 0 comments
Open

Compilation failed on mod_amr with gcc 14.0.1 #2450

ROBERT-MCDOWELL opened this issue Apr 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ROBERT-MCDOWELL
Copy link
Contributor

Describe the bug
In file included from ../../../../src/include/test/switch_test.h:36,
from test/test_amr.c:36:
In function ‘fctstr_safe_cpy’,
inlined from ‘fctstr_clone’ at ../../../../src/include/test/switch_fct.h:309:5:
../../../../src/include/test/switch_fct.h:258:5: error: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-trunca tion]
258 | strncpy(dst, src, num - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../src/include/test/switch_fct.h: In function ‘fctstr_clone’:
../../../../src/include/test/switch_fct.h:306:12: note: length computed here
306 | klen = strlen(s)+1;
| ^~~~~~~~~
cc1: all warnings being treated as errors

To Reproduce
Steps to reproduce the behavior:
compile freeswitch with mod_amr

Package version or git hash

  • last git
@ROBERT-MCDOWELL ROBERT-MCDOWELL added the bug Something isn't working label Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant