You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2014/01/14 20:21:12 UTC
[lucy-commits] [26/50] git commit: Add FIXME comment for alloca probe under MinGW
Add FIXME comment for alloca probe under MinGW
Project: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/commit/342197f9
Tree: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/tree/342197f9
Diff: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/diff/342197f9
Branch: refs/heads/master
Commit: 342197f9aaa0ddcee937c4ad15ffe638f57e57d0
Parents: 0d81e09
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Sat May 4 19:16:25 2013 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Sat May 4 19:16:25 2013 +0200
----------------------------------------------------------------------
src/Charmonizer/Probe/Memory.c | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/blob/342197f9/src/Charmonizer/Probe/Memory.c
----------------------------------------------------------------------
diff --git a/src/Charmonizer/Probe/Memory.c b/src/Charmonizer/Probe/Memory.c
index 0d552f6..947f212 100644
--- a/src/Charmonizer/Probe/Memory.c
+++ b/src/Charmonizer/Probe/Memory.c
@@ -77,6 +77,11 @@ chaz_Memory_probe_alloca(void) {
chaz_ConfWriter_add_def("alloca", "alloca");
}
if (!has_alloca) {
+ /*
+ * FIXME: Under MinGW, alloca is defined in malloc.h. This probe
+ * produces compiler warnings but works regardless. These warnings
+ * are subsequently repeated during the build.
+ */
sprintf(code_buf, alloca_code, "stdlib.h", "alloca");
if (chaz_CC_test_compile(code_buf)) {
has_alloca = true;