How do you disable "all warnings being treated as errors"?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I'm using 2.4.  I'd like to continue the build despite a few warnings.

0 Likes
1 Solution
SeyhanA_31
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

Hi,

Instead of selectively suppressing warnings, perhaps you could use -w to inhibit all warnings.

$(NAME)_CFLAGS =  -w

-Seyhan

View solution in original post

0 Likes
2 Replies
SeyhanA_31
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

Hi,

One option is updating the top level make file with "$(NAME)_CFLAGS =  -Wno-error=<error>" to suppress warnings as error.

Ex for suppressing "unused-variable" as error would be:

$(NAME)_CFLAGS =  -Wno-error=unused-variable

-Seyhan

0 Likes
SeyhanA_31
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

Hi,

Instead of selectively suppressing warnings, perhaps you could use -w to inhibit all warnings.

$(NAME)_CFLAGS =  -w

-Seyhan

0 Likes