VirtualBox

Changeset 64324 in vbox


Ignore:
Timestamp:
Oct 19, 2016 4:50:12 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
111400
Message:

gcc 6.2 fix

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/VBox/Devices/USB/linux/USBProxyDevice-linux.cpp

    r64294 r64324  
    111111typedef struct USBPROXYURBLNX
    112112{
    113     /** The kernel URB data */
     113    /** The kernel URB data. */
     114#if RT_GNUC_PREREQ(4, 6)
     115    /* gcc 6.2 complains about the [] member of KUrb */
     116# pragma GCC diagnostic push
     117# pragma GCC diagnostic ignored "-Wpedantic"
     118#endif
    114119    struct usbdevfs_urb             KUrb;
     120#if RT_GNUC_PREREQ(4, 6)
     121# pragma GCC diagnostic pop
     122#endif
    115123    /** Space filler for the isochronous packets. */
    116124    struct usbdevfs_iso_packet_desc aIsocPktsDonUseTheseUseTheOnesInKUrb[8];
     
    122130    struct USBPROXYURBLNX           *pSplitNext;
    123131    /** Don't report these back. */
    124     bool                             fCanceledBySubmit;
     132    bool                            fCanceledBySubmit;
    125133    /** This split element is reaped. */
    126     bool                             fSplitElementReaped;
     134    bool                            fSplitElementReaped;
    127135    /** Size to transfer in remaining fragments of a split URB */
    128     uint32_t                         cbSplitRemaining;
     136    uint32_t                        cbSplitRemaining;
    129137} USBPROXYURBLNX, *PUSBPROXYURBLNX;
    130138
  • TabularUnified trunk/src/VBox/Main/src-server/linux/HostDnsServiceLinux.cpp

    r62485 r64324  
    3535#include <linux/limits.h>
    3636
     37/* Workaround for <sys/cdef.h> defining __flexarr to [] which beats us in
     38 * struct inotify_event (char name __flexarr). */
     39#include <sys/cdefs.h>
     40#undef __flexarr
     41#define __flexarr [0]
    3742#include <sys/inotify.h>
    3843#include <sys/types.h>
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette