verify: document conflict with -Wnested-externs
authorEric Blake <eblake@redhat.com>
Fri, 20 Jul 2012 22:48:46 +0000 (16:48 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 20 Jul 2012 22:48:46 +0000 (16:48 -0600)
commit6c37e0a73c7c1b6fe6eac4d794e2e65791a2700d
tree39b41f52dbaecacdebc5f9f5620cf0f2a750ef0c
parent92875a6a65e0dbb960d2b0704f6240d4a6e25936
verify: document conflict with -Wnested-externs

Our implementation of verify() relies on nested extern declarations,
so it is incompatible with gcc < 4.6 coupled with -Wnested-externs
when used inside a function body.  But inside a function body, you
can always arrange to use verify_expr() instead, which is warning-free.

* lib/verify.h: Give hint about usage when gcc warnings are enabled.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/verify.h