Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

note: in expansion of macro 'A_MACRO'

Tags:

c

gcc

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

like image 708
nowox Avatar asked Apr 05 '15 09:04

nowox


1 Answers

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.

like image 159
chqrlie Avatar answered Sep 22 '22 06:09

chqrlie