[Libguestfs] [PATCH v2 1/2] GCC 7: Add __attribute__((noreturn)) to some usage functions which call exit.

Pino Toscano ptoscano at redhat.com
Tue Feb 14 16:55:41 UTC 2017


On Tuesday, 14 February 2017 16:51:22 CET Richard W.M. Jones wrote:
> This happens with GCC 7.0.1.  The errors were all of the form:
> 
> qemu-speed-test.c: In function 'main':
> qemu-speed-test.c:153:7: error: this statement may fall through [-Werror=implicit-fallthrough=]
>        usage (EXIT_SUCCESS);
>        ^~~~~~~~~~~~~~~~~~~~
> qemu-speed-test.c:155:5: note: here
>      default:
>      ^~~~~~~
> ---

LGTM.

Thanks,
-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20170214/eb6d263c/attachment.sig>


More information about the Libguestfs mailing list