[OpenSIPS-Devel] [OpenSIPS/opensips] 2cdd76: async.c: Avoid compile warning false positive (gcc...
Liviu Chircu
noreply at github.com
Fri Mar 18 11:00:25 UTC 2022
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 2cdd76f9a0f4c6a555e3adf8d84151f7fec1d8c7
https://github.com/OpenSIPS/opensips/commit/2cdd76f9a0f4c6a555e3adf8d84151f7fec1d8c7
Author: Liviu Chircu <liviu at opensips.org>
Date: 2022-03-18 (Fri, 18 Mar 2022)
Changed paths:
M async.c
Log Message:
-----------
async.c: Avoid compile warning false positive (gcc 9.4.0)
In file included from async.c:28:
async.c: In function ‘async_script_launch’:
reactor_defs.h:81:2: warning: ‘fd’ may be used uninitialized in this function [-Wmaybe-uninitialized]
81 | io_watch_add(&_worker_io, _fd, _type, _data, _prio, 0, IO_WATCH_READ)
| ^~~~~~~~~~~~
async.c:279:6: note: ‘fd’ was declared here
279 | int fd;
| ^~
Linking opensips
$ gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0
Note: -DCC_O0 must NOT be defined!
More information about the Devel
mailing list