diff --git a/src/GitVersion.cxx b/src/GitVersion.cxx index 55c149711..8aaa05bfe 100644 --- a/src/GitVersion.cxx +++ b/src/GitVersion.cxx @@ -19,4 +19,4 @@ #include "GitVersion.hxx" -char GIT_VERSION[] = "@VCS_TAG@"; +const char GIT_VERSION[] = "@VCS_TAG@"; diff --git a/src/GitVersion.hxx b/src/GitVersion.hxx index e97315450..7e6042ee3 100644 --- a/src/GitVersion.hxx +++ b/src/GitVersion.hxx @@ -20,6 +20,6 @@ #ifndef MPD_GIT_VERSION_HXX #define MPD_GIT_VERSION_HXX -extern char GIT_VERSION[]; +extern const char GIT_VERSION[]; #endif