]> git.ozlabs.org Git - ccan/blobdiff - ccan/build_assert/_info
compiler, talloc: warn if return from realloc-like functions isn't used.
[ccan] / ccan / build_assert / _info
index d2fe3d9c80fc240daf4cef1e3b8b9113e4a152df..16a4a94c8f292c27665120023f503cfd33c61974 100644 (file)
@@ -26,7 +26,7 @@
  *             int x;
  *     };
  *
- *     char *foo_string(struct foo *foo)
+ *     static char *foo_string(struct foo *foo)
  *     {
  *             // This trick requires that the string be first in the structure
  *             BUILD_ASSERT(offsetof(struct foo, string) == 0);
@@ -34,6 +34,7 @@
  *     }
  *
  * Licence: LGPL (2 or any later version)
+ * Author: Rusty Russell <rusty@rustcorp.com.au>
  */
 int main(int argc, char *argv[])
 {