Re: make -Werror-deprecated-declarations

Paul Smith <[email protected]>
Newsgroups gmane.comp.gnu.make.general
Organization GNU's Not UNIX!
Message-ID <[email protected]>
On Thu, 2023-07-20 at 15:04 +0200, deon wrote:
> How do flag the compiler not to treat this as fatal?
> 
> Where do is specify the -Wno-deprecated flag? Anyone that can provide
> me with a quick solution.

This depends entirely on how that project wrote its makefiles.  There's
no one predefined way to do this in make.  Not only that but the option
you would use is completely dependent on the compiler you're using. 
So, you're asking the wrong folks, you need to talk to the Nginx team.

If Nginx uses autoconf and automake (e.g., ./configure etc.) then
usually the CFLAGS variable is reserved for the user.  In that case,
and if you're using GCC (or Clang I think) you can try something like:

  make ... CFLAGS='-g -O2 -Wno-error'

and that might work.  But this is just a guess based on common ways
things are done; there's no reason it has to work.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.