From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 1 08:12:39 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16EA01065672; Tue, 1 Feb 2011 08:12:39 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (lev.vlakno.cz [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id C7BC28FC18; Tue, 1 Feb 2011 08:12:38 +0000 (UTC) Received: from lev.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id A59E79CB117; Tue, 1 Feb 2011 09:12:36 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by lev.vlakno.cz (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iIt3l1iQ80Xb; Tue, 1 Feb 2011 09:12:36 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 2A94D9CB882; Tue, 1 Feb 2011 09:12:36 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.4/8.14.4/Submit) id p118Ca91063453; Tue, 1 Feb 2011 09:12:36 +0100 (CET) (envelope-from rdivacky) Date: Tue, 1 Feb 2011 09:12:36 +0100 From: Roman Divacky To: Alexander Best Message-ID: <20110201081236.GA63338@freebsd.org> References: <20110130172941.GA10701@freebsd.org> <20110131075439.GA49765@freebsd.org> <20110131095158.GC98011@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110131095158.GC98011@freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-hackers@freebsd.org Subject: Re: empty function macros X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2011 08:12:39 -0000 On Mon, Jan 31, 2011 at 09:51:58AM +0000, Alexander Best wrote: > On Mon Jan 31 11, Roman Divacky wrote: > > no problem with this with clang :) > > hmmmmm....so compiling the following code > > int > main(int argc, char **argv) > { > if (1<2) > ; > } > > with clang -Werror code.c -o code works for you? if (1<2) ; gives a warning (and it should), on the other hand #define NOTHING if (1<2) NOTHING; does not warn, which is what you want right?