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