In perl.git, the branch smoke-me/dNOOP-quietly has been created
<http://perl5.git.perl.org/perl.git/commitdiff/a8bfb9e4e95cb3cc8a97d79f30b4d8ae4ef3c7f3?hp=0000000000000000000000000000000000000000>
at a8bfb9e4e95cb3cc8a97d79f30b4d8ae4ef3c7f3 (commit)
- Log -----------------------------------------------------------------
commit a8bfb9e4e95cb3cc8a97d79f30b4d8ae4ef3c7f3
Author: Nicholas Clark <[email protected]>
Date: Tue Jun 28 16:19:21 2011 +0200
Change dNOOP to a function declaration.
Previously dNOOP would declare an unused variable, and where possible mark
it
as "unused" to prevent compiler warnings. However, clang doesn't provide
attribute unused, so will produced screenfuls of warnings if invoked with
-Wunused-variable, hiding the real unused variable warnings.
Using a function declaration instead avoids these warnings.
We can't just use define dNOOP as nothing, or a comment, as it is used as
dNOOP;
and a bare semicolon is an error.
-----------------------------------------------------------------------
--
Perl5 Master Repository