Fix more warnings

This commit is contained in:
Jasmine Iwanek
2022-12-23 15:14:30 -05:00
parent 231cadb0a7
commit ecd7694006
2 changed files with 24 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ extern "C" {
// Disable c99-designator to avoid the warnings in rtmidi_*_device
#ifdef __clang__
# if __has_warning("-Wc99-designator")
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wc99-designator"
# endif
#endif
@@ -302,4 +303,11 @@ const device_t rtmidi_input_device = {
.force_redraw = NULL,
.config = midi_input_config
};
#ifdef __clang__
# if __has_warning("-Wc99-designator")
# pragma clang diagnostic pop
# endif
#endif
}