On Sun, Aug 30, 2015 at 11:53:00AM +0200, Ed Schouten wrote:
2015-08-28 16:38 GMT+02:00 Joerg Sonnenberger jo...@britannica.bec.de:
But the compiler can't tell if it is the *intention* that the function
never returns. The warning behavior exists because that can easily
change with macros
2015-08-28 16:38 GMT+02:00 Joerg Sonnenberger jo...@britannica.bec.de:
But the compiler can't tell if it is the *intention* that the function
never returns. The warning behavior exists because that can easily
change with macros etc.
I think it's important to keep in mind what this keyword was
On Sun, Aug 30, 2015 at 03:36:27PM +1000, Bruce Evans wrote:
On Fri, 28 Aug 2015, Joerg Sonnenberger wrote:
On Fri, Aug 28, 2015 at 10:17:56PM +1000, Bruce Evans wrote:
-static void die(int);
+static void die(int) __dead2;
Since the function is static, it is very easy for the
On Sun, 30 Aug 2015, Jilles Tjoelker wrote:
On Sun, Aug 30, 2015 at 11:53:00AM +0200, Ed Schouten wrote:
2015-08-28 16:38 GMT+02:00 Joerg Sonnenberger jo...@britannica.bec.de:
But the compiler can't tell if it is the *intention* that the function
never returns. The warning behavior exists
On Sun, Aug 30, 2015 at 11:53:00AM +0200, Ed Schouten wrote:
2015-08-28 16:38 GMT+02:00 Joerg Sonnenberger jo...@britannica.bec.de:
But the compiler can't tell if it is the *intention* that the function
never returns. The warning behavior exists because that can easily
change with macros
On Fri, 28 Aug 2015, Joerg Sonnenberger wrote:
On Fri, Aug 28, 2015 at 10:17:56PM +1000, Bruce Evans wrote:
-static voiddie(int);
+static voiddie(int) __dead2;
Since the function is static, it is very easy for the compiler to see
that it doesn't return.
But the compiler can't tell
On Thu, 27 Aug 2015, Xin LI wrote:
Log:
die() would never return, mark it as so.
Why? (Except to add a style bug.)
Modified: head/usr.sbin/syslogd/syslogd.c
==
--- head/usr.sbin/syslogd/syslogd.c Thu Aug 27
On Fri, Aug 28, 2015 at 10:17:56PM +1000, Bruce Evans wrote:
-static void die(int);
+static void die(int) __dead2;
Since the function is static, it is very easy for the compiler to see
that it doesn't return.
But the compiler can't tell if it is the *intention* that the function
never
Author: delphij
Date: Thu Aug 27 18:11:00 2015
New Revision: 287217
URL: https://svnweb.freebsd.org/changeset/base/287217
Log:
die() would never return, mark it as so.
MFC after:2 weeks
Modified:
head/usr.sbin/syslogd/syslogd.c
Modified: head/usr.sbin/syslogd/syslogd.c