Hi there,
I’m having a big project, having its framework = espidf
. However the compiler have strict default flags.
Have added -Wno-pointer-sign to build_flags
section. Which is meant only for C/ObjC, therefore had lots of this warning, but completed the compilation process successfully:
cc1plus.exe: warning: command-line option '-Wno-pointer-sign' is valid for C/ObjC but not for C++
.
Decided to use advanced scripting, therefore commented the line above and inserted extra_scripts = scripts/build_flags.py
While scripts/build_flags.py
:
Import("env")
env.Append(CFLAGS=["-Wno-pointer-sign"])
But had the error which is:
.pio/libdeps/esp32s3-devkitc/AEAD_OCB/test.c:81:24: error: pointer targets in passing argument 2 of 'hex2bin' differ in signedness [-Werror=pointer-sign]
I’ve made sure it calls my scripting file by putting a debug prints. And made sure that -Wno-pointer-sign
is absent by a verbose build.
Had I missed something?