misc/172639: usr.bin/awk: mark FATAL() as __noreturn__
Erik Cederstrand
erik at cederstrand.dk
Fri Oct 12 14:20:00 UTC 2012
>Number: 172639
>Category: misc
>Synopsis: usr.bin/awk: mark FATAL() as __noreturn__
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Oct 12 14:20:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Erik Cederstrand
>Release: CURRENT
>Organization:
>Environment:
>Description:
This is similar to misc/172636. awk has a function FATAL() that unconditionally calls exit(). Mark it as such in the header prototype.
>How-To-Repeat:
>Fix:
See patch
Patch attached with submission follows:
Index: head/contrib/one-true-awk/proto.h
===================================================================
--- head/contrib/one-true-awk/proto.h (revision 241481)
+++ head/contrib/one-true-awk/proto.h (working copy)
@@ -132,7 +132,7 @@
extern void bracecheck(void);
extern void bcheck2(int, int, int);
extern void SYNTAX(const char *, ...);
-extern void FATAL(const char *, ...);
+extern void FATAL(const char *, ...) __attribute__ ((__noreturn__));
extern void WARNING(const char *, ...);
extern void error(void);
extern void eprint(void);
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list