[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 c0c309e: Minor improvements in module test
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] emacs-25 c0c309e: Minor improvements in module test |
Date: |
Fri, 20 Nov 2015 11:38:13 +0000 |
branch: emacs-25
commit c0c309e4cd618ef660b04a13e5fc68c1a43031a6
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Minor improvements in module test
* 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 | 4 ++--
modules/mod-test/mod-test.c | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/mod-test/Makefile b/modules/mod-test/Makefile
index 79a8872..1b74f47 100644
--- a/modules/mod-test/Makefile
+++ b/modules/mod-test/Makefile
@@ -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)
diff --git a/modules/mod-test/mod-test.c b/modules/mod-test/mod-test.c
index 0160da6..bae1967 100644
--- a/modules/mod-test/mod-test.c
+++ b/modules/mod-test/mod-test.c
@@ -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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-25 c0c309e: Minor improvements in module test,
Eli Zaretskii <=