git: crunchgen(1): Fix compilation warnings (prepare for future update)
Aaron LI
aly at crater.dragonflybsd.org
Sun Jun 21 22:30:49 PDT 2026
commit 73dce941a522281d4f4fcbf07d038bc8b4be4031
Author: Aaron LI <aly at aaronly.me>
Date: Sun Jun 21 20:40:24 2026 +0800
crunchgen(1): Fix compilation warnings (prepare for future update)
Fix the following compilation warnings when we enable WARNS for
initrd/{rescue,rescue.libcrypto} build in the future:
```
rescue.c: In function 'cmpstringp':
rescue.c:88:20: error: cast discards 'const' qualifier from pointer target type [-Werror=cast-qual]
const char *s1 = *(const char **)p1;
^
rescue.c:89:20: error: cast discards 'const' qualifier from pointer target type [-Werror=cast-qual]
const char *s2 = *(const char **)p2;
^
rescue.c: In function 'crunched_usage':
rescue.c:96:1: error: old-style function definition [-Werror=old-style-definition]
crunched_usage()
^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
```
Discussed-with: swildner
Summary of changes:
usr.bin/crunch/crunchgen/crunched_main.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/73dce941a522281d4f4fcbf07d038bc8b4be4031
--
DragonFly BSD source repository
More information about the Commits
mailing list