]> git.ozlabs.org Git - ccan/blobdiff - ccan/typesafe_cb/test/compile_ok-typesafe_cb-volatile.c
typesafe_cb: handle pointers to undefined struct types.
[ccan] / ccan / typesafe_cb / test / compile_ok-typesafe_cb-volatile.c
index 93875c9e5d784dcb490227d7ae49f2f3e676d11c..ecb0c58b2dc8bfccf4f0e6f2bbbe4efcbcbc32c6 100644 (file)
@@ -1,4 +1,4 @@
-#include "typesafe_cb/typesafe_cb.h"
+#include <ccan/typesafe_cb/typesafe_cb.h>
 #include <stdlib.h>
 
 /* volatile args in callbacks should be OK. */
@@ -28,11 +28,12 @@ static void my_callback(volatile char *p)
 {
 }
 
-static void my_callback_pre(int x, volatile char *p)
+/* FIXME: Can't handle volatile for these */
+static void my_callback_pre(int x, /* volatile */ char *p)
 {
 }
 
-static void my_callback_post(volatile char *p, int x)
+static void my_callback_post(/* volatile */ char *p, int x)
 {
 }