VirtualBox

Changeset 107554 in vbox


Ignore:
Timestamp:
Jan 9, 2025 8:41:09 AM (5 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
166627
Message:

src/VBox/HostDrivers/VBoxUSB/win/testcase/USBTest.cpp: Fixed warnings found by Parfait (assignment unused). jiraref:VBP-1424

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/testcase/USBTest.cpp

    r106061 r107554  
    346346int __cdecl main(int argc, char **argv)
    347347{
    348     int rc;
    349     int c;
    350     RT_NOREF2(argc, argv);
     348    RT_NOREF(argc, argv);
    351349
    352350    RTPrintf("USB test\n");
    353351
    354     rc = usbMonitorInit();
    355     AssertRC(rc);
     352    int rc = usbMonitorInit();
     353    if (RT_FAILURE(rc))
     354        return RTEXITCODE_FAILURE;
    356355
    357356    void *pId1, *pId2, *pId3;
     
    362361
    363362    RTPrintf("Waiting to capture devices... enter 'r' to run filters\n");
    364     c = RTStrmGetCh(g_pStdIn);
     363    int const c = RTStrmGetCh(g_pStdIn);
    365364    if (c == 'r')
    366365    {
     
    378377    usbMonRemoveFilter(pId3);
    379378
    380     rc = usbMonitorTerm();
    381 
    382     return 0;
    383 }
    384 
     379    usbMonitorTerm();
     380    return RTEXITCODE_SUCCESS;
     381}
     382
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