5.6.3 How Can I Stop Warnings from Being Produced?
In general, you should not ignore warnings. Warnings indicate situations that could possibly lead to code failure. Always check your code to confirm that it is not a possible source of error.
However, if you feel that you want to inhibit warning messages, do the following:
- Inhibit specific warnings by using the
-Wno-
version of the option. - Inhibit all warnings with the
-w
option. - In MPLAB X IDE, inhibit warnings in the Project Properties window under each tool category. Also look in the Tool Options window, Embedded button, Suppressible Messages tab.
For details, see the following section in this user’s guide: