diff options
author | Jonathan Beck | 2009-10-28 17:57:52 +0100 |
---|---|---|
committer | Jonathan Beck | 2009-10-28 17:57:52 +0100 |
commit | 1bc333972bb5d5b45ba8908f1b12015300d88711 (patch) | |
tree | d061424c0ba0390259ae092df68c9c7462e16315 /test/plist_test.c | |
parent | a129688a888968286a30eeba7833629225c59fa0 (diff) | |
download | libplist-1bc333972bb5d5b45ba8908f1b12015300d88711.tar.gz libplist-1bc333972bb5d5b45ba8908f1b12015300d88711.tar.bz2 |
Fix build for MSVC9.
Diffstat (limited to 'test/plist_test.c')
-rw-r--r-- | test/plist_test.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/plist_test.c b/test/plist_test.c index a4dd714..069701e 100644 --- a/test/plist_test.c +++ b/test/plist_test.c @@ -27,6 +27,11 @@ #include <string.h> #include <sys/stat.h> +#ifdef _MSC_VER +#pragma warning(disable:4996) +#endif + + int main(int argc, char *argv[]) { FILE *iplist = NULL; @@ -40,7 +45,6 @@ int main(int argc, char *argv[]) int size_out = 0; int size_out2 = 0; char *file_in = NULL; - char *file_out[512]; struct stat *filestats = (struct stat *) malloc(sizeof(struct stat)); if (argc!= 2) { printf("Wrong input\n"); |