[git commit future 1/1] getconf.c: fix noreturn warnings
Khem Raj
raj.khem at gmail.com
Sat Mar 19 18:51:25 UTC 2011
commit: http://git.uclibc.org/uClibc/commit/?id=84c30fb6cfcc2825b4b8b93e9ed4fb3110e257a2
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future
Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
utils/getconf.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/utils/getconf.c b/utils/getconf.c
index 5ff98e6..8addf31 100644
--- a/utils/getconf.c
+++ b/utils/getconf.c
@@ -16,6 +16,7 @@
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define _GNU_SOURCE 1
+#include "porting.h"
#include <unistd.h>
#include <errno.h>
#include <string.h>
@@ -1060,7 +1061,7 @@ extern const char *__progname;
#define __progname "foo"
#endif
-static void
+static attribute_noreturn void
usage (void)
{
fprintf (stderr,
@@ -1072,7 +1073,7 @@ usage (void)
}
-static void
+static attribute_noreturn void
print_all (const char *path)
{
register const struct conf *c;
--
1.7.3.4
More information about the uClibc-cvs
mailing list