unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* etags.c:88:0: warning: "NDEBUG" redefined
@ 2020-03-21  6:15 Jeffrey Walton
  2020-03-21  8:19 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Jeffrey Walton @ 2020-03-21  6:15 UTC (permalink / raw)
  To: emacs-devel

Hi Everyone,

I keep -DNDEBUG defined in CPPFLAGS in my environment. When I build
emacs I see some extra noise because of it:

gcc     -I. -I../src -I../lib -I. -I./../src -I./../lib  -L/tmp/ok_to_delete/lib
 -Wl,-R,/../lib -Wl,-R,/tmp/ok_to_delete/lib -Wl,--enable-new-dtags -I/tmp/ok_to
_delete/include -DNDEBUG -g2 -O2 -march=native -fPIC -pthread -DEMACS_NAME="\"GN
U Emacs\"" -DVERSION="\"26.3\"" -o etags etags.c regex.o  ../lib/libgnu.a
etags.c:88:0: warning: "NDEBUG" redefined
 #  define NDEBUG  /* disable assert */
 <command-line>:0:0: note: this is the location of the previous definition
...

Would it be possible to guard your use of NDEBUG?

Jeff



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: etags.c:88:0: warning: "NDEBUG" redefined
  2020-03-21  6:15 etags.c:88:0: warning: "NDEBUG" redefined Jeffrey Walton
@ 2020-03-21  8:19 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2020-03-21  8:19 UTC (permalink / raw)
  To: noloader; +Cc: emacs-devel

> From: Jeffrey Walton <noloader@gmail.com>
> Date: Sat, 21 Mar 2020 02:15:18 -0400
> 
> I keep -DNDEBUG defined in CPPFLAGS in my environment. When I build
> emacs I see some extra noise because of it:
> 
> gcc     -I. -I../src -I../lib -I. -I./../src -I./../lib  -L/tmp/ok_to_delete/lib
>  -Wl,-R,/../lib -Wl,-R,/tmp/ok_to_delete/lib -Wl,--enable-new-dtags -I/tmp/ok_to
> _delete/include -DNDEBUG -g2 -O2 -march=native -fPIC -pthread -DEMACS_NAME="\"GN
> U Emacs\"" -DVERSION="\"26.3\"" -o etags etags.c regex.o  ../lib/libgnu.a
> etags.c:88:0: warning: "NDEBUG" redefined
>  #  define NDEBUG  /* disable assert */
>  <command-line>:0:0: note: this is the location of the previous definition
> ...
> 
> Would it be possible to guard your use of NDEBUG?

The current etags.c in the Emacs repository no longer uses NDEBUG, so
this issue was already solved.

Thanks.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-21  8:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-21  6:15 etags.c:88:0: warning: "NDEBUG" redefined Jeffrey Walton
2020-03-21  8:19 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).