Skip to content

Commit 8675d23

Browse files
committed
ci: fix deprecated diagnostic which breaks build on freebsd
1 parent 95208a0 commit 8675d23

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

include/libremidi/system_error2.hpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@
6363
#define STDX_TRIVIALLY_RELOCATABLE
6464
#endif
6565

66+
#if defined(__clang__) && defined(__has_warning)
67+
#pragma clang diagnostic push
68+
#if __has_warning("-Wdeprecated-declarations")
69+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
70+
#endif
71+
#endif
6672
#endif // STDX_COMPILER_HPP
6773

6874

@@ -3497,5 +3503,6 @@ inline string_ref dynamic_exception_code_error_domain::message(const error& e) c
34973503

34983504
} // end namespace stdx
34993505

3500-
3501-
3506+
#if defined(__clang__) && defined(__has_warning)
3507+
#pragma clang diagnostic pop
3508+
#endif

0 commit comments

Comments
 (0)