views:

51

answers:

3

Hi,

I have used -Wall -Werror in my Makefile but I want to disable following specific type of warning :

 warning: '_wrap_delete_DMXTSFILTER' defined but not used

How shoud I do that?

+3  A: 

This way

RarrRarrRarr
+1  A: 

Assuming it's unused variable:

-Wno-unused-variable
stefanB
+1  A: 

Finnaly, I used this trick __attribute__((unused)). The advantage is I could apply it to individual functions / variables instead of the whole source file which the -Wno-unsed-xxxxx will apply on.

pierr