From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10026 invoked by alias); 16 Sep 2005 17:28:29 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 10006 invoked by uid 22791); 16 Sep 2005 17:28:24 -0000 Received: from colino.net (HELO paperstreet.colino.net) (213.41.131.56) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 16 Sep 2005 17:28:24 +0000 Received: by paperstreet.colino.net (Postfix, from userid 1015) id 5F20D101DA; Fri, 16 Sep 2005 19:28:21 +0200 (CEST) Received: from jack.colino.net (jack.colino.net [192.168.1.11]) by paperstreet.colino.net (Postfix) with ESMTP id 45187101D8 for ; Fri, 16 Sep 2005 19:28:18 +0200 (CEST) Date: Fri, 16 Sep 2005 17:28:00 -0000 From: Colin Leroy To: gcc-help@gcc.gnu.org Subject: How to prevent mixed declarations ? Message-ID: <20050916192842.56b9922e@jack.colino.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2005-09/txt/msg00103.txt.bz2 Hi, I'm trying to find a way to have gcc3 warn or error out when encountering a declaration in the middle of a block, in an attempt to be gcc-2.95 compatible. I looked at the manual, more especially here: http://gcc.gnu.org/onlinedocs/gcc-3.3.5/gcc/Mixed-Declarations.html but I couldn't find a -Wflag or anything related... Any hint? Thanks in advance, -- Colin