From 0d42c61ec9378432c94553e8500fc29c0791b717 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 29 Sep 2016 18:34:03 -0500 Subject: [PATCH] Bug 1306509 - Fix a build error with -Werror=unused-variable r=njn MozReview-Commit-ID: 4mFbamoWjoR --HG-- extra : rebase_source : c2bc212e5a2c836576db316cb3bddc06b9f631e9 --- intl/locale/unix/nsUNIXCharset.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intl/locale/unix/nsUNIXCharset.cpp b/intl/locale/unix/nsUNIXCharset.cpp index 2bdde1a0632e..d72305e55a21 100644 --- a/intl/locale/unix/nsUNIXCharset.cpp +++ b/intl/locale/unix/nsUNIXCharset.cpp @@ -116,11 +116,11 @@ nsPlatformCharset::GetDefaultCharsetForLocale(const nsAString& localeName, nsACS nsresult nsPlatformCharset::InitGetCharset(nsACString &oString) { +#if HAVE_LANGINFO_CODESET char* nl_langinfo_codeset = nullptr; nsCString aCharset; nsresult res; -#if HAVE_LANGINFO_CODESET nl_langinfo_codeset = nl_langinfo(CODESET); NS_ASSERTION(nl_langinfo_codeset, "cannot get nl_langinfo(CODESET)");