[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-patch] [PATCH 09/15] build: avoid three gcc warnings
From: |
Jim Meyering |
Subject: |
[bug-patch] [PATCH 09/15] build: avoid three gcc warnings |
Date: |
Sat, 26 Mar 2011 14:32:04 +0100 |
From: Jim Meyering <address@hidden>
* src/patch.c (mangled_patch): Add "noreturn" attribute.
* src/pch.h (pch_timestamp): Remove ignored "const" attribute.
* src/version.c (XTERN): Remove unused #undef and #define.
---
src/patch.c | 2 +-
src/pch.h | 2 +-
src/version.c | 2 --
3 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/patch.c b/src/patch.c
index 372e0f0..364d28e 100644
--- a/src/patch.c
+++ b/src/patch.c
@@ -1094,7 +1094,7 @@ locate_hunk (lin fuzz)
return 0;
}
-static void
+static void __attribute__ ((noreturn))
mangled_patch (lin old, lin new)
{
char numbuf0[LINENUM_LENGTH_BOUND + 1];
diff --git a/src/pch.h b/src/pch.h
index 74f766c..8a72ad0 100644
--- a/src/pch.h
+++ b/src/pch.h
@@ -54,7 +54,7 @@ XTERN struct timespec p_timestamp[2]; /* timestamps in patch
headers */
or a timestamp with tv_sec == -1 if there was no timestamp or an error in
the timestamp. */
-static inline const struct timespec pch_timestamp (bool which)
+static inline struct timespec pch_timestamp (bool which)
{
return p_timestamp[which];
}
diff --git a/src/version.c b/src/version.c
index 2a00bf6..58936ae 100644
--- a/src/version.c
+++ b/src/version.c
@@ -2,8 +2,6 @@
#define XTERN extern
#include <common.h>
-#undef XTERN
-#define XTERN
#include <version.h>
static char const copyright_string[] = "\
--
1.7.1.354.ge64bd
- [bug-patch] [PATCH 00/15] *** SUBJECT HERE ***, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 03/15] maint: add some m4 quoting, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 08/15] tests: temporarily disable failing syntax-check rules, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 01/15] maint: use gnulib's maintainer-makefile module, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 02/15] maint: arrange for the sc_require_config_h_first test to pass, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 04/15] maint: remove trailing blanks, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 09/15] build: avoid three gcc warnings,
Jim Meyering <=
- [bug-patch] [PATCH 15/15] build: don't turn off -Wmissing-declarations, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 13/15] maint: remove now-unneeded macro definitions, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 14/15] build: don't turn off -Wmissing-prototypes, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 05/15] maint: allow the sc_prohibit_empty_lines_at_EOF test to pass, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 07/15] build: accept new configure-time option --enable-gcc-warnings, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 06/15] maint: avoid non-portable use of test -a, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 11/15] maint: update bootstrap and gnulib submodule, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 12/15] maint: use gnulib's progname module, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 10/15] maint: update copyright date year ranges to include 2011, Jim Meyering, 2011/03/26