diff options
| author | Eli Zaretskii | 2015-11-20 13:37:25 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-11-20 13:37:25 +0200 |
| commit | c0c309e4cd618ef660b04a13e5fc68c1a43031a6 (patch) | |
| tree | c19b36267a29416af16f2f96c2adf39b28e3a8d9 /modules | |
| parent | 24be1c8460895ccec8a84e53966b324e35cac6c9 (diff) | |
| download | emacs-c0c309e4cd618ef660b04a13e5fc68c1a43031a6.tar.gz emacs-c0c309e4cd618ef660b04a13e5fc68c1a43031a6.zip | |
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.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/mod-test/Makefile | 4 | ||||
| -rw-r--r-- | 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 79a88725d08..1b74f477ac9 100644 --- a/modules/mod-test/Makefile +++ b/modules/mod-test/Makefile | |||
| @@ -28,9 +28,9 @@ LDFLAGS = | |||
| 28 | SO = so | 28 | SO = so |
| 29 | # -fPIC is a no-op on Windows, but causes a compiler warning | 29 | # -fPIC is a no-op on Windows, but causes a compiler warning |
| 30 | ifeq ($(SO),dll) | 30 | ifeq ($(SO),dll) |
| 31 | CFLAGS = -ggdb3 -Wall | 31 | CFLAGS = -std=gnu99 -ggdb3 -Wall |
| 32 | else | 32 | else |
| 33 | CFLAGS = -ggdb3 -Wall -fPIC | 33 | CFLAGS = -std=gnu99 -ggdb3 -Wall -fPIC |
| 34 | endif | 34 | endif |
| 35 | 35 | ||
| 36 | all: mod-test.$(SO) | 36 | all: mod-test.$(SO) |
diff --git a/modules/mod-test/mod-test.c b/modules/mod-test/mod-test.c index 0160da69d0f..bae1967f533 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/>. */ | |||
| 19 | 19 | ||
| 20 | #include <assert.h> | 20 | #include <assert.h> |
| 21 | #include <stdio.h> | 21 | #include <stdio.h> |
| 22 | #include <stdlib.h> | ||
| 22 | #include <emacs-module.h> | 23 | #include <emacs-module.h> |
| 23 | 24 | ||
| 24 | int plugin_is_GPL_compatible; | 25 | int plugin_is_GPL_compatible; |