You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/home/travis/build/xhochy/arrow/cpp/src/arrow/flight/test-util.ccInfileincludedfrom /home/travis/build/xhochy/arrow/cpp-toolchain/include/google/protobuf/util/type_resolver.h:39:0,
from /home/travis/build/xhochy/arrow/cpp-toolchain/include/google/protobuf/util/json_util.h:37,
from /home/travis/build/xhochy/arrow/cpp-toolchain/include/grpcpp/impl/codegen/config_protobuf.h:70,
from /home/travis/build/xhochy/arrow/cpp/src/arrow/flight/customize_protobuf.h:23,
from /home/travis/build/xhochy/arrow/cpp/src/arrow/flight/protocol-internal.h:20,
from /home/travis/build/xhochy/arrow/cpp/src/arrow/flight/internal.h:23,
from /home/travis/build/xhochy/arrow/cpp/src/arrow/flight/test-util.cc:35:
/home/travis/build/xhochy/arrow/cpp-toolchain/include/google/protobuf/stubs/status.h:111:0: error: "EXPECT_OK"redefined [-Werror]
#defineEXPECT_OK(value) EXPECT_TRUE((value).ok())
Infileincludedfrom /home/travis/build/xhochy/arrow/cpp/src/arrow/ipc/test-common.h:35:0,
from /home/travis/build/xhochy/arrow/cpp/src/arrow/flight/test-util.cc:30:
/home/travis/build/xhochy/arrow/cpp/src/arrow/testing/gtest_util.h:80:0: note: thisisthelocationofthepreviousdefinition
#defineEXPECT_OK(expr) \
cc1plus: allwarningsbeingtreatedaserrors
I would workaround this by renaming our EXPECT_OK to ARROW_EXPECT_OK.
Uwe Korn / @xhochy:
This has been there for over 4 years now. This error simply popped up as I didn't include protobuf headers using include(SYSTEM …). Using SYSTEM will let the compiler ignore all warnings in third-party headers. We have been using this for now and I'll also switched to using this now in my CMake refactor as there is an awful lot of warnings in the thirdparty headers.
This fails for me with the following error:
I would workaround this by renaming our
EXPECT_OK
toARROW_EXPECT_OK
.Reporter: Uwe Korn / @xhochy
Assignee: Uwe Korn / @xhochy
Note: This issue was originally created as ARROW-4760. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: