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 2013/05/04 19:58:28 UTC

[lucy-commits] [4/4] git commit: refs/heads/master - 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/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/271bd85d
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/271bd85d
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/271bd85d

Branch: refs/heads/master
Commit: 271bd85dd3dc09f3ccbcdce58164ea010be04c8f
Parents: 27c9515
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

----------------------------------------------------------------------
 charmonizer/src/Charmonizer/Probe/Memory.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/271bd85d/charmonizer/src/Charmonizer/Probe/Memory.c
----------------------------------------------------------------------
diff --git a/charmonizer/src/Charmonizer/Probe/Memory.c b/charmonizer/src/Charmonizer/Probe/Memory.c
index 0d552f6..947f212 100644
--- a/charmonizer/src/Charmonizer/Probe/Memory.c
+++ b/charmonizer/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;