diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2013-03-05 22:19:27 +1100 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2013-03-06 07:42:08 +1100 |
commit | 91790ef965553fd6d76e1f51b55dc4de3b54ad4b (patch) | |
tree | d861175885072946cc2662c7a3a10f6d877c593d /src/test_libFLAC | |
parent | 05609d5b4b02e87c17c01a0ebb9fc2e05b799d90 (diff) | |
download | flac-91790ef965553fd6d76e1f51b55dc4de3b54ad4b.tar.gz |
Fix compiler warnings from new compiler flags.
Diffstat (limited to 'src/test_libFLAC')
-rw-r--r-- | src/test_libFLAC/metadata_manip.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test_libFLAC/metadata_manip.c b/src/test_libFLAC/metadata_manip.c index a3d021fb..e7200567 100644 --- a/src/test_libFLAC/metadata_manip.c +++ b/src/test_libFLAC/metadata_manip.c @@ -37,6 +37,7 @@ #include "FLAC/metadata.h" #include "share/grabbag.h" #include "share/compat.h" +#include "share/macros.h" #include "test_libs_common/file_utils_flac.h" #include "test_libs_common/metadata_utils.h" #include "metadata.h" @@ -260,8 +261,8 @@ static void set_file_stats_(const char *filename, struct stat *stats) (void)chmod(filename, stats->st_mode); (void)utime(filename, &srctime); #if !defined _MSC_VER && !defined __MINGW32__ - (void)chown(filename, stats->st_uid, -1); - (void)chown(filename, -1, stats->st_gid); + FLAC_CHECK_RETURN(chown(filename, stats->st_uid, -1)); + FLAC_CHECK_RETURN(chown(filename, -1, stats->st_gid)); #endif } |