]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Silence unused-parameter compiler warnings.
authorKyrre Sjobak <kyrre.ness.sjoebaek@cern.ch>
Tue, 24 Jan 2017 15:09:23 +0000 (16:09 +0100)
committerKyrre Sjobak <kyrre.ness.sjoebaek@cern.ch>
Tue, 24 Jan 2017 15:09:23 +0000 (16:09 +0100)
libarchive/test/main.c

index d59f1552e70d0eb9f726fa2576a5470a3a014c18..46685f8b83a3019de197e043947349e3dcf06896 100644 (file)
@@ -216,6 +216,12 @@ invalid_parameter_handler(const wchar_t * expression,
     unsigned int line, uintptr_t pReserved)
 {
        /* nop */
+       // Silence unused-parameter compiler warnings.
+       (void)expression;
+       (void)function;
+       (void)file;
+       (void)line;
+       (void)pReserved;
 }
 #endif
 
@@ -1412,6 +1418,8 @@ assertion_file_mode(const char *file, int line, const char *pathname, int expect
        failure_start(file, line, "assertFileMode not yet implemented for Windows");
        (void)mode; /* UNUSED */
        (void)r; /* UNUSED */
+       (void)pathname; /* UNUSED */
+       (void)expected_mode; /* UNUSED */
 #else
        {
                struct stat st;