VirtualBox

Changeset 101202 in vbox for trunk


Ignore:
Timestamp:
Sep 20, 2023 2:37:32 PM (15 months ago)
Author:
vboxsync
Message:

Main/USBIdDatabaseStub.cpp: Address a few build errors flagged by clang
when building with VBOX_WITH_MAIN_USB_ID_DATABASE= such as a missing
comma in a class member initialization and additional braces as advised
when "initializing a subobject".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/USBIdDatabaseStub.cpp

    r98103 r101202  
    2828#include "USBIdDatabase.h"
    2929
    30 const RTBLDPROGSTRTAB   USBIdDatabase::s_StrTab          =  { "", 0, 0 NULL };
     30const RTBLDPROGSTRTAB   USBIdDatabase::s_StrTab          =  { "", 0, 0, NULL };
    3131
    3232const size_t            USBIdDatabase::s_cVendors        = 0;
    33 const USBIDDBVENDOR     USBIdDatabase::s_aVendors[]      = { 0 };
     33const USBIDDBVENDOR     USBIdDatabase::s_aVendors[]      = { {0,0,0} };
    3434const RTBLDPROGSTRREF   USBIdDatabase::s_aVendorNames[]  = { {0,0} };
    3535
    3636const size_t            USBIdDatabase::s_cProducts       = 0;
    37 const USBIDDBPROD       USBIdDatabase::s_aProducts[]     = { 0 };
     37const USBIDDBPROD       USBIdDatabase::s_aProducts[]     = { {0} };
    3838const RTBLDPROGSTRREF   USBIdDatabase::s_aProductNames[] = { {0,0} };
    3939
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