VirtualBox

Ignore:
Timestamp:
Dec 3, 2007 9:11:37 AM (17 years ago)
Author:
vboxsync
Message:

prevent compiler warning about unused RTASSERTVAR

Location:
trunk/src/VBox/Additions/linux/module
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/module/hgcmcall.c

    r5900 r5935  
    286286 * @param arg User space pointer to the call data structure
    287287 */
     288AssertCompile((_IOC_SIZE(IOCTL_VBOXGUEST_HGCM_CALL) == sizeof(VBoxGuestHGCMCallInfo)));
     289
    288290int vbox_ioctl_hgcm_call(unsigned long arg, VBoxDevice *vboxDev)
    289291{
     
    292294    int rc;
    293295
    294     AssertCompile((_IOC_SIZE(IOCTL_VBOXGUEST_HGCM_CALL) == sizeof(VBoxGuestHGCMCallInfo)));
    295296    /* Get the call header from user space to see how many call parameters there are. */
    296297    if (copy_from_user(&callHeader, (void*)arg, sizeof(callHeader)))
  • trunk/src/VBox/Additions/linux/module/vboxmod.c

    r5900 r5935  
    352352 *
    353353 */
     354AssertCompile((sizeof(VMMDevRequestHeader) == _IOC_SIZE(IOCTL_VBOXGUEST_VMMREQUEST)));
     355
    354356static int vboxadd_ioctl(struct inode *inode, struct file *filp,
    355357                         unsigned int cmd, unsigned long arg)
     
    373375            int rc;
    374376
    375             AssertCompile((sizeof(VMMDevRequestHeader) == _IOC_SIZE(IOCTL_VBOXGUEST_VMMREQUEST)));
    376377            if (copy_from_user(&reqHeader, (void*)arg, _IOC_SIZE(cmd)))
    377378            {
Note: See TracChangeset for help on using the changeset viewer.

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