Skip site navigation (1)Skip section navigation (2)
Date:      27 Jul 2001 14:45:32 +0200
From:      Assar Westerlund <assar@FreeBSD.ORG>
To:        Sheldon Hearn <sheldonh@starjuice.net>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: -Wconversion and mode_t
Message-ID:  <5lg0bimtg3.fsf@assaris.sics.se>
In-Reply-To: Sheldon Hearn's message of "Fri, 27 Jul 2001 13:41:25 %2B0200"
References:  <89312.996234085@axl.seasidesoftware.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
Sheldon Hearn <sheldonh@starjuice.net> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5lg0bimtg3.fsf>