]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
version.c: Mark version_git() as const.
authorAndre Noll <maan@systemlinux.org>
Mon, 1 Jul 2013 19:02:56 +0000 (21:02 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 1 Jul 2013 19:02:56 +0000 (21:02 +0200)
Fixes the following warning on gcc-4.8.1:

version.c:13:13: warning: function might be candidate for attribute 'const' [-Wsuggest-attribute=const]

version.c

index ad1334634238b749b1089cd8271e6cbf263eece1..ff6b7cabb57f7b0336e2a4bb0d55b50edc6c8021 100644 (file)
--- 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;
 }