]> git.ozlabs.org Git - ccan/blobdiff - ccan/cast/test/compile_fail-cast_static-2.c
base64: fix for unsigned chars (e.g. ARM).
[ccan] / ccan / cast / test / compile_fail-cast_static-2.c
index d3ba8d3ed602b8c97629eb968a507e3039f16a67..dae0231e81b2efdee5fb02ed5a33f64a47dafd1c 100644 (file)
@@ -1,7 +1,7 @@
 #include <ccan/cast/cast.h>
 #include <stdlib.h>
 
-int main(int argc, char *argv[])
+int main(void)
 {
        char *c;
 #ifdef FAIL
@@ -12,6 +12,7 @@ int main(int argc, char *argv[])
                *p = 0;
 
        c = cast_static(char *, p);
+       (void) c; /* Suppress unused-but-set-variable warning. */
        return 0;
 }