aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-10-25 00:07:25 +0200
committerMax Kellermann <max@duempel.org>2014-10-25 00:07:25 +0200
commitc48733e34f5dcefb9e3c74a5b3416aeea54aa336 (patch)
tree22ace13d112cc6eb239322e8dc410b5860a94752 /src/fs
parentf36db9bb0402ab98a12f9033e0a0c175268d25db (diff)
downloadmpd-c48733e34f5dcefb9e3c74a5b3416aeea54aa336.tar.gz
mpd-c48733e34f5dcefb9e3c74a5b3416aeea54aa336.tar.xz
mpd-c48733e34f5dcefb9e3c74a5b3416aeea54aa336.zip
fs/Charset: work around clang's -Wunused-const-variable
MPD_PATH_MAX_UTF8 is only used by GLib-specific code currently.
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/Charset.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fs/Charset.cxx b/src/fs/Charset.cxx
index 2d289c3b8..abf4d8287 100644
--- a/src/fs/Charset.cxx
+++ b/src/fs/Charset.cxx
@@ -34,6 +34,8 @@
#include <assert.h>
#include <string.h>
+#ifdef HAVE_GLIB
+
/**
* Maximal number of bytes required to represent path name in UTF-8
* (including nul-terminator).
@@ -44,7 +46,6 @@
*/
static constexpr size_t MPD_PATH_MAX_UTF8 = (MPD_PATH_MAX - 1) * 4 + 1;
-#ifdef HAVE_GLIB
static std::string fs_charset;
gcc_pure