Re: [PATCH] Remove stray semicolon after pragma macros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/18/2013 09:17 AM, Daniel P. Berrange wrote:
> The VIR_WARNINGS_NO_CAST_ALIGN / VIR_WARNINGS_RESET should
> not have any trailing ';' since they are pragmas. The use
> of a ';' results in an empty statement which confuses CIL.
> 
> Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
> ---
>  src/nwfilter/nwfilter_dhcpsnoop.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

ACK.

> 
> diff --git a/src/nwfilter/nwfilter_dhcpsnoop.c b/src/nwfilter/nwfilter_dhcpsnoop.c
> index e8fcfef..a96a790 100644
> --- a/src/nwfilter/nwfilter_dhcpsnoop.c
> +++ b/src/nwfilter/nwfilter_dhcpsnoop.c
> @@ -981,9 +981,9 @@ virNWFilterSnoopDHCPDecode(virNWFilterSnoopReqPtr req,
>      /* go through the protocol headers */
>      switch (ntohs(pep->eh_type)) {
>      case ETHERTYPE_IP:
> -        VIR_WARNINGS_NO_CAST_ALIGN;
> +        VIR_WARNINGS_NO_CAST_ALIGN
>          pip = (struct iphdr *) pep->eh_data;
> -        VIR_WARNINGS_RESET;
> +        VIR_WARNINGS_RESET
>          len -= offsetof(virNWFilterSnoopEthHdr, eh_data);
>          break;
>      default:
> 

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]