Project

General

Profile

Actions

Bug #6667

open

Compiler warning with --enable-dag

Added by Stephen Donnelly 10 months ago. Updated 5 months ago.

Status:
In Review
Priority:
Low
Target version:
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; | ^
Actions

Also available in: Atom PDF