gas gettext warning

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.
This commit is contained in:
Alan Modra 2020-02-26 12:57:19 +10:30
parent 42135cadf5
commit da3ec71fd4
2 changed files with 6 additions and 1 deletions

View 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

View 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. */