-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-18186: [C++][MinGW] Make buildable with clang (#14536)
Error1 (can't use `[[gnu::dllexport]]` with template): cpp/src/arrow/util/int_util.cc:463:1: error: an attribute list cannot appear here INSTANTIATE_ALL() ^~~~~~~~~~~~~~~~~ cpp/src/arrow/util/int_util.cc:454:3: note: expanded from macro 'INSTANTIATE_ALL' INSTANTIATE_ALL_DEST(uint8_t) \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cpp/src/arrow/util/int_util.cc:444:3: note: expanded from macro 'INSTANTIATE_ALL_DEST' INSTANTIATE(uint8_t, DEST) \ ^~~~~~~~~~~~~~~~~~~~~~~~~~ cpp/src/arrow/util/int_util.cc:440:12: note: expanded from macro 'INSTANTIATE' template ARROW_TEMPLATE_EXPORT void TransposeInts( \ ^~~~~~~~~~~~~~~~~~~~~ cpp/src/arrow/util/visibility.h:47:31: note: expanded from macro 'ARROW_TEMPLATE_EXPORT' #define ARROW_TEMPLATE_EXPORT ARROW_DLLEXPORT ^~~~~~~~~~~~~~~ cpp/src/arrow/util/visibility.h:32:25: note: expanded from macro 'ARROW_DLLEXPORT' #define ARROW_DLLEXPORT [[gnu::dllexport]] ^~~~~~~~~~~~~~~~~~ Error2 (unused variable): cpp/src/arrow/util/io_util.cc:1079:7: warning: variable 'oflag' set but not used [-Wunused-but-set-variable] int oflag = _O_CREAT | _O_BINARY | _O_NOINHERIT; ^ Error3 (missing field initializers): cpp/src/arrow/util/io_util.cc:1545:29: warning: missing field 'InternalHigh' initializer [-Wmissing-field-initializers] OVERLAPPED overlapped = {0}; ^ Authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
- Loading branch information
Showing
4 changed files
with
21 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters