]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
regex(3): Resolve issues with higher WARNS levels
authorkevans <kevans@FreeBSD.org>
Sun, 21 Jan 2018 04:57:29 +0000 (04:57 +0000)
committerkevans <kevans@FreeBSD.org>
Sun, 21 Jan 2018 04:57:29 +0000 (04:57 +0000)
commite0d9650001f1042ae9cc08f49897957c5b6829a4
treed703af5b115fd15f5ba1a036a7eb8c63160b7485
parentf10d0bd4d430dcdd0321ab200544a18efd477d02
regex(3): Resolve issues with higher WARNS levels

libc is set for WARNS=2, but the incoming libregex will use WARNS=6.
Sprinkle some casts and (void)bc's to alleviate the warnings that come along
with the higher WARNS level.

These 'bc' parameters could be outright removed, but as of right now they
will be used in some parts of libregex land. Silence the warnings instead
rather than flip-flopping.
lib/libc/regex/engine.c
lib/libc/regex/regcomp.c