From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29227 invoked by alias); 8 Dec 2009 20:32:23 -0000 Received: (qmail 28656 invoked by uid 48); 8 Dec 2009 20:32:11 -0000 Date: Tue, 08 Dec 2009 20:32:00 -0000 Message-ID: <20091208203211.28655.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/28584] Cast to pointer from integer of different size In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "redi at gcc dot gnu dot org" 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: 2009-12/txt/msg00872.txt.bz2 ------- Comment #1 from redi at gcc dot gnu dot org 2009-12-08 20:32 ------- reduced: void f() { unsigned short i = 0; void* p = (void*)i; } this warns in 32-bit or 64-bit mode using the C compiler, and is controlled by this option that g++ doesn't support: -Wno-int-to-pointer-cast (C and Objective-C only) Suppress warnings from casts to pointer type of an integer of a different size. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28584