[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Avoid warning about alloca in read.c

From: Eli Zaretskii
Subject: Avoid warning about alloca in read.c
Date: Sat, 16 Jul 2016 20:18:26 +0300

       CC       libguile_2.0_la-read.lo
     read.c: In function 'try_read_ci_chars':
     read.c:983:3: warning: implicit declaration of function 'alloca' 
     read.c:983:22: warning: incompatible implicit declaration of built-in 
function 'alloca' [enabled by default]

The patch to avoid this warning is below.  OK to commit?

--- libguile/read.c~0   2016-01-02 16:24:55.000000000 +0200
+++ libguile/read.c     2016-07-15 12:38:42.195125000 +0300
@@ -33,6 +33,10 @@
 #include <c-strcase.h>
 #include <c-ctype.h>
+#ifdef __MINGW32__
+#include <alloca.h>
 #include "libguile/_scm.h"
 #include "libguile/bytevectors.h"
 #include "libguile/chars.h"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]