LibBSD | waf: Slience warnings when building with gcc-15 (!99)
Chris Johns (@chris)
gitlab at rtems.org
Tue Sep 16 21:34:34 UTC 2025
Chris Johns commented on a discussion: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/merge_requests/99#note_131040
I am confused by "recently". This error:
```
../../freebsd/sys/fs/nfsclient/nfs_clrpcops.c: In function 'nfsrpc_exchangeid':
../../freebsd/sys/fs/nfsclient/nfs_clrpcops.c:4747:28: error: implicit declaration of function 'rtems_version'; did you mean 'ktr_version'? [-Wimplicit-function-declaration]
4747 | const char* rv = rtems_version();
| ^~~~~~~~~~~~~
| ktr_version
```
Is form a change I made in 2021 and so is not recent?
Are you asking we make changes in FreeBSD to deal with this error:
```
../../freebsd/lib/libc/gen/feature_present.c: In function 'feature_present':
../../freebsd/lib/libc/gen/feature_present.c:56:13: error: implicit declaration of function 'asprintf'; did you mean 'asnprintf'? [-Wimplicit-function-declaration]
56 | if (asprintf(&mib, "kern.features.%s", feature) < 0)
| ^~~~~~~~
| asnprintf
```
?
What do you suggest happens to the `--enable-warnings` configure option? I made the decision early int he libbsd project to mask warnings because most were related to the underlying types we have and the FreeBSD code.
--
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/merge_requests/99#note_131040
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250916/3be7f738/attachment-0001.htm>
More information about the bugs
mailing list