From 8f73247158a5affefeed9fba82b5d3498f3f1a41 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Mon, 5 Apr 2021 17:13:29 +0200 Subject: [PATCH] [intl] Warning when compiled without nls --- src/intl/gettext/libintl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intl/gettext/libintl.h b/src/intl/gettext/libintl.h index af37355d..fa8cecf3 100644 --- a/src/intl/gettext/libintl.h +++ b/src/intl/gettext/libintl.h @@ -38,9 +38,9 @@ extern "C" { /* In order to make it able to compile using -Werror this has to be a function * so that local @term variables will not be reported as unused. */ static inline char * -_(char *msg, struct terminal *term) +_(const char *msg, struct terminal *term) { - return gettext_noop(msg); + return (char *)gettext_noop(msg); } static inline char *