]> git.eshelyaron.com Git - emacs.git/commitdiff
Minor improvements in module test
authorEli Zaretskii <eliz@gnu.org>
Fri, 20 Nov 2015 11:37:25 +0000 (13:37 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 20 Nov 2015 11:37:25 +0000 (13:37 +0200)
* modules/mod-test/mod-test.c: Include stdlib.h, to avoid warnings
about missing prototype of malloc.
* modules/mod-test/Makefile (CFLAGS): Add -std=gnu99, to avoid
compiler warnings.

modules/mod-test/Makefile
modules/mod-test/mod-test.c

index 79a88725d0846eefdd70510fa848b1eb58889254..1b74f477ac9001a9319d50a808116e77593b934f 100644 (file)
@@ -28,9 +28,9 @@ LDFLAGS =
 SO      = so
 # -fPIC is a no-op on Windows, but causes a compiler warning
 ifeq ($(SO),dll)
-CFLAGS  = -ggdb3 -Wall
+CFLAGS  = -std=gnu99 -ggdb3 -Wall
 else
-CFLAGS  = -ggdb3 -Wall -fPIC
+CFLAGS  = -std=gnu99 -ggdb3 -Wall -fPIC
 endif
 
 all: mod-test.$(SO)
index 0160da69d0fba3eedd4a7fcf935393246d0a9d0d..bae1967f53317a255c1dfb89ccd9d68edc08e8f2 100644 (file)
@@ -19,6 +19,7 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include <assert.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <emacs-module.h>
 
 int plugin_is_GPL_compatible;