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

From: Erich Dollansky <erichsfreebsdlist_at_alogt.com>
Date: Sun, 20 Dec 2015 06:35:55 +0800
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
Received on Sat Dec 19 2015 - 21:36:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:01 UTC