This is the mail archive of the cygwin-developers mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: src/winsup/cygwin ChangeLog include/err.h


On 02/02/2011 03:16 AM, corinna wrote:
> CVSROOT:	/cvs/src
> Module name:	src
> Changes by:	corinna	2011-02-02 10:16:30
> 
> Modified files:
> 	winsup/cygwin  : ChangeLog 
> 	winsup/cygwin/include: err.h 
> 
> Log message:
> 	* include/err.h (err): Add noreturn attribute.
> 	(errx): Ditto.
> 	(verr): Ditto.
> 	(verrx): Ditto.
> 
> Patches:
> http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=src&r1=1.5141&r2=1.5142
> http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/include/err.h.diff?cvsroot=src&r1=1.1&r2=1.2

Oops, this introduced a syntax error:

-extern void warn (const char *fmt, ...);
-extern void warnx (const char *fmt, ...);
+extern void warn (const char *fmt, ...)
+extern void warnx (const char *fmt, ...)

Looks like you first marked warn as noreturn, then (correctly) changed
your mind, but forgot to restore the trailing ; in the process.

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]