projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bdebf3
)
version.c: Mark version_git() as const.
author
Andre Noll
<maan@systemlinux.org>
Mon, 1 Jul 2013 19:02:56 +0000
(21:02 +0200)
committer
Andre 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
patch
|
blob
|
history
diff --git
a/version.c
b/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;
}