This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
avoid generating an empty statement outside a function on non-clang
authorTony Cook <tony@develop-help.com>
Tue, 15 Mar 2016 00:26:26 +0000 (11:26 +1100)
committerTony Cook <tony@develop-help.com>
Tue, 15 Mar 2016 00:26:26 +0000 (11:26 +1100)
commitd60341990a480cabcbb36cbfde9bfcae6738f419
tree3f1d65ab3063fb77af3644387532614f61d8f681
parentce12e2548182b5bf6788188c520311eef0eca0ca
avoid generating an empty statement outside a function on non-clang

On non-clang compilers, the code:

CLANG_DIAG_RESTORE;

outside a function generated a simple empty statement (or empty
declaration), which is invalid syntax outside a function in C,
causing a warning from the solaris studio compiler.
dist/threads/threads.xs