Actions
Bug #5538
closedCompiler Warning on Fedora 36 / gcc 12.2.1
Affected Versions:
Effort:
Difficulty:
Label:
Description
On my Fedora 36 system with gcc 12.2.1 compiling the latest git master :
CC main.o
CC alert-debuglog.o
CC alert-fastlog.o
CC alert-syslog.o
CC app-layer.o
CC app-layer-detect-proto.o
In file included from suricata-common.h:501,
from app-layer-detect-proto.c:25:
util-debug.h: In function ‘AppLayerProtoDetectGetProto’:
util-debug.h:330:31: warning: ‘alproto_masks’ may be used uninitialized [-Wmaybe-uninitialized]
330 | #define SCLogDebug(...) SCLog(SC_LOG_DEBUG, FILE, FUNCTION, LINE, VA_ARGS)
| ^~~
app-layer-detect-proto.c:520:15: note: ‘alproto_masks’ was declared here
520 | uint32_t *alproto_masks;
| ^~~~~~~~~~~
CC app-layer-dnp3.o
CC app-layer-dnp3-objects.o
CC app-layer-enip.o
Otherwise compiles without warnings/errors
$ suricata -V
This is Suricata version 7.0.0-dev (fe9150632 2022-09-08)
Actions