X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fbuild_assert%2Fbuild_assert.h;h=c6ee362f2299933160a552484434f911c713a290;hp=4b0d75e4bf29ade83fe741440d56532e3c8ffdfe;hb=7f63d84eb712c54c57c3d4e9a92ffefe2f1b2ade;hpb=650c775ff00cccd03fc84e7789a03c51d9839004 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);