From 23d28cbe124eb3b88a01842c2644a374596c8ae7 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 1 Feb 2010 03:29:56 -0500 Subject: [PATCH] Tightened the SWIG warning filter. --- CMakeLists.txt | 2 +- extras/physfs-swig.i | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dc7b9c2..905d95c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -426,7 +426,7 @@ IF(PHYSFS_BUILD_PERL) 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..." ) diff --git a/extras/physfs-swig.i b/extras/physfs-swig.i index bd3d428..122402d 100644 --- a/extras/physfs-swig.i +++ b/extras/physfs-swig.i @@ -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. */