Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/file/dist/src add __noreturn__ attribute to fil...



details:   https://anonhg.NetBSD.org/src/rev/c240e1089a94
branches:  trunk
changeset: 322099:c240e1089a94
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Apr 18 01:17:42 2018 +0000

description:
add __noreturn__ attribute to file_err{,x}

diffstat:

 external/bsd/file/dist/src/file.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 42984c4ecf53 -r c240e1089a94 external/bsd/file/dist/src/file.h
--- a/external/bsd/file/dist/src/file.h Tue Apr 17 17:56:08 2018 +0000
+++ b/external/bsd/file/dist/src/file.h Wed Apr 18 01:17:42 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: file.h,v 1.18 2018/04/15 19:45:32 christos Exp $       */
+/*     $NetBSD: file.h,v 1.19 2018/04/18 01:17:42 christos Exp $       */
 
 /*
  * Copyright (c) Ian F. Darwin 1986-1995.
@@ -620,9 +620,9 @@
 protected const char *file_getprogname(void);
 protected void file_setprogname(const char *);
 protected void file_err(int, const char *, ...)
-    __attribute__((__format__(__printf__, 2, 3)));
+    __attribute__((__format__(__printf__, 2, 3), __noreturn__));
 protected void file_errx(int, const char *, ...)
-    __attribute__((__format__(__printf__, 2, 3)));
+    __attribute__((__format__(__printf__, 2, 3), __noreturn__));
 protected void file_warn(const char *, ...)
     __attribute__((__format__(__printf__, 1, 2)));
 protected void file_warnx(const char *, ...)



Home | Main Index | Thread Index | Old Index