lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] [4/4] git commit: refs/heads/master - Add FIXME comment for alloca probe under MinGW
Date Sat, 04 May 2013 17:58:28 GMT
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 <wellnhofer@aevum.de>
Authored: Sat May 4 19:16:25 2013 +0200
Committer: Nick Wellnhofer <wellnhofer@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;


Mime
View raw message