You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Niklas Quarfot Nielsen (JIRA)" <ji...@apache.org> on 2015/11/06 18:11:10 UTC

[jira] [Created] (MESOS-3840) Build broken: 'adding 'bool' to a string does not append to the string' in filesystem tests

Niklas Quarfot Nielsen created MESOS-3840:
---------------------------------------------

             Summary: Build broken: 'adding 'bool' to a string does not append to the string' in filesystem tests
                 Key: MESOS-3840
                 URL: https://issues.apache.org/jira/browse/MESOS-3840
             Project: Mesos
          Issue Type: Bug
            Reporter: Niklas Quarfot Nielsen
            Priority: Blocker


{code}
../../src/tests/containerizer/filesystem_isolator_tests.cpp:125:52: error: adding 'bool' to a string does not append to the string [-Werror,-Wstring-plus-int]
        return Error("Failed to create root dir: " + mkdir.isError());
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
../../src/tests/containerizer/filesystem_isolator_tests.cpp:125:52: note: use array indexing to silence this warning
        return Error("Failed to create root dir: " + mkdir.isError());
                                                   ^
                     &                             [                ]
{code}

{code}
 124       if (mkdir.isError()) {
 125         return Error("Failed to create root dir: " + mkdir.isError());
 126       }
{code}

should be

{code}
 124       if (mkdir.isError()) {
 125         return Error("Failed to create root dir: " + mkdir.error());
 126       }
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)