From 15e99acfc88ff999980ef97705e794d4849cf40e Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 1 Jul 2013 21:02:56 +0200 Subject: [PATCH 1/1] 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] --- version.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2