Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4774

General • Build issue with implict functions

$
0
0
I am trying to build a Pico SDK C project with '-Wall -Werror' with appropriate 'Wno-' options to cater for some refactoring not being completed yet.

That's almost working but has required me to use '-Wno-implicit-function-declaration' which causes a problem compiling C++ code from the Pico SDK itself, which causes the build to fail ...

Code:

[ 66%] Building CXX object ..../pico-sdk/src/rp2_common/pico_cxx_options/new_delete.cpp.occ1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++
I am not sure why that specific file is C++ code but I presume there's a reason ?

Is there any way to have 'CMakeLists.txt' use '-Wall -Werror -Wno-implicit-function-declaration' but not have the above warning which then aborts the build ?

Statistics: Posted by hippy — Sat Dec 14, 2024 1:16 pm



Viewing all articles
Browse latest Browse all 4774

Trending Articles