]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix gcc warnings
authorngie <ngie@FreeBSD.org>
Wed, 6 Jul 2016 05:02:59 +0000 (05:02 +0000)
committerngie <ngie@FreeBSD.org>
Wed, 6 Jul 2016 05:02:59 +0000 (05:02 +0000)
commita9629fc1279369243f13b28d45d202f82e720778
treedb67792a1eec79c0f32399c6610c7a8e95a57935
parent67d615a1f296347408f41984ec2671d975031716
Fix gcc warnings

Add `WRAPPED_CTASSERT` macro by annotating CTASSERTs with __unused
to deal with -Wunused-local-typedefs warnings from gcc 4.8+.
All other compilers (clang, etc) use CTASSERT as-is. A more generic
solution for this issue will be proposed after ^/stable/11 is forked.

Consolidate all CTASSERTs under one block instead of inlining them in
functions.

Approved by: re (gjb)
Differential Revision: https://reviews.freebsd.org/D7119
MFC after: 1 week
Reported by: Jenkins
Reviewed by: grehan (maintainer)
Sponsored by: EMC / Isilon Storage Division
usr.sbin/bhyve/pci_emul.c