]> git.ozlabs.org Git - ccan/blobdiff - ccan/cast/test/compile_fail-cast_static.c
cast, container_of, tlist: Fix warning with GCC 4.6: -Wunused-but-set-variable
[ccan] / ccan / cast / test / compile_fail-cast_static.c
index 51ea8c2d7d92e6f4307a140e0fff1221a996b3ff..0f9e4780470a267dbf4573b76bd4791ba58f70b3 100644 (file)
@@ -12,5 +12,6 @@ int main(int argc, char *argv[])
                x = 0;
 
        c = cast_static(char, x);
+       (void) c; /* Suppress unused-but-set-variable warning. */
        return 0;
 }