summaryrefslogtreecommitdiffstats
path: root/Modules/CheckFunctionExists.c
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-04-14 19:56:39 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-04-14 19:56:39 (GMT)
commit6c5b67981e26efd9816ee42393bbafce4c354142 (patch)
tree9e7f0d1f23ed7948e8ef3a599666226acffef87c /Modules/CheckFunctionExists.c
parent0c92cfb8c456ff097186a59fcec257aae98d319e (diff)
downloadCMake-6c5b67981e26efd9816ee42393bbafce4c354142.zip
CMake-6c5b67981e26efd9816ee42393bbafce4c354142.tar.gz
CMake-6c5b67981e26efd9816ee42393bbafce4c354142.tar.bz2
ENH: remove warnings from try compiles
Diffstat (limited to 'Modules/CheckFunctionExists.c')
-rw-r--r--Modules/CheckFunctionExists.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/Modules/CheckFunctionExists.c b/Modules/CheckFunctionExists.c
index e205b64..e064c09 100644
--- a/Modules/CheckFunctionExists.c
+++ b/Modules/CheckFunctionExists.c
@@ -2,10 +2,15 @@
char CHECK_FUNCTION_EXISTS();
-int main()
+int main(int ac, char*av[])
{
+ int ret = 0;
CHECK_FUNCTION_EXISTS();
- return 0;
+ if(ac > 100)
+ {
+ ret = *av[0];
+ }
+ return ret;
}
#else /* CHECK_FUNCTION_EXISTS */