Module Name: src
Committed By: christos
Date: Wed Aug 17 14:07:31 UTC 2011
Modified Files:
src/usr.bin/gzip: gzip.c
Log Message:
add noreturn atttribute.
To generate a diff of this commit:
cvs rdiff -u -r1.103 -r1.104 src/usr.bin/gzip/gzip.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/gzip/gzip.c
diff -u src/usr.bin/gzip/gzip.c:1.103 src/usr.bin/gzip/gzip.c:1.104
--- src/usr.bin/gzip/gzip.c:1.103 Tue Jun 21 09:25:45 2011
+++ src/usr.bin/gzip/gzip.c Wed Aug 17 10:07:31 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: gzip.c,v 1.103 2011/06/21 13:25:45 joerg Exp $ */
+/* $NetBSD: gzip.c,v 1.104 2011/08/17 14:07:31 christos Exp $ */
/*
* Copyright (c) 1997, 1998, 2003, 2004, 2006 Matthew R. Green
@@ -30,7 +30,7 @@
#ifndef lint
__COPYRIGHT("@(#) Copyright (c) 1997, 1998, 2003, 2004, 2006\
Matthew R. Green. All rights reserved.");
-__RCSID("$NetBSD: gzip.c,v 1.103 2011/06/21 13:25:45 joerg Exp $");
+__RCSID("$NetBSD: gzip.c,v 1.104 2011/08/17 14:07:31 christos Exp $");
#endif /* not lint */
/*
@@ -186,11 +186,11 @@
static char *infile; /* name of file coming in */
static void maybe_err(const char *fmt, ...)
- __attribute__((__format__(__printf__, 1, 2)));
+ __attribute__((__noreturn__,__format__(__printf__, 1, 2)));
#if !defined(NO_BZIP2_SUPPORT) || !defined(NO_PACK_SUPPORT) || \
!defined(NO_XZ_SUPPORT)
static void maybe_errx(const char *fmt, ...)
- __attribute__((__format__(__printf__, 1, 2)));
+ __attribute__((__noreturn__,__format__(__printf__, 1, 2)));
#endif
static void maybe_warn(const char *fmt, ...)
__attribute__((__format__(__printf__, 1, 2)));