[Cmake-commits] [cmake-commits] king committed fnmatch.c 1.4 1.5 snprintf.c 1.8 1.9
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Oct 27 12:11:26 EDT 2009
Update of /cvsroot/CMake/CMake/Utilities/cmtar/compat
In directory public:/mounts/ram/cvs-serv3302/Utilities/cmtar/compat
Modified Files:
fnmatch.c snprintf.c
Log Message:
Fix Intel compiler warnings on Windows in cmtar
This commit disables or fixes some warnings in the 'cmtar' utility
produced by the Intel compiler on Windows.
Index: fnmatch.c
===================================================================
RCS file: /cvsroot/CMake/CMake/Utilities/cmtar/compat/fnmatch.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C 2 -d -r1.4 -r1.5
*** fnmatch.c 23 May 2006 16:38:22 -0000 1.4
--- fnmatch.c 27 Oct 2009 16:11:18 -0000 1.5
***************
*** 175,184 ****
}
! static int
! rangematch(pattern, test, flags, newp)
! const char *pattern;
! char test;
! int flags;
! char **newp;
{
int negate, ok;
--- 175,179 ----
}
! static int rangematch(const char *pattern, char test, int flags, char **newp)
{
int negate, ok;
Index: snprintf.c
===================================================================
RCS file: /cvsroot/CMake/CMake/Utilities/cmtar/compat/snprintf.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C 2 -d -r1.8 -r1.9
*** snprintf.c 30 Mar 2006 18:49:56 -0000 1.8
--- snprintf.c 27 Oct 2009 16:11:19 -0000 1.9
***************
*** 43,46 ****
--- 43,50 ----
#include <libtar/config.h>
+ #if defined(__INTEL_COMPILER)
+ # pragma warning disable 177 /* function declared but not referenced */
+ #endif
+
#if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF)
More information about the Cmake-commits
mailing list