Project

General

Profile

Actions

Bug #6667

open

Compiler warning with --enable-dag

Added by Stephen Donnelly 12 months ago. Updated 6 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 #1

Updated by Philippe Antoine 12 months ago

  • Status changed from New to In Review
Actions #2

Updated by Victor Julien 6 months ago

  • Target version changed from 8.0.0-beta1 to TBD
Actions

Also available in: Atom PDF