nowox
nowox

Reputation: 29116

note: in expansion of macro 'A_MACRO'

I have hundred of warnings like this when build with gcc:

foo.c:2690:5: note: in expansion of macro ‘PUT_UINT32’
     PUT_UINT32(state, digest,  0);

How can I get rid of them?

-w also hide warnings that I still want to see

Upvotes: 9

Views: 71744

Answers (1)

chqrlie
chqrlie

Reputation: 144951

I assume you are using clang: when clang detects an error or a warning in code expanded from a macro, it outputs one line for each macro whose expansion leads to the offending code. Fix the errors and warnings in the final code and these messages will disappear.

Upvotes: 8

Related Questions