Module Name: src
Committed By: christos
Date: Thu Oct 3 16:37:45 UTC 2019
Modified Files:
src/lib/libintl: plural_parser.c
Log Message:
Since ch gets reassigned, it is not certain that it will be & or | again,
so return an illegal token if it is not instead of telling the compiler
that this is impossible.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libintl/plural_parser.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libintl/plural_parser.c
diff -u src/lib/libintl/plural_parser.c:1.2 src/lib/libintl/plural_parser.c:1.3
--- src/lib/libintl/plural_parser.c:1.2 Wed Jan 17 18:24:22 2007
+++ src/lib/libintl/plural_parser.c Thu Oct 3 12:37:45 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: plural_parser.c,v 1.2 2007/01/17 23:24:22 hubertf Exp $ */
+/* $NetBSD: plural_parser.c,v 1.3 2019/10/03 16:37:45 christos Exp $ */
/*-
* Copyright (c) 2005 Citrus Project,
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: plural_parser.c,v 1.2 2007/01/17 23:24:22 hubertf Exp $");
+__RCSID("$NetBSD: plural_parser.c,v 1.3 2019/10/03 16:37:45 christos Exp $");
#include <assert.h>
#include <stdio.h>
@@ -188,8 +188,9 @@ retry:
return T_LAND;
case '|':
return T_LOR;
+ default:
+ return T_ILTOKEN;
}
- /*NOTREACHED*/
case '=': case '!': case '<': case '>':
prevch = ch;
ch = _memstream_getc(&tcx->memstream);