1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/devel/rcs/files/patch-src__base.h
Koop Mast 1a62f69f93 Fix build with clang 3.6.0 by moving the 'exiting' macro (which is an alias
for the _Noreturn keyword) to the start of the function declaration.

PR:		198011
Submitted by:	dim@ (reported by clang 3.6 exp-run)
Approved by:	maintainer (via IRC)
2015-03-10 09:52:59 +00:00

23 lines
789 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--- src/base.h.orig 2013-10-20 10:48:18.000000000 +0200
+++ src/base.h 2015-02-24 21:57:04.059371000 +0100
@@ -753,8 +753,7 @@
int donerewrite (int changed, time_t newRCStime);
void ORCSclose (void);
void ORCSerror (void);
-void unexpected_EOF (void)
- exiting;
+exiting void unexpected_EOF (void);
void initdiffcmd (struct diffcmd *dc);
int getdiffcmd (struct fro *finfile, bool delimiter,
FILE *foutfile, struct diffcmd *dc);
@@ -829,8 +828,7 @@
char datebuf[datesize + zonelenmax]);
/* rcsutil */
-void thank_you_and_goodnight (int const how)
- exiting;
+exiting void thank_you_and_goodnight (int const how);
/* These are for thank_you_and_goodnight. */
#define TYAG_ORCSERROR (1 << 3)
#define TYAG_DIRTMPUNLINK (1 << 2)