Browse - Programming Tips - How can I turn off a gcc compiler warning in my code?

Date: 2015jun4
Product: gcc
OS: Linux

Q.  How can I turn off a gcc compiler warning in my code?
(Not on the command line)

A.  Use a pragma like this:

#pragma GCC diagnostic ignored "-Wdeprecated-declarations"