Ramsay Jones  committed 642f85f

i18n: avoid parenthesized string as array initializer

The syntax

static const char ignore_error[] = ("something");

is invalid C. A parenthesized string is not allowed as an array

Some compilers, for example GCC and MSVC, allow this syntax as an
extension, but it is not a portable construct. tcc does not parse it, for

Remove the parenthesis from the definition of the N_() macro to
fix this.

Signed-off-by: Ramsay Jones <>
Acked-by: Jonathan Nieder <>
Acked-by: Ævar Arnfjörð Bjarmason <>
Signed-off-by: Junio C Hamano <>

  • Participants
  • Parent commits e3fa246

Comments (0)

Files changed (1)

 /* Mark msgid for translation but do not translate it. */
-#define N_(msgid) (msgid)
+#define N_(msgid) msgid