Date: Thu, 31 Aug 2000 07:46:38 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Laurynas Biveinis cc: djgpp-workers AT delorie DOT com, mail AT jgreen4 DOT fsnet DOT co DOT uk Subject: Re: Symify fixes In-Reply-To: <39AD6455.DC1FCF30@softhome.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 30 Aug 2000, Laurynas Biveinis wrote: > static void bail(const char *msg) __attribute__ ((noreturn)); > > And here is the function: > > static void bail(const char *msg) > { > assert(msg); > > if (errno) > fprintf(stderr, "Symify error: %s: %s\n", msg, strerror(errno)); > else > fprintf(stderr, "Symify error: %s\n", msg); > exit(EXIT_FAILURE); > } This looks okay to me, but for future picky compilers, please make the prototype and the definition consistent: static void __attribute__((noreturn)) bail(const char *msg) { assert(msg); ...