How to suppress warning that gcc option is deprecated

Viewed 300

I'm using the official release of ARM GCC 2018 Q4 Major. For this C code:

int main(void) { return 0; }

the compiler produces a warning:

$ arm-none-eabi-gcc -mstructure-size-boundary=32 main.c
cc1.exe: warning: option '-mstructure-size-boundary' is deprecated

Is it possible to suppress this warning? The flag -Wno-deprecated has no effect.

I need to use the -mstructure-size-boundary option because I need to link against someone else's closed source compiled libraries that used the same setting. (Well, I guess I could edit their headers and manually set trailing struct padding but that would not be Plan A).

0 Answers
Related