From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 25 08:54:06 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A71AB16A400 for ; Sun, 25 Mar 2007 08:54:06 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: from heff.fud.org.nz (203-109-251-39.static.bliink.ihug.co.nz [203.109.251.39]) by mx1.freebsd.org (Postfix) with ESMTP id 5695A13C448 for ; Sun, 25 Mar 2007 08:54:06 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: by heff.fud.org.nz (Postfix, from userid 1001) id 6D1941CC58; Sun, 25 Mar 2007 20:38:05 +1200 (NZST) Date: Sun, 25 Mar 2007 20:38:05 +1200 From: Andrew Thompson To: hackers@freebsd.org Message-ID: <20070325083805.GA68655@heff.fud.org.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) Cc: Subject: hash.h warnings X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Mar 2007 08:54:06 -0000 Hi, There was a discussion late last year about how to fix the warnings in sys/sys/hash.h. http://lists.freebsd.org/pipermail/freebsd-net/2006-October/012098.html There were a few suggestions put forward but nothing was ever committed. I need to include this file in the kernel for a new driver but do not know enough about this type of warning to fix it. Can anyone recommend the correct fix? @/sys/hash.h: In function `hash32_stre': @/sys/hash.h:97: warning: cast discards qualifiers from pointer target type @/sys/hash.h: In function `hash32_strne': @/sys/hash.h:116: warning: cast discards qualifiers from pointer target type cheers, Andrew