[OpenSIPS-Devel] [OpenSIPS/opensips] a098fe: tracer: Mask buggy gcc 9.x warnings on Ubuntu 20.04
Liviu Chircu
noreply at github.com
Wed Jul 21 13:14:28 EST 2021
Branch: refs/heads/3.2
Home: https://github.com/OpenSIPS/opensips
Commit: a098fe0471ea8b07dd71c4a5486a7a7db22858ac
https://github.com/OpenSIPS/opensips/commit/a098fe0471ea8b07dd71c4a5486a7a7db22858ac
Author: Liviu Chircu <liviu at opensips.org>
Date: 2021-07-21 (Wed, 21 Jul 2021)
Changed paths:
M modules/tracer/Makefile
Log Message:
-----------
tracer: Mask buggy gcc 9.x warnings on Ubuntu 20.04
In function ‘strncpy’,
inlined from ‘trace_slreply_out’ at tracer.c:2290:2:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning:
‘__builtin___strncpy_chk’ output may be truncatedl copying between
1 and 21 bytes from a string of length 153 [-Wstringop-truncation]
This is a false positive, since the "153" bytes are actually 7 * 22
bytes, packed as a (char **) array of 7 buffers. So just mask the
warning for now, just at "tracer" module level.
More information about the Devel
mailing list