Tightened the SWIG warning filter.

This commit is contained in:
Ryan C. Gordon 2010-02-01 03:29:56 -05:00
parent 392193ea0c
commit 23d28cbe12
2 changed files with 4 additions and 1 deletions

View File

@ -426,7 +426,7 @@ IF(PHYSFS_BUILD_PERL)
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/physfs-perl.c" "${CMAKE_CURRENT_BINARY_DIR}/physfs.pm" OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/physfs-perl.c" "${CMAKE_CURRENT_BINARY_DIR}/physfs.pm"
MAIN_DEPENDENCY "${CMAKE_CURRENT_SOURCE_DIR}/extras/physfs-swig.i" MAIN_DEPENDENCY "${CMAKE_CURRENT_SOURCE_DIR}/extras/physfs-swig.i"
COMMAND "${SWIG}" 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..." COMMENT "Generating Perl bindings..."
) )

View File

@ -5,6 +5,9 @@
#include "physfs.h" #include "physfs.h"
%} %}
/* I _think_ this is safe for now. */
%warnfilter(451) PHYSFS_ArchiveInfo;
%ignore _INCLUDE_PHYSFS_H_; /* ignore the include-once blocker. */ %ignore _INCLUDE_PHYSFS_H_; /* ignore the include-once blocker. */
%ignore PHYSFS_DECL; /* ignore the export define. */ %ignore PHYSFS_DECL; /* ignore the export define. */
%ignore PHYSFS_CALL; /* ignore the calling conventions define. */ %ignore PHYSFS_CALL; /* ignore the calling conventions define. */