| www.delorie.com/archives/browse.cgi | search |
| Date: | Thu, 31 Aug 2000 07:46:38 +0300 (IDT) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| X-Sender: | eliz AT is |
| To: | Laurynas Biveinis <lauras AT softhome DOT net> |
| 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: | <Pine.SUN.3.91.1000831074607.20860D-100000@is> |
| MIME-Version: | 1.0 |
| 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 |
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);
...
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |