how to avoid warning: use of old-style cast [-Wold-style-cast]

Erich Dollansky erichsfreebsdlist at alogt.com
Sat Dec 19 22:36:10 UTC 2015


Hi,

when compiling on FreeBSD 11, I get some warnings as mentioned in the
subject. What is the recommended way to avoid them?

Some examples are: FIONREAD or SIG_IGN.

The machine:

FreeBSD raspberry2.alogt.com 11.0-CURRENT FreeBSD 11.0-CURRENT #0
r291495: Tue Dec  1 09:13:20 UTC 2015
root at releng2.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/RPI2 arm

Should we edit the include files?

Any other ideas?

Erich


More information about the freebsd-current mailing list