fs/Charset: work around clang's -Wunused-const-variable

MPD_PATH_MAX_UTF8 is only used by GLib-specific code currently.
This commit is contained in:
Max Kellermann 2014-10-25 00:07:25 +02:00
parent f36db9bb04
commit c48733e34f
1 changed files with 2 additions and 1 deletions

View File

@ -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