[cmake] Avoid warnings in feature tests. NFC.
authorMichael Kruse <llvm@meinersbur.de>
Thu, 20 Oct 2016 11:16:19 +0000 (11:16 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Thu, 20 Oct 2016 11:16:19 +0000 (11:16 +0000)
commit3d0266b66446dd1cd0a9d843dd8cd20954e9b980
tree9471b9c018cb27576f9fed11be5221c547e71161
parent618d3aedaf3d6e346cf528f3e9524360f881eb66
[cmake] Avoid warnings in feature tests. NFC.

Apply the __attribute__((unused)) before the function to unambiguously apply to
the function declaration.

Add more casts-to-void to mark return values unused as intended.

Contributed-by: Andy Gibbs <andyg1001@hotmail.co.uk>
llvm-svn: 284718
polly/lib/External/CMakeLists.txt