From 64dcdf26bb759a275cd833fc09dbccadcf067d51 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Tue, 8 Nov 2022 15:01:54 -0800 Subject: [PATCH] Fix non-existant enum on some systems --- TimerApplication.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/TimerApplication.c b/TimerApplication.c index 696bbea..a28283a 100644 --- a/TimerApplication.c +++ b/TimerApplication.c @@ -57,7 +57,10 @@ static void timer_application_activate(GApplication *app) { } TimerApplication *timer_application_new() { - return g_object_new(TIMER_TYPE_APPLICATION, "application-id", "org.zander.practicetiemr", "flags", G_APPLICATION_DEFAULT_FLAGS, NULL); +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated" + return g_object_new(TIMER_TYPE_APPLICATION, "application-id", "org.zander.practicetiemr", "flags", G_APPLICATION_FLAGS_NONE, NULL); +#pragma GCC diagnostic pop } const char *timer_application_get_config_file(TimerApplication *self) {