gas gettext warning
authorAlan Modra <amodra@gmail.com>
Wed, 26 Feb 2020 02:27:19 +0000 (12:57 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 26 Feb 2020 02:34:54 +0000 (13:04 +1030)
gettext("") returns the header entry with meta information, not the
empty string.

* config/tc-arm.c (reg_expected_msgs[REG_TYPE_RNB]): Don't use
N_() on empty string.

gas/ChangeLog
gas/config/tc-arm.c

index 001af54cb5f26bb331d5e02c7d1ca8a76d936f02..ddce1819c3038937eef91a3957f43b6a0bde91ea 100644 (file)
@@ -1,3 +1,8 @@
+2020-02-26  Alan Modra  <amodra@gmail.com>
+
+       * config/tc-arm.c (reg_expected_msgs[REG_TYPE_RNB]): Don't use
+       N_() on empty string.
+
 2020-02-26  Alan Modra  <amodra@gmail.com>
 
        * read.c (read_a_source_file): Call strncpy with length one
index cfbee7e59dad0feb6116718c5471e9421143d674..30c69fb7639861b9520ce8abe73df30e59615407 100644 (file)
@@ -730,7 +730,7 @@ const char * const reg_expected_msgs[] =
   [REG_TYPE_MMXWCG] = N_("iWMMXt scalar register expected"),
   [REG_TYPE_XSCALE] = N_("XScale accumulator register expected"),
   [REG_TYPE_MQ]            = N_("MVE vector register expected"),
-  [REG_TYPE_RNB]    = N_("")
+  [REG_TYPE_RNB]    = ""
 };
 
 /* Some well known registers that we refer to directly elsewhere.  */