aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2016-12-07 10:29:57 -0800
committerPaul Eggert2016-12-07 10:30:56 -0800
commit220ccda78bd8e91069d373287b5d9d0fa505fcf1 (patch)
treeb15bc4e1c101a0591e70f9d92f5007b9978214aa /src
parentf41097adf3e7155f9c0db6d90de0aa1623d89232 (diff)
downloademacs-220ccda78bd8e91069d373287b5d9d0fa505fcf1.tar.gz
emacs-220ccda78bd8e91069d373287b5d9d0fa505fcf1.zip
Fix --enable-gcc-warnings --with-ns on Fedora
* src/Makefile.in (NON_OBJC_CFLAGS): New macro. (ALL_OBJC_CFLAGS): Use it. (EMACS_CFLAGS): New macro, with most of the old ALL_CFLAGS. (ALL_CFLAGS, ALL_OBJC_FLAGS): Use it.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.in24
-rw-r--r--src/dbusbind.c2
2 files changed, 13 insertions, 13 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index dc0bfff9b33..7ca147f1eb5 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -361,16 +361,13 @@ DEPFLAGS =
361MKDEPDIR = : 361MKDEPDIR = :
362endif 362endif
363 363
364## DO NOT use -R. There is a special hack described in lastfile.c 364# Flags that might be in WARN_CFLAGS but are not valid for Objective C.
365## which is used instead. Some initialized data areas are modified 365NON_OBJC_CFLAGS = -Wignored-attributes -Wignored-qualifiers -Wopenmp-simd
366## at initial startup, then labeled as part of the text area when 366
367## Emacs is dumped for the first time, and never changed again. 367# -Demacs makes some files produce the correct version for use in Emacs.
368## 368# MYCPPFLAGS is for by-hand Emacs-specific overrides, e.g.,
369## -Demacs is needed to make some files produce the correct version 369# "make MYCPPFLAGS='-DDBUS_DEBUG'".
370## for use in Emacs. 370EMACS_CFLAGS=-Demacs $(MYCPPFLAGS) -I. -I$(srcdir) \
371##
372## FIXME? MYCPPFLAGS only referenced in etc/DEBUG.
373ALL_CFLAGS=-Demacs $(MYCPPFLAGS) -I. -I$(srcdir) \
374 -I$(lib) -I$(top_srcdir)/lib \ 371 -I$(lib) -I$(top_srcdir)/lib \
375 $(C_SWITCH_MACHINE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \ 372 $(C_SWITCH_MACHINE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
376 $(GNUSTEP_CFLAGS) $(CFLAGS_SOUND) $(RSVG_CFLAGS) $(IMAGEMAGICK_CFLAGS) \ 373 $(GNUSTEP_CFLAGS) $(CFLAGS_SOUND) $(RSVG_CFLAGS) $(IMAGEMAGICK_CFLAGS) \
@@ -381,8 +378,11 @@ ALL_CFLAGS=-Demacs $(MYCPPFLAGS) -I. -I$(srcdir) \
381 $(LIBOTF_CFLAGS) $(M17N_FLT_CFLAGS) $(DEPFLAGS) \ 378 $(LIBOTF_CFLAGS) $(M17N_FLT_CFLAGS) $(DEPFLAGS) \
382 $(LIBSYSTEMD_CFLAGS) \ 379 $(LIBSYSTEMD_CFLAGS) \
383 $(LIBGNUTLS_CFLAGS) $(NOTIFY_CFLAGS) $(CAIRO_CFLAGS) \ 380 $(LIBGNUTLS_CFLAGS) $(NOTIFY_CFLAGS) $(CAIRO_CFLAGS) \
384 $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAGS) 381 $(WERROR_CFLAGS)
385ALL_OBJC_CFLAGS=$(ALL_CFLAGS) $(GNU_OBJC_CFLAGS) 382ALL_CFLAGS = $(EMACS_CFLAGS) $(WARN_CFLAGS) $(CFLAGS)
383ALL_OBJC_CFLAGS = $(EMACS_CFLAGS) \
384 $(filter-out $(NON_OBJC_CFLAGS),$(WARN_CFLAGS)) $(CFLAGS) \
385 $(GNU_OBJC_CFLAGS)
386 386
387.SUFFIXES: .m 387.SUFFIXES: .m
388.c.o: 388.c.o:
diff --git a/src/dbusbind.c b/src/dbusbind.c
index 23392d8dcc3..08b7cc2ddf2 100644
--- a/src/dbusbind.c
+++ b/src/dbusbind.c
@@ -91,7 +91,7 @@ static bool xd_in_read_queued_messages = 0;
91 } while (0) 91 } while (0)
92 92
93/* Macros for debugging. In order to enable them, build with 93/* Macros for debugging. In order to enable them, build with
94 "env MYCPPFLAGS='-DDBUS_DEBUG -Wall' make". */ 94 "make MYCPPFLAGS='-DDBUS_DEBUG'". */
95#ifdef DBUS_DEBUG 95#ifdef DBUS_DEBUG
96#define XD_DEBUG_MESSAGE(...) \ 96#define XD_DEBUG_MESSAGE(...) \
97 do { \ 97 do { \