VirtualBox

Changeset 69772 in vbox


Ignore:
Timestamp:
Nov 20, 2017 12:32:00 PM (7 years ago)
Author:
vboxsync
Message:

split-soapC.cpp: Must take warning pushing and poping into account when splitting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/split-soapC.cpp

    r69500 r69772  
    105105    size_t        cbWritten = 0;
    106106    unsigned long cIfNesting = 0;
     107    unsigned long cWarningNesting = 0;
    107108    unsigned long cBraceNesting = 0;
    108109    unsigned long cLinesSinceStaticMap = ~0UL / 2;
     
    166167                fJustZero = true;
    167168        }
     169        else if (!strncmp(pszLine, RT_STR_TUPLE("#pragma warning(push)")))
     170            cWarningNesting++;
     171        else if (!strncmp(pszLine, RT_STR_TUPLE("#pragma warning(pop)")))
     172            cWarningNesting--;
    168173        else
    169174        {
     
    190195        if (   cbWritten >= cbLimit
    191196            && cIfNesting == 0
     197            && cWarningNesting == 0
    192198            && fJustZero
    193199            && cFiles < cChunks
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