Commit c48733e3 authored by Max Kellermann's avatar Max Kellermann

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

MPD_PATH_MAX_UTF8 is only used by GLib-specific code currently.
parent f36db9bb
...@@ -34,6 +34,8 @@ ...@@ -34,6 +34,8 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#ifdef HAVE_GLIB
/** /**
* Maximal number of bytes required to represent path name in UTF-8 * Maximal number of bytes required to represent path name in UTF-8
* (including nul-terminator). * (including nul-terminator).
...@@ -44,7 +46,6 @@ ...@@ -44,7 +46,6 @@
*/ */
static constexpr size_t MPD_PATH_MAX_UTF8 = (MPD_PATH_MAX - 1) * 4 + 1; static constexpr size_t MPD_PATH_MAX_UTF8 = (MPD_PATH_MAX - 1) * 4 + 1;
#ifdef HAVE_GLIB
static std::string fs_charset; static std::string fs_charset;
gcc_pure gcc_pure
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment