[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Latest GCC can't compile keymap.c correctly.
From: |
Stefan Monnier |
Subject: |
Re: Latest GCC can't compile keymap.c correctly. |
Date: |
Fri, 08 Sep 2006 01:05:56 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
>> If it's compiled with gcc-4.2 but with -Wall, what warnings do you get?
> gcc -c -Demacs -DHAVE_CONFIG_H -DUSE_LUCID -I. -I/opt/local/src/emacs/src
> -I/opt/X11R6.6/include -I/usr/dt/include -g -O2 -Wno-pointer-sign -Wall
> /opt/local/src/emacs/src/keymap.c
> /opt/local/src/emacs/src/keymap.c: In function 'Fkey_description':
> /opt/local/src/emacs/src/keymap.c:2016: Warn: implicit declaration of
> function 'alloca'
> /opt/local/src/emacs/src/keymap.c:2016: Warn: incompatible implicit
> declaration of built-in function 'alloca'
[...]
Thanks. Does the patch below fix the problem?
Stefan
--- keymap.c 20 aoû 2006 01:24:17 -0400 1.330
+++ keymap.c 08 sep 2006 01:05:09 -0400
@@ -23,6 +23,7 @@
#include <config.h>
#include <stdio.h>
+#include <alloca.h>
#include "lisp.h"
#include "commands.h"
#include "buffer.h"