summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnold Robbins <arnold@skeeve.com>2011-11-29 18:58:18 +0100
committerJim Meyering <meyering@redhat.com>2011-11-29 18:58:18 +0100
commit3054c6850e0d3d1578f5e87c23e595ed528fbf6e (patch)
tree8158f1c7c9618064dd885b002a37169dda8501d7
parent5f2a03af5258eabb1263e58229fd4d1f395ca14a (diff)
downloadgrep-3054c6850e0d3d1578f5e87c23e595ed528fbf6e.tar.gz
dfa: avoid warning from deficient compiler in !MBS_SUPPORT mode
* src/dfa.c (setbit_wc) [!MBS_SUPPORT]: Add explicit "return false;" after "abort ();", to avoid a warning from deficient compilers.
-rw-r--r--src/dfa.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dfa.c b/src/dfa.c
index 3214f296..969a72ef 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -585,7 +585,13 @@ setbit_c (int b, charclass c)
}
#else
# define setbit_c setbit
-static inline bool setbit_wc (wint_t wc, charclass c) { abort (); }
+static inline bool
+setbit_wc (wint_t wc, charclass c)
+{
+ abort ();
+ /*NOTREACHED*/
+ return false;
+}
#endif
/* Like setbit_c, but if case is folded, set both cases of a letter. For