bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FYI: master: address some of the syntax-check errors


From: gccbison
Subject: Re: FYI: master: address some of the syntax-check errors
Date: Sun, 19 Feb 2012 15:55:27 +0100
User-agent: XS4ALL Webmail

Le 18 févr. 2012 à 19:32, Akim Demaille a écrit :
This is perfectly uninteresting work.
Thanks you did it and fixing all these small issues is much work.

+++ b/src/main.c
 main (int argc, char *argv[])
 {
-  program_name = argv[0];
+  set_program_name (argv[0]);
   setlocale (LC_ALL, "");
   (void) bindtextdomain (PACKAGE, LOCALEDIR);
   (void) bindtextdomain ("bison-runtime", LOCALEDIR);
Noticed the (void) at bindtextdomain() and textdomain()
and checked that is done everywhere in GNU GPL Free Software
but bindtextdomain() can fail and set errno to ENOMEM says 'man bindtextdomain'
A perfectly uninteresting patch can be to add 'if (errno)...' :)







reply via email to

[Prev in Thread] Current Thread [Next in Thread]