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