From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9629 invoked by alias); 25 Feb 2007 14:22:40 -0000 Received: (qmail 9602 invoked by uid 48); 25 Feb 2007 14:22:31 -0000 Date: Sun, 25 Feb 2007 14:22:00 -0000 Message-ID: <20070225142231.9601.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/21948] [diagnostic] enable errors on `cast from/to pointer to/from integer of different size` In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pluto at agmk dot net" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-02/txt/msg02806.txt.bz2 ------- Comment #3 from pluto at agmk dot net 2007-02-25 14:22 ------- (In reply to comment #2) > Could you elaborate a litte bit more for me? > > We have already -Wint-to-pointer-cast and -Wpointer-to-int-cast enabled by > defaul in C. Don't those work for you? as i have said, i need a compilation error on such casts. 4.2 has a nice -Werror=foo feature, but this PR is about 4.1. if you don't plan to backport -Werror=foo feature to 4.1 i'll close this PR with suitable comment. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21948