From: Andre Noll Date: Mon, 1 Jul 2013 19:02:56 +0000 (+0200) Subject: version.c: Mark version_git() as const. X-Git-Tag: v0.4.13~23^2 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=15e99acfc88ff999980ef97705e794d4849cf40e;hp=9bdebf3bb9375de9b4d0abc43fa9b9d2b05e9468 version.c: Mark version_git() as const. Fixes the following warning on gcc-4.8.1: version.c:13:13: warning: function might be candidate for attribute 'const' [-Wsuggest-attribute=const] --- diff --git a/version.c b/version.c index ad133463..ff6b7cab 100644 --- a/version.c +++ b/version.c @@ -10,7 +10,7 @@ * \return The string generated by the GIT-VERSION-GEN script. It is passed * as a preprocessor define during compilation. */ -const char *version_git(void) +__a_const const char *version_git(void) { return GIT_VERSION; }