I bet there is something like #pragma .. "-fno-stack-usage" or something. Basically what I get is an error like this:
error: stack usage computation not supported for this target [-Werror]
I don't want to disable -fstack-usage globally. I have also tried to do #pragma GCC diagnostics ignored "-Werror" with no effect.