nl_langinfo: pacify gcc -Wunused-function
commit88cfbe67e7d2e3a4f944f8dc23e88520eca3f6dd
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 23 Feb 2018 21:15:24 +0000 (23 13:15 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 23 Feb 2018 21:16:14 +0000 (23 13:16 -0800)
treed78dfe2f7df76b2abc9fa53bf122155edc4686dd
parent1c488d9f0739399bd910a32cc4ef3585e7dcb3e3
nl_langinfo: pacify gcc -Wunused-function

* lib/nl_langinfo.c (ctype_codeset): Do not define if
REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
this case.  Without this change, I got a diagnostic when building
coreutils on Fedora 27 with gcc 7.3.1 20180130.
ChangeLog
lib/nl_langinfo.c