gcc, make: how to disable fail on warning?

后端 未结 7 1370
天命终不由人
天命终不由人 2021-01-11 13:54

I\'m trying to build gcc for use with an AVR micro controller and avr-ada, and I\'ve hit a roadblock caused by my regular compiler being too picky about the version I needed

7条回答
  •  死守一世寂寞
    2021-01-11 14:10

    In general, it is not a good idea to ignore warnings from your compiler. However, if this is a portion of a larger make process there is likely a -Werror flag inserted earlier in the sequence. Start by looking for that.

    After looking around, there seems to be a wealth of flags to control warnings while compiling Ada code. For instance, -gnatwF will Suppress warnings on unreferenced formals according to this guide. Possibly the switch you require can be found in the list provided there.

提交回复
热议问题