From: Tobias Mueller Date: Thu, 5 Mar 2009 00:34:49 +0000 (+0000) Subject: Make the fixed sized string a semantically correct const char[] instead of X-Git-Tag: EVINCE_2_26_0~34 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=30a392babbccd40030a2da905d809c7208a1b70c;p=evince.git Make the fixed sized string a semantically correct const char[] instead of * properties/ev-properties-view.c: (ev_properties_view_format_date): Make the fixed sized string a semantically correct const char[] instead of a const char* to fix a compiler warning if built with -Wformat. ** Fixes bug 574168 svn path=/trunk/; revision=3516 --- diff --git a/ChangeLog b/ChangeLog index 4a3df34e..033607e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-03-05 Tobias Mueller + + * properties/ev-properties-view.c: + (ev_properties_view_format_date): Make the fixed sized string a + semantically correct const char[] instead of a const char* to fix + a compiler warning if built with -Wformat. + ** Fixes bug 574168 + 2009-03-03 Christian Persch * libdocument/ev-document-factory.c: diff --git a/properties/ev-properties-view.c b/properties/ev-properties-view.c index 6d497ff3..e0f17797 100644 --- a/properties/ev-properties-view.c +++ b/properties/ev-properties-view.c @@ -112,7 +112,7 @@ ev_properties_view_format_date (GTime utime) { time_t time = (time_t) utime; char s[256]; - const char *fmt_hack = "%c"; + const char fmt_hack[] = "%c"; size_t len; #ifdef HAVE_LOCALTIME_R struct tm t;