This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Remove compiler warning about unused value
ClosedPublic

Authored by protze.joachim on Jan 16 2019, 1:56 AM.

Details

Summary

The compiler warns about an unused variable/statement:

runtime/src/kmp_affinity.cpp:4958:18: warning: statement has no effect [-Wunused-value]
   KA_TRACE(1000, ; {
                  ^
runtime/src/kmp_debug.h:84:24: note: in definition of macro 'KA_TRACE'
     __kmp_debug_printf x;                                                      \
                        ^

Instead of the unused reference to this function, this patch now calls the function with an empty string.
As I understand the function, this should have no effect.

Diff Detail

Event Timeline

protze.joachim created this revision.Jan 16 2019, 1:56 AM
This revision is now accepted and ready to land.Jan 16 2019, 3:11 AM
This revision was automatically updated to reflect the committed changes.