From patchwork Wed Jun 9 14:41:36 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jay K X-Patchwork-Id: 55099 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 7A1F2B7D68 for ; Thu, 10 Jun 2010 00:43:00 +1000 (EST) Received: (qmail 5026 invoked by alias); 9 Jun 2010 14:42:55 -0000 Received: (qmail 4978 invoked by uid 22791); 9 Jun 2010 14:42:52 -0000 X-SWARE-Spam-Status: No, hits=0.1 required=5.0 tests=AWL, BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from col0-omc3-s7.col0.hotmail.com (HELO col0-omc3-s7.col0.hotmail.com) (65.55.34.145) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 09 Jun 2010 14:42:46 +0000 Received: from COL101-W2 ([65.55.34.137]) by col0-omc3-s7.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 9 Jun 2010 07:41:37 -0700 Message-ID: From: Jay K To: gcc-patches Subject: function last_fde unwind-dw2-fde.h: warning: cast discards qualifiers from pointer target type Date: Wed, 9 Jun 2010 14:41:36 +0000 MIME-Version: 1.0 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org /Users/jay/obj/gcc/./gcc/xgcc -B/Users/jay/obj/gcc/./gcc/ -B/Users/jay/amd64-darwin/bin/ -B/Users/jay/amd64-darwin/lib/ -isystem /Users/jay/amd64-darwin/include -isystem /Users/jay/amd64-darwin/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -pipe -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I. -I. -I../.././gcc -I/Users/jay/src/gcc-4.5.0/libgcc -I/Users/jay/src/gcc-4.5.0/libgcc/. -I/Users/jay/src/gcc-4.5.0/libgcc/../gcc -I/Users/jay/src/gcc-4.5.0/libgcc/../include  -DHAVE_CC_TLS -DUSE_EMUTLS -o unwind-dw2-fde-darwin.o -MT unwind-dw2-fde-darwin.o -MD -MP -MF unwind-dw2-fde-darwin.dep -fexceptions -c /Users/jay/src/gcc-4.5.0/libgcc/../gcc/unwind-dw2-fde-darwin.c -fvisibility=hidden -DHIDE_EXPORTS In file included from /Users/jay/src/gcc-4.5.0/libgcc/../gcc/unwind-dw2-fde-darwin.c:36:0: /Users/jay/src/gcc-4.5.0/libgcc/../gcc/unwind-dw2-fde.h: In function 'last_fde': /Users/jay/src/gcc-4.5.0/libgcc/../gcc/unwind-dw2-fde.h:173:3: warning: cast discards qualifiers from pointer target type jbook2:src jay$ diff -u orig/gcc-4.5.0/gcc/unwind-dw2-fde.h gcc-4.5.0/gcc/unwind-dw2-fde.h untested because build is still running looks same in trunk or don't use -Wcast-qual..  - Jay --- orig/gcc-4.5.0/gcc/unwind-dw2-fde.h    2009-04-09 08:00:19.000000000 -0700 +++ gcc-4.5.0/gcc/unwind-dw2-fde.h    2010-06-09 07:22:29.000000000 -0700 @@ -170,7 +170,7 @@  last_fde (struct object *obj __attribute__ ((__unused__)), const fde *f)  {  #ifdef DWARF2_OBJECT_END_PTR_EXTENSION -  return (char *)f == obj->fde_end || f->length == 0; +  return (const char *)f == obj->fde_end || f->length == 0;  #else    return f->length == 0;  #endif