From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26611 invoked by alias); 23 Mar 2011 17:58:11 -0000 Received: (qmail 26601 invoked by uid 22791); 23 Mar 2011 17:58:09 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from sam.nabble.com (HELO sam.nabble.com) (216.139.236.26) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 23 Mar 2011 17:58:05 +0000 Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1Q2SJo-0007rl-Kg for gcc@gcc.gnu.org; Wed, 23 Mar 2011 10:58:04 -0700 Message-ID: <31222297.post@talk.nabble.com> Date: Wed, 23 Mar 2011 18:37:00 -0000 From: Lisp2D To: gcc@gcc.gnu.org Subject: -Wconversion is very poor MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2011-03/txt/msg00363.txt.bz2 I've turned on all warnings to have clean program. Turn on -Wconversion but it will not care about BIG trouble in C++: conversion. class A{ public: A(unsigned int){} }; class B{ public: B(A){} }; B b(-1); //OK without warnings int main(void){} ---- -1 => A(FF..FF) => B(FF..FF) I want to see all program like: B b(A(-1)); Which warning I must to set? -- View this message in context: http://old.nabble.com/-Wconversion-is-very-poor-tp31222297p31222297.html Sent from the gcc - Dev mailing list archive at Nabble.com.