From owner-freebsd-current@freebsd.org Sat Dec 19 22:36:10 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A3CF0A4B20D for ; Sat, 19 Dec 2015 22:36:10 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: from alogt.com (alogt.com [69.36.191.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 85A7318C6 for ; Sat, 19 Dec 2015 22:36:10 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Subject:To:From:Date; bh=e4Dfh3HpH1OVuJM3VpNBs2n5ftutyVBbf/6M9YFzGi8=; b=b/DB HOMk3A22eUD9FfmTdYcapKZF/Toq+FHNChUyapW1yWderGYypruRag7dZKTZ/DLHGrpaSeaVVyUw4 z4Et9JFejjH5w9likMrNVvFIldj8hbLem6JFU9nofewDYmiGBA/oqLpMgTYUhZE0jk+kfh/9AzINM CZ0OEYoVhMI94=; Received: from [39.254.32.77] (port=62039 helo=X220.alogt.com) by sl-508-2.slc.westdc.net with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.86) (envelope-from ) id 1aAQ6c-000sdr-Bl for freebsd-current@freebsd.org; Sat, 19 Dec 2015 15:36:03 -0700 Date: Sun, 20 Dec 2015 06:35:55 +0800 From: Erich Dollansky To: freebsd-current@freebsd.org Subject: how to avoid warning: use of old-style cast [-Wold-style-cast] Message-ID: <20151220063555.5ae6a113@X220.alogt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Authenticated-Sender: sl-508-2.slc.westdc.net: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Dec 2015 22:36:10 -0000 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@releng2.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/RPI2 arm Should we edit the include files? Any other ideas? Erich