Actions
Bug #6667
openCompiler warning with --enable-dag
Affected Versions:
Effort:
low
Difficulty:
low
Label:
Description
Building master with --enable-dag results in two compiler warnings related to changed function prototypes.
This issue is also being fixed in the backport to main-7.0.x, in PR https://github.com/OISF/suricata/pull/10148
CC source-ipfw.o
source-erf-dag.c: In function ‘TmModuleReceiveErfDagRegister’:
source-erf-dag.c:136:47: warning: assignment to ‘TmEcode ()(ThreadVars *, const void *, void *)’ {aka ‘TmEcode ()(struct ThreadVars_ *, const void *, void *)’} from incompatible pointer type ‘TmEcode ()(ThreadVars *, void *, void *)’ {aka ‘TmEcode ()(struct ThreadVars_ *, void *, void *)’} [-Wincompatible-pointer-types]
136 | tmm_modules[TMM_RECEIVEERFDAG].ThreadInit = ReceiveErfDagThreadInit;
| ^
source-erf-dag.c: In function ‘TmModuleDecodeErfDagRegister’:
source-erf-dag.c:154:46: warning: assignment to ‘TmEcode ()(ThreadVars *, const void *, void *)’ {aka ‘TmEcode ()(struct ThreadVars_ *, const void *, void *)’} from incompatible pointer type ‘TmEcode ()(ThreadVars *, void *, void *)’ {aka ‘TmEcode ()(struct ThreadVars_ *, void *, void *)’} [-Wincompatible-pointer-types]
154 | tmm_modules[TMM_DECODEERFDAG].ThreadInit = DecodeErfDagThreadInit;
| ^
Updated by Philippe Antoine 11 months ago
- Status changed from New to In Review
Updated by Victor Julien 6 months ago
- Target version changed from 8.0.0-beta1 to TBD
Actions