Skip to content

Commit ed9f113

Browse files
committed
Revert "enforce [[nodiscard]]"
This reverts commit 2708d07.
1 parent 2708d07 commit ed9f113

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

.clang-tidy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Checks: |
2121
clang-analyzer-*,
2222
google-*,
2323
modernize-*,
24+
-modernize-use-nodiscard,
2425
-modernize-use-trailing-return-type,
2526
2627
CheckOptions:

src/iceberg/arrow/demo_arrow.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ICEBERG_ARROW_EXPORT DemoArrow : public Table {
3030
public:
3131
DemoArrow() = default;
3232
~DemoArrow() override = default;
33-
[[nodiscard]] std::string print() const override;
33+
std::string print() const override;
3434
};
3535

3636
} // namespace iceberg::arrow

src/iceberg/demo_table.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ICEBERG_EXPORT DemoTable : public Table {
2828
DemoTable() = default;
2929
~DemoTable() override = default;
3030

31-
[[nodiscard]] std::string print() const override;
31+
std::string print() const override;
3232
};
3333

3434
} // namespace iceberg

src/iceberg/puffin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace iceberg {
2828
class ICEBERG_EXPORT Puffin {
2929
public:
3030
virtual ~Puffin() = default;
31-
[[nodiscard]] virtual std::string print() const = 0;
31+
virtual std::string print() const = 0;
3232
};
3333

3434
} // namespace iceberg

src/iceberg/puffin/demo_puffin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ICEBERG_PUFFIN_EXPORT DemoPuffin : public Puffin {
2828
public:
2929
DemoPuffin() = default;
3030
~DemoPuffin() override = default;
31-
[[nodiscard]] std::string print() const override;
31+
std::string print() const override;
3232
};
3333

3434
} // namespace iceberg::puffin

src/iceberg/table.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace iceberg {
2929
class ICEBERG_EXPORT Table {
3030
public:
3131
virtual ~Table() = default;
32-
[[nodiscard]] virtual std::string print() const = 0;
32+
virtual std::string print() const = 0;
3333
};
3434

3535
} // namespace iceberg

0 commit comments

Comments
 (0)