[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Created] (ARROW-2505) [C++] Disable MSVC warning C4800

Antoine Pitrou created ARROW-2505:

             Summary: [C++] Disable MSVC warning C4800
                 Key: ARROW-2505
             Project: Apache Arrow
          Issue Type: Wish
          Components: C++
            Reporter: Antoine Pitrou

This warning is practically pointless, and since we treat warnings as errors on Appveyor, it imposes spurious back-and-forths to fix it when it occurs.

{quote}This warning is generated when a value that is not bool is assigned or coerced into type bool. Typically, this message is caused by assigning int variables to bool variables where the int variable contains only values true and false, and could be redeclared as type bool. If you cannot rewrite the expression to use type bool, then you can add "!=0" to the expression, which gives the expression type bool. Casting the expression to type bool does not disable the warning, which is by design.

This warning is no longer generated in Visual Studio 2017.

This message was sent by Atlassian JIRA

( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-arrow-development/msg04282.html on line 95
Call Stack
10.0017364600{main}( ).../msg04282.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-arrow-development/msg04282.html on line 95
Call Stack
10.0017364600{main}( ).../msg04282.html:0