help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make -Werror-deprecated-declarations


From: Paul Smith
Subject: Re: make -Werror-deprecated-declarations
Date: Thu, 20 Jul 2023 10:00:32 -0400
User-agent: Evolution 3.48.3 (by Flathub.org)

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]