]> git.ozlabs.org Git - ccan/blobdiff - ccan/cast/test/compile_fail-cast_const.c
cast, container_of, tlist: Fix warning with GCC 4.6: -Wunused-but-set-variable
[ccan] / ccan / cast / test / compile_fail-cast_const.c
index d401cc8ca91c488c159fb8f0d0bdb63bb0fd9df4..277f3de1c442b21fd9a8953b560a97d5bbb80e58 100644 (file)
@@ -18,6 +18,7 @@ int main(int argc, char *argv[])
                *p = NULL;
 
        uc = cast_const(char *, p);
+       (void) uc; /* Suppress unused-but-set-variable warning. */
        return 0;
 }