VirtualBox

Ignore:
Timestamp:
Dec 15, 2021 11:52:10 AM (3 years ago)
Author:
vboxsync
Message:

Additions/Shared Clipboard: GCC 11 fixes (warnings as errors, error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp

    r91740 r92925  
    637637        rc = Msg.ReqParms.fRoots.GetUInt32(&pRootListHdr->fRoots); AssertRC(rc);
    638638        if (RT_SUCCESS(rc))
    639             rc = Msg.cRoots.GetUInt32(&pRootListHdr->cRoots); AssertRC(rc);
     639        {
     640            rc = Msg.cRoots.GetUInt32(&pRootListHdr->cRoots);
     641            AssertRC(rc);
     642        }
    640643    }
    641644
     
    780783        rc = Msg.uContext.GetUInt64(&pCtx->idContext); AssertRC(rc);
    781784        if (RT_SUCCESS(rc))
    782             rc = Msg.enmDir.GetUInt32((uint32_t *)pEnmDir); AssertRC(rc);
    783         if (RT_SUCCESS(rc))
    784             rc = Msg.enmStatus.GetUInt32(&pReport->uStatus); AssertRC(rc);
    785         if (RT_SUCCESS(rc))
    786             rc = Msg.rc.GetUInt32((uint32_t *)&pReport->rc); AssertRC(rc);
    787         if (RT_SUCCESS(rc))
    788             rc = Msg.fFlags.GetUInt32(&pReport->fFlags); AssertRC(rc);
     785        {
     786            rc = Msg.enmDir.GetUInt32((uint32_t *)pEnmDir);
     787            AssertRC(rc);
     788        }
     789        if (RT_SUCCESS(rc))
     790        {
     791            rc = Msg.enmStatus.GetUInt32(&pReport->uStatus);
     792            AssertRC(rc);
     793        }
     794        if (RT_SUCCESS(rc))
     795        {
     796            rc = Msg.rc.GetUInt32((uint32_t *)&pReport->rc);
     797            AssertRC(rc);
     798        }
     799        if (RT_SUCCESS(rc))
     800        {
     801            rc = Msg.fFlags.GetUInt32(&pReport->fFlags);
     802            AssertRC(rc);
     803        }
    789804    }
    790805
     
    853868        rc = Msg.ReqParms.uContext.GetUInt64(&pCtx->idContext); AssertRC(rc);
    854869        if (RT_SUCCESS(rc))
    855             rc = Msg.ReqParms.fRoots.GetUInt32(pfRoots); AssertRC(rc);
     870        {
     871            rc = Msg.ReqParms.fRoots.GetUInt32(pfRoots);
     872            AssertRC(rc);
     873        }
    856874    }
    857875
     
    914932        rc = Msg.Parms.uContext.GetUInt64(&pCtx->idContext); AssertRC(rc);
    915933        if (RT_SUCCESS(rc))
    916             rc = Msg.Parms.fInfo.GetUInt32(pfInfo); AssertRC(rc);
    917         if (RT_SUCCESS(rc))
    918             rc = Msg.Parms.uIndex.GetUInt32(puIndex); AssertRC(rc);
     934        {
     935            rc = Msg.Parms.fInfo.GetUInt32(pfInfo);
     936            AssertRC(rc);
     937        }
     938        if (RT_SUCCESS(rc))
     939        {
     940            rc = Msg.Parms.uIndex.GetUInt32(puIndex);
     941            AssertRC(rc);
     942        }
    919943    }
    920944
     
    10761100        rc = Msg.uContext.GetUInt64(&pCtx->idContext);
    10771101        if (RT_SUCCESS(rc))
    1078             rc = Msg.uHandle.GetUInt64(phList); AssertRC(rc);
     1102        {
     1103            rc = Msg.uHandle.GetUInt64(phList);
     1104            AssertRC(rc);
     1105        }
    10791106    }
    10801107
     
    13101337        rc = Msg.ReqParms.uContext.GetUInt64(&pCtx->idContext);
    13111338        if (RT_SUCCESS(rc))
    1312             rc = Msg.ReqParms.uHandle.GetUInt64(phList); AssertRC(rc);
    1313         if (RT_SUCCESS(rc))
    1314             rc = Msg.ReqParms.fInfo.GetUInt32(pfInfo); AssertRC(rc);
     1339        {
     1340            rc = Msg.ReqParms.uHandle.GetUInt64(phList);
     1341            AssertRC(rc);
     1342        }
     1343        if (RT_SUCCESS(rc))
     1344        {
     1345            rc = Msg.ReqParms.fInfo.GetUInt32(pfInfo);
     1346            AssertRC(rc);
     1347        }
    13151348    }
    13161349
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