From owner-freebsd-hackers Fri Jul 27 5:45:52 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from assaris.sics.se (assaris.sics.se [193.10.66.234]) by hub.freebsd.org (Postfix) with ESMTP id 0F61F37B403 for ; Fri, 27 Jul 2001 05:45:49 -0700 (PDT) (envelope-from assar@assaris.sics.se) Received: (from assar@localhost) by assaris.sics.se (8.9.3/8.9.3) id OAA52832; Fri, 27 Jul 2001 14:45:32 +0200 (CEST) (envelope-from assar) To: Sheldon Hearn Cc: hackers@FreeBSD.ORG Subject: Re: -Wconversion and mode_t References: <89312.996234085@axl.seasidesoftware.co.za> From: Assar Westerlund Date: 27 Jul 2001 14:45:32 +0200 In-Reply-To: Sheldon Hearn's message of "Fri, 27 Jul 2001 13:41:25 +0200" Message-ID: <5lg0bimtg3.fsf@assaris.sics.se> Lines: 14 User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Sheldon Hearn writes: > How on earth is one supposed to shut up the -Wconversion warnings > generated for all the functions that take mode_t arguments? > > I've tried every sane typecast I can think of to prove to the compiler > that I know what I'm doing, but it won't shut up. > > /usr/src/usr.sbin/config is a good example. Its Makefile sets > BDECFLAGS, which includes -Wconversion. IMHO, -Wconversion is bogus in an ANSI/ISO world and trying to rewrite code to avoid those warnings is not useful. /assar To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message