Fix more warnings
This commit is contained in:
@@ -39,6 +39,7 @@ extern "C" {
|
|||||||
// Disable c99-designator to avoid the warnings in rtmidi_*_device
|
// Disable c99-designator to avoid the warnings in rtmidi_*_device
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
# if __has_warning("-Wc99-designator")
|
# if __has_warning("-Wc99-designator")
|
||||||
|
# pragma clang diagnostic push
|
||||||
# pragma clang diagnostic ignored "-Wc99-designator"
|
# pragma clang diagnostic ignored "-Wc99-designator"
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
@@ -302,4 +303,11 @@ const device_t rtmidi_input_device = {
|
|||||||
.force_redraw = NULL,
|
.force_redraw = NULL,
|
||||||
.config = midi_input_config
|
.config = midi_input_config
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
# if __has_warning("-Wc99-designator")
|
||||||
|
# pragma clang diagnostic pop
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -29,6 +29,15 @@ extern "C" {
|
|||||||
#include <86box/snd_opl.h>
|
#include <86box/snd_opl.h>
|
||||||
#include <86box/mem.h>
|
#include <86box/mem.h>
|
||||||
#include <86box/rom.h>
|
#include <86box/rom.h>
|
||||||
|
|
||||||
|
// Disable c99-designator to avoid the warnings in *_ymfm_device
|
||||||
|
#ifdef __clang__
|
||||||
|
# if __has_warning("-Wc99-designator")
|
||||||
|
# pragma clang diagnostic push
|
||||||
|
# pragma clang diagnostic ignored "-Wc99-designator"
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define RSM_FRAC 10
|
#define RSM_FRAC 10
|
||||||
@@ -432,4 +441,11 @@ const fm_drv_t ymfm_drv {
|
|||||||
&ymfm_drv_set_do_cycles,
|
&ymfm_drv_set_do_cycles,
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
# if __has_warning("-Wc99-designator")
|
||||||
|
# pragma clang diagnostic pop
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user