VirtualBox

Changeset 66013 in vbox


Ignore:
Timestamp:
Mar 9, 2017 1:17:36 PM (8 years ago)
Author:
vboxsync
Message:

tstSharedFolderService.cpp: Make TESTSHFLSTRING a union to avoid confusing agressive gcc loop optimizations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedFolders/testcase/tstSharedFolderService.cpp

    r66012 r66013  
    502502void testMappingsRemoveBadParameters(RTTEST hTest) { RT_NOREF1(hTest); }
    503503
    504 struct TESTSHFLSTRING
     504union TESTSHFLSTRING
    505505{
    506506    SHFLSTRING string;
     
    508508};
    509509
    510 static void fillTestShflString(struct TESTSHFLSTRING *pDest,
     510static void fillTestShflString(union TESTSHFLSTRING *pDest,
    511511                               const char *pcszSource)
    512512{
     
    529529    VBOXHGCMSVCPARM aParms[RT_MAX(SHFL_CPARMS_ADD_MAPPING,
    530530                                  SHFL_CPARMS_MAP_FOLDER)];
    531     struct TESTSHFLSTRING FolderName;
    532     struct TESTSHFLSTRING Mapping;
     531    union TESTSHFLSTRING FolderName;
     532    union TESTSHFLSTRING Mapping;
    533533    VBOXHGCMCALLHANDLE_TYPEDEF callHandle = { VINF_SUCCESS };
    534534    int rc;
     
    570570                                  SHFL_CPARMS_REMOVE_MAPPING)];
    571571    VBOXHGCMCALLHANDLE_TYPEDEF callHandle = { VINF_SUCCESS };
    572     struct TESTSHFLSTRING FolderName;
     572    union TESTSHFLSTRING FolderName;
    573573    int rc;
    574574
     
    591591{
    592592    VBOXHGCMSVCPARM aParms[SHFL_CPARMS_CREATE];
    593     struct TESTSHFLSTRING Path;
     593    union TESTSHFLSTRING Path;
    594594    SHFLCREATEPARMS CreateParms;
    595595    VBOXHGCMCALLHANDLE_TYPEDEF callHandle = { VINF_SUCCESS };
     
    674674{
    675675    VBOXHGCMSVCPARM aParms[SHFL_CPARMS_LIST];
    676     struct TESTSHFLSTRING Path;
     676    union TESTSHFLSTRING Path;
    677677    VBOXHGCMCALLHANDLE_TYPEDEF callHandle = { VINF_SUCCESS };
    678678
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