Skip to content

Commit 7edfbae

Browse files
kouwesm
authored andcommitted
ARROW-3287: [C++] Suppress "redeclared without dllimport attribute" warning from MinGW
This fixes the following warning from MinGW: ../apache-arrow-0.11.0/c_glib/../cpp/src/arrow/status.h:265:8: warning: 'arrow::Status::Status(arrow::Status&&)' redeclared without dllimport attribute after being referenced with dll linkage inline Status::Status(Status&& s) noexcept : state_(s.state_) { s.state_ = NULL; } ^~~~~~ Author: Kouhei Sutou <kou@clear-code.com> Closes apache#2602 from kou/cpp-add-missing-inline and squashes the following commits: d4c18a7 <Kouhei Sutou> Add missing inline
1 parent e2c4b09 commit 7edfbae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/src/arrow/status.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class ARROW_EXPORT Status {
110110
Status& operator=(const Status& s);
111111

112112
// Move the specified status.
113-
Status(Status&& s) noexcept;
113+
inline Status(Status&& s) noexcept;
114114
Status& operator=(Status&& s) noexcept;
115115

116116
// AND the statuses.

0 commit comments

Comments
 (0)