Tightened the SWIG warning filter.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 01 Feb 2010 03:29:56 -0500
changeset 1031 206114270422
parent 1030 17c521170ba6
child 1032 ea6aaadcfa04
Tightened the SWIG warning filter.
CMakeLists.txt
extras/physfs-swig.i
--- a/CMakeLists.txt	Mon Feb 01 03:17:14 2010 -0500
+++ b/CMakeLists.txt	Mon Feb 01 03:29:56 2010 -0500
@@ -426,7 +426,7 @@
             OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/physfs-perl.c" "${CMAKE_CURRENT_BINARY_DIR}/physfs.pm"
             MAIN_DEPENDENCY "${CMAKE_CURRENT_SOURCE_DIR}/extras/physfs-swig.i"
             COMMAND "${SWIG}"
-            ARGS -w451 ${SWIG_OPT_CFLAGS} -perl -outdir "${CMAKE_CURRENT_BINARY_DIR}" -o "${CMAKE_CURRENT_BINARY_DIR}/physfs-perl.c" "${CMAKE_CURRENT_SOURCE_DIR}/extras/physfs-swig.i"
+            ARGS ${SWIG_OPT_CFLAGS} -perl -outdir "${CMAKE_CURRENT_BINARY_DIR}" -o "${CMAKE_CURRENT_BINARY_DIR}/physfs-perl.c" "${CMAKE_CURRENT_SOURCE_DIR}/extras/physfs-swig.i"
             COMMENT "Generating Perl bindings..."
         )
 
--- a/extras/physfs-swig.i	Mon Feb 01 03:17:14 2010 -0500
+++ b/extras/physfs-swig.i	Mon Feb 01 03:29:56 2010 -0500
@@ -5,6 +5,9 @@
 #include "physfs.h"
 %}
 
+/* I _think_ this is safe for now. */
+%warnfilter(451) PHYSFS_ArchiveInfo;
+
 %ignore _INCLUDE_PHYSFS_H_;  /* ignore the include-once blocker. */
 %ignore PHYSFS_DECL;  /* ignore the export define. */
 %ignore PHYSFS_CALL;  /* ignore the calling conventions define. */