Skip to content

Commit c045c35

Browse files
pytorchbotswolchok
andauthored
[ExecuTorch] Clean up pre-C++17 macros (#6583)
We require C++17. Differential Revision: [D65233922](https://our.internmc.facebook.com/intern/diff/D65233922/) ghstack-source-id: 250997648 Pull Request resolved: #6576 Co-authored-by: Scott Wolchok <[email protected]>
1 parent a17b59b commit c045c35

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

runtime/platform/compiler.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -75,27 +75,13 @@
7575

7676
#endif // defined(__GNUC__)
7777

78-
#if (__cplusplus) >= 201703L
79-
8078
#define ET_DEPRECATED [[deprecated]]
8179
#define ET_EXPERIMENTAL \
8280
[[deprecated("This API is experimental and may change without notice.")]]
8381
#define ET_FALLTHROUGH [[fallthrough]]
8482
#define ET_NODISCARD [[nodiscard]]
8583
#define ET_UNUSED [[maybe_unused]]
8684

87-
#else
88-
89-
#define ET_DEPRECATED __attribute__((deprecated))
90-
#define ET_EXPERIMENTAL \
91-
__attribute__(( \
92-
deprecated("This API is experimental and may change without notice.")))
93-
#define ET_FALLTHROUGH __attribute__((fallthrough))
94-
#define ET_NODISCARD __attribute__((warn_unused_result))
95-
#define ET_UNUSED __attribute__((unused))
96-
97-
#endif // (__cplusplus) >= 201703L
98-
9985
// UNLIKELY Macro
10086
// example
10187
// if ET_UNLIKELY(a > 10 && b < 5) {

0 commit comments

Comments
 (0)