Skip to contentSkip to conversation

configure.ac: Turn off cast-function warnings

PATCH In review Steve Dickson 1 participant 2 messages May 8, 2019 – May 10, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure.ac: Turn off cast-function warnings

The rpcgen generated code from .x files creates
a cast-function-type warning.

Due to the age and stability of the code
turning off the warning makes more sense
than re-writing the .x files.

---
 configure.ac | 1 +
 1 file changed, 1 insertion(+)
configure.ac +1 -0
index e89ca67..4e72790 100644
@@ -592,6 +592,7 @@ my_am_cflags="\
  -Werror=parentheses \
  -Werror=aggregate-return \
  -Werror=unused-result \
+ -Wno-cast-function-type \
  -fno-strict-aliasing \
 "
 
Signature · 1 line
2.20.1
#1 lore raw
Quoted 8 lines · Steve Dickson

The rpcgen generated code from .x files creates
a cast-function-type warning.

Due to the age and stability of the code
turning off the warning makes more sense
than re-writing the .x files.

Committed...

steved.

Quoted 17 lines
---
 configure.ac | 1 +
 1 file changed, 1 insertion(+)
configure.ac +1 -0
index e89ca67..4e72790 100644
@@ -592,6 +592,7 @@ my_am_cflags="\
  -Werror=parentheses \
  -Werror=aggregate-return \
  -Werror=unused-result \
+ -Wno-cast-function-type \
  -fno-strict-aliasing \
 "