git: cvs(1): Avoid -Wstringop-overflow warning.
Rimvydas Jasinskas
zrj at crater.dragonflybsd.org
Wed Jan 24 01:51:34 PST 2018
commit 96be2d36022f64364f60d46be27800fe86fdcd9a
Author: zrj <rimvydas.jasinskas at gmail.com>
Date: Wed Jan 24 09:42:17 2018 +0200
cvs(1): Avoid -Wstringop-overflow warning.
The cvs will terminate after calling it's error(1, ...) but it can not be
marked as noreturn. So just add a hint for compiler that memcmp() with
read1 == -1 as an argument is not reachable.
Summary of changes:
contrib/cvs-1.12/src/filesubr.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/96be2d36022f64364f60d46be27800fe86fdcd9a
--
DragonFly BSD source repository
More information about the Commits
mailing list