From f5e8c373a15375c9bb7bdca756479bad8720671f Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 01 Nov 2017 16:50:53 -0400 Subject: about:marquee: Convert static const document var to macro Fixes: CC src/schemes/about/marquee-marquee.o src/schemes/about/marquee.c: In function ‘mq_about_marquee_response’: src/schemes/about/marquee.c:72:5: warning: format not a string literal, argument types not checked [-Wformat-nonliteral] "DANGER", "DO NOT PRESS")); ^ --- (limited to 'src/schemes/about') diff --git a/src/schemes/about/marquee.c b/src/schemes/about/marquee.c index 4ab101f..8045291 100644 --- a/src/schemes/about/marquee.c +++ b/src/schemes/about/marquee.c @@ -26,33 +26,33 @@ #include "../about.h" #include "paths.h" -static const gchar *document = - "" - "" - "" - "" - "%s" - "" - "" - "" - "
" - "" - "
" - "" - ""; +#define DOCUMENT \ + "" \ + "" \ + "" \ + "" \ + "%s" \ + "" \ + "" \ + "" \ + "
" \ + "" \ + "
" \ + "" \ + "" void mq_about_marquee_response(MqApplication *application, GHashTable *query, @@ -66,7 +66,7 @@ mq_about_marquee_response(MqApplication *application, GHashTable *query, } mq_about_redirect(request, "mq-about:marquee"); } else { - mq_about_response(request, g_strdup_printf(document, + mq_about_response(request, g_strdup_printf(DOCUMENT, gtk_widget_get_default_direction() == GTK_TEXT_DIR_RTL ? "rtl" : "ltr", "DANGER", "DO NOT PRESS")); -- cgit v0.9.1