summaryrefslogtreecommitdiff
path: root/contrib/examples/README
diff options
context:
space:
mode:
authorLibravatar Ramsay Jones <ramsay@ramsay1.demon.co.uk>2011-04-07 19:41:48 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-04-11 10:33:51 -0700
commit642f85faab27adec13eced36cd7e7548311f6c87 (patch)
tree121a3dcf45912317bbb67e45ce4fea56c3b77e75 /contrib/examples/README
parentMerge git://git.bogomips.org/git-svn (diff)
downloadtgif-642f85faab27adec13eced36cd7e7548311f6c87.tar.xz
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 initializer. 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 example. Remove the parenthesis from the definition of the N_() macro to fix this. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Acked-by: Jonathan Nieder <jrnieder@gmail.com> Acked-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/examples/README')
0 files changed, 0 insertions, 0 deletions