lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070613002115.GA28778@redhat.com>
Date:	Tue, 12 Jun 2007 20:21:15 -0400
From:	Dave Jones <davej@...hat.com>
To:	Al Viro <viro@....linux.org.uk>
Cc:	Linux Kernel <linux-kernel@...r.kernel.org>
Subject: Re: Fix empty macros in acpi.

On Wed, Jun 13, 2007 at 01:00:29AM +0100, Al Viro wrote:
 > On Tue, Jun 12, 2007 at 07:33:09PM -0400, Dave Jones wrote:
 > > +#define DBG(x...) do { } while(0)
 > 
 > Eh...  Please, stop it - if you want a function-call-like no-op returning void,
 > use ((void)0).  At least that way one can say DBG(....),foo(), etc.

They both end up compiled to nothing anyway, so I'm not bothered
either way..   I'm not sure I follow why the syntax of that last part
is a good thing.  It looks like something we'd want to avoid rather
than promote?

	Dave

-- 
http://www.codemonkey.org.uk
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ