Add ifdefs around #pragma GCC diagnostic
This commit is contained in:
@@ -50,10 +50,14 @@ enum {
|
|||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
#define gst_fastspectrum_parent_class parent_class
|
#define gst_fastspectrum_parent_class parent_class
|
||||||
|
#ifdef __GNUC__
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wold-style-cast"
|
#pragma GCC diagnostic ignored "-Wold-style-cast"
|
||||||
|
#endif
|
||||||
G_DEFINE_TYPE(GstFastSpectrum, gst_fastspectrum, GST_TYPE_AUDIO_FILTER)
|
G_DEFINE_TYPE(GstFastSpectrum, gst_fastspectrum, GST_TYPE_AUDIO_FILTER)
|
||||||
|
#ifdef __GNUC__
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
static void gst_fastspectrum_finalize(GObject *object);
|
static void gst_fastspectrum_finalize(GObject *object);
|
||||||
static void gst_fastspectrum_set_property(GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec);
|
static void gst_fastspectrum_set_property(GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec);
|
||||||
|
|||||||
@@ -13,9 +13,11 @@
|
|||||||
SBSystemPreferencesWindow, SBSystemPreferencesPane,
|
SBSystemPreferencesWindow, SBSystemPreferencesPane,
|
||||||
SBSystemPreferencesAnchor;
|
SBSystemPreferencesAnchor;
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wmultichar"
|
#pragma GCC diagnostic ignored "-Wmultichar"
|
||||||
#pragma GCC diagnostic ignored "-Wfour-char-constants"
|
#pragma GCC diagnostic ignored "-Wfour-char-constants"
|
||||||
|
#endif
|
||||||
|
|
||||||
enum SBSystemPreferencesSaveOptions {
|
enum SBSystemPreferencesSaveOptions {
|
||||||
SBSystemPreferencesSaveOptionsYes = 'yes ' /* Save the file. */,
|
SBSystemPreferencesSaveOptionsYes = 'yes ' /* Save the file. */,
|
||||||
@@ -32,7 +34,9 @@ enum SBSystemPreferencesPrintingErrorHandling {
|
|||||||
'lwdt' /* print a detailed report of PostScript errors */
|
'lwdt' /* print a detailed report of PostScript errors */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef enum SBSystemPreferencesPrintingErrorHandling
|
typedef enum SBSystemPreferencesPrintingErrorHandling
|
||||||
SBSystemPreferencesPrintingErrorHandling;
|
SBSystemPreferencesPrintingErrorHandling;
|
||||||
|
|||||||
@@ -261,10 +261,14 @@ QDebug operator<<(QDebug dbg, NSObject *object) {
|
|||||||
[self setDelegate:delegate_];
|
[self setDelegate:delegate_];
|
||||||
|
|
||||||
// FIXME
|
// FIXME
|
||||||
|
#ifdef __GNUC__
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
#endif
|
||||||
[[NSUserNotificationCenter defaultUserNotificationCenter]setDelegate:delegate_];
|
[[NSUserNotificationCenter defaultUserNotificationCenter]setDelegate:delegate_];
|
||||||
|
#ifdef __GNUC__
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user