X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fbuild_assert%2Fbuild_assert.h;h=c6ee362f2299933160a552484434f911c713a290;hb=2421664fb0d146fd500a0def4368fee9f8f2fdf9;hp=4b0d75e4bf29ade83fe741440d56532e3c8ffdfe;hpb=650c775ff00cccd03fc84e7789a03c51d9839004;p=ccan diff --git a/ccan/build_assert/build_assert.h b/ccan/build_assert/build_assert.h index 4b0d75e4..c6ee362f 100644 --- a/ccan/build_assert/build_assert.h +++ b/ccan/build_assert/build_assert.h @@ -9,7 +9,9 @@ * by the compiler. This can only be used within a function. * * Example: - * char *foo_to_char(struct foo *foo) + * #include + * ... + * static char *foo_to_char(struct foo *foo) * { * // This code needs string to be at start of foo. * BUILD_ASSERT(offsetof(struct foo, string) == 0);