]> git.lizzy.rs Git - zlib.git/blobdiff - test/example.c
Avoid some random compiler warnings on various platforms.
[zlib.git] / test / example.c
index 104b2b7ea706bcd9abd6a0ae2c68751e6ca9727a..f008749ac62dee8d28213f7dfdbbee7d293e30d2 100644 (file)
@@ -59,13 +59,13 @@ void *myalloc(q, n, m)
     void *q;
     unsigned n, m;
 {
-    q = Z_NULL;
+    (void)q;
     return calloc(n, m);
 }
 
 void myfree(void *q, void *p)
 {
-    q = Z_NULL;
+    (void)q;
     free(p);
 }
 
@@ -573,7 +573,8 @@ int main(argc, argv)
     }
 
 #ifdef Z_SOLO
-    argc = strlen(argv[0]);
+    (void)argc;
+    (void)argv;
 #else
     test_compress(compr, comprLen, uncompr, uncomprLen);