Updated WolframAutomata to be C89 compliant.
[screensavers] / hacks / WolframAutomata / Makefile
index 2b64750..c360e2d 100644 (file)
 # require minor tweaks (e.g. LIB_PATH on Debian should be /usr/lib/ rather than
 # /usr/local/lib/ and the compiler is gcc rather than cc).
 CC       = cc
 # require minor tweaks (e.g. LIB_PATH on Debian should be /usr/lib/ rather than
 # /usr/local/lib/ and the compiler is gcc rather than cc).
 CC       = cc
-CC_FLAGS = -Wall -pedantic
+CC_FLAGS = -Wall -pedantic -std=c89
 INC_PATH = -I../../screenhack/ -I/usr/local/include/
 LIB_PATH = -L/usr/local/lib/
 LIBS     = -lm -lX11 -lXt
 
 INC_PATH = -I../../screenhack/ -I/usr/local/include/
 LIB_PATH = -L/usr/local/lib/
 LIBS     = -lm -lX11 -lXt
 
+# Many of the X-related header files contain named variadic macros. Suppress
+# that warning so that we can enable -pedantic C89 compliance for our own code.
+CC_FLAGS += -Wno-variadic-macros
+
 # These flags are normally set in config.h which is generated by the autoconf
 # script as the initial step of the xscreensaver build process. The flags
 # enable/disable code in the various screenhack library files. When compiling
 # These flags are normally set in config.h which is generated by the autoconf
 # script as the initial step of the xscreensaver build process. The flags
 # enable/disable code in the various screenhack library files. When compiling