Siegmar Gross via llvm-dev
2017-Oct-26 14:14 UTC
[llvm-dev] many warnings building llvm components
Hi, I tried to build the latest version of llvm-trunk with Cmake and gcc-6.4.0 on my "SUSE Linux Enterprise Server 12.2 (x86_64)". Perhaps somebody is interested in the following warnings and can fix them. /export2/src/llvm-trunk/llvm/projects/compiler-rt/lib/builtins/atomic.c:129:24: warning: implicit declaration of function '__c11_atomic_is_lock_free' [-Wimplicit-function-declaration] /export2/src/llvm-trunk/llvm/projects/compiler-rt/lib/builtins/atomic.c:164:22: warning: implicit declaration of function '__c11_atomic_load' [-Wimplicit-function-declaration] /export2/src/llvm-trunk/llvm/projects/compiler-rt/lib/builtins/atomic.c:196:10: warning: implicit declaration of function '__c11_atomic_compare_exchange_strong' [-Wimplicit-function-declaration] /export2/src/llvm-trunk/llvm/projects/compiler-rt/lib/builtins/atomic.c:216:19: warning: implicit declaration of function '__c11_atomic_exchange' [-Wimplicit-function-declaration] /export2/src/llvm-trunk/llvm/projects/compiler-rt/lib/builtins/atomic.c:290:5: warning: conflicting types for built-in function '__atomic_compare_exchange_1' /export2/src/llvm-trunk/llvm/projects/compiler-rt/lib/builtins/atomic.c:290:5: warning: conflicting types for built-in function '__atomic_compare_exchange_16' /export2/src/llvm-trunk/llvm/projects/compiler-rt/lib/builtins/atomic.c:290:5: warning: conflicting types for built-in function '__atomic_compare_exchange_2' /export2/src/llvm-trunk/llvm/projects/compiler-rt/lib/builtins/atomic.c:290:5: warning: conflicting types for built-in function '__atomic_compare_exchange_4' /export2/src/llvm-trunk/llvm/projects/compiler-rt/lib/builtins/atomic.c:290:5: warning: conflicting types for built-in function '__atomic_compare_exchange_8' /export2/src/llvm-trunk/llvm/projects/compiler-rt/lib/builtins/atomic.c:315:12: warning: implicit declaration of function '__c11_atomic_fetch_add' [-Wimplicit-function-declaration] /export2/src/llvm-trunk/llvm/projects/compiler-rt/lib/builtins/atomic.c:315:12: warning: implicit declaration of function '__c11_atomic_fetch_and' [-Wimplicit-function-declaration] /export2/src/llvm-trunk/llvm/projects/compiler-rt/lib/builtins/atomic.c:315:12: warning: implicit declaration of function '__c11_atomic_fetch_or' [-Wimplicit-function-declaration] /export2/src/llvm-trunk/llvm/projects/compiler-rt/lib/builtins/atomic.c:315:12: warning: implicit declaration of function '__c11_atomic_fetch_sub' [-Wimplicit-function-declaration] /export2/src/llvm-trunk/llvm/projects/compiler-rt/lib/builtins/atomic.c:315:12: warning: implicit declaration of function '__c11_atomic_fetch_xor' [-Wimplicit-function-declaration] /export2/src/llvm-trunk/llvm/projects/compiler-rt/lib/builtins/atomic.c:93:3: warning: implicit declaration of function '__c11_atomic_store' [-Wimplicit-function-declaration] /export2/src/llvm-trunk/llvm/projects/compiler-rt/lib/builtins/atomic.c:99:11: warning: implicit declaration of function '__c11_atomic_compare_exchange_weak' [-Wimplicit-function-declaration] /export2/src/llvm-trunk/llvm/projects/compiler-rt/lib/builtins/divtc3.c:21:1: warning: conflicting types for built-in function '__divtc3' /export2/src/llvm-trunk/llvm/projects/compiler-rt/lib/msan/msan.cc:586:32: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/compiler-rt/lib/msan/msan.cc:592:32: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/compiler-rt/lib/msan/msan.cc:604:39: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/compiler-rt/lib/msan/msan.cc:612:39: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp.h:1515:3: warning: ISO C++ prohibits anonymous structs [-Wpedantic] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp.h:1550:3: warning: ISO C++ prohibits anonymous structs [-Wpedantic] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp.h:1842:3: warning: ISO C++ prohibits anonymous structs [-Wpedantic] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_affinity.cpp:4593:15: warning: variable 'th' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_alloc.cpp:1597:17: warning: variable 'addr_allocated' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_alloc.cpp:1598:17: warning: variable 'addr_aligned' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_atomic.cpp:1114:50: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_atomic.cpp:1115:50: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_atomic.cpp:1404:65: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_atomic.cpp:1405:43: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_atomic.cpp:2206:65: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_atomic.cpp:2207:43: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_atomic.cpp:2594:50: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_atomic.cpp:2595:50: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_atomic.cpp:2891:65: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_atomic.cpp:2892:43: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_atomic.cpp:780:65: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_atomic.cpp:781:43: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_barrier.cpp:1553:12: warning: variable 'nproc' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_barrier.cpp:1554:15: warning: variable 'master_thread' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_barrier.cpp:1789:41: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_csupport.cpp:412:45: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_dispatch.cpp:1005:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_dispatch.cpp:1681:22: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_dispatch.cpp:1689:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_dispatch.cpp:1732:26: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_dispatch.cpp:1765:19: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_dispatch.cpp:1996:31: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_dispatch.cpp:2076:34: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_dispatch.cpp:2174:25: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_dispatch.cpp:2180:38: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_dispatch.cpp:2392:42: warning: typedef 'ST' locally defined but not used [-Wunused-local-typedefs] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_dispatch.cpp:325:43: warning: typedef 'ST' locally defined but not used [-Wunused-local-typedefs] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_dispatch.cpp:528:42: warning: typedef 'ST' locally defined but not used [-Wunused-local-typedefs] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_dispatch.cpp:73:3: warning: ISO C++ prohibits anonymous structs [-Wpedantic] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_dispatch.cpp:935:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_ftn_entry.h:114:15: warning: variable 'thread' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_gsupport.cpp:887:39: warning: ISO C++ forbids variable length array 'dep_list' [-Wvla] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_i18n.h:177:2: warning: extra ';' [-Wpedantic] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_lock.cpp:1135:13: warning: variable 'need_mf' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_lock.cpp:1402:15: warning: variable 'this_thr' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_os.h:552:76: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_os.h:553:26: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_os.h:558:76: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_os.h:559:26: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_runtime.cpp:1706:22: warning: ISO C++ forbids variable length array 'args' [-Wvla] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_runtime.cpp:5331:23: warning: variable 'hot_teams' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_runtime.cpp:6293:51: warning: format '%p' expects argument of type 'void**', but argument 3 has type 'long int**' [-Wformat=] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_runtime.cpp:6294:50: warning: format '%lx' expects argument of type 'long unsigned int*', but argument 3 has type 'long int*' [-Wformat=] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_tasking.cpp:2050:15: warning: variable 'count' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_tasking.cpp:2262:19: warning: variable 'count' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_tasking.cpp:3089:13: warning: variable 'children' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_tasking.cpp:624:13: warning: variable 'children' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_taskq.cpp:1121:11: warning: variable 'ct' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_taskq.cpp:1290:11: warning: variable 'ct' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_taskq.cpp:1525:7: warning: variable 'nproc' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_taskq.cpp:1989:16: warning: variable 'tq' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_taskq.cpp:714:9: warning: variable 'ct' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_taskq.cpp:854:11: warning: variable 'ct' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_taskq.cpp:865:13: warning: variable 'ct' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_taskq.cpp:889:13: warning: variable 'ct' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_taskq.cpp:943:13: warning: variable 'ct' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_taskq.cpp:958:15: warning: variable 'ct' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_taskq.cpp:976:13: warning: variable 'ct' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/kmp_wait_release.h:103:14: warning: variable 'poll_count' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/z_Linux_util.cpp:1085:7: warning: variable 'status' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/projects/openmp/runtime/src/z_Linux_util.cpp:501:18: warning: variable 'padding' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/tools/clang/lib/StaticAnalyzer/Checkers/ArrayBoundCheckerV2.cpp:262:23: warning: 'void {anonymous}::RegionRawOffsetV2::dump() const' defined but not used [-Wunused-function] /export2/src/llvm-trunk/llvm/tools/clang/lib/StaticAnalyzer/Core/RegionStore.cpp:137:23: warning: 'void {anonymous}::BindingKey::dump() const' defined but not used [-Wunused-function] /export2/src/llvm-trunk/llvm/tools/clang/tools/extra/modularize/ModuleAssistant.cpp:68:1: warning: '{anonymous}::Module::Module()' defined but not used [-Wunused-function] /export2/src/llvm-trunk/llvm/tools/lldb/source/Host/common/MainLoop.cpp:295:7: warning: variable 'ret' set but not used [-Wunused-but-set-variable] /export2/src/llvm-trunk/llvm/tools/lldb/source/Plugins/Language/ObjC/NSArray.cpp:184:7: warning: ISO C++ prohibits anonymous structs [-Wpedantic] /export2/src/llvm-trunk/llvm/tools/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp:292:7: warning: ISO C++ prohibits anonymous structs [-Wpedantic] /export2/src/llvm-trunk/llvm/tools/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp:298:7: warning: ISO C++ prohibits anonymous structs [-Wpedantic] /export2/src/llvm-trunk/llvm/tools/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp:312:7: warning: ISO C++ prohibits anonymous structs [-Wpedantic] /export2/src/llvm-trunk/llvm/tools/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp:318:7: warning: ISO C++ prohibits anonymous structs [-Wpedantic] /export2/src/llvm-trunk/llvm/tools/lldb/source/Plugins/Language/ObjC/NSSet.cpp:168:7: warning: ISO C++ prohibits anonymous structs [-Wpedantic] /export2/src/llvm-trunk/llvm/tools/lldb/source/Plugins/Language/ObjC/NSSet.cpp:182:7: warning: ISO C++ prohibits anonymous structs [-Wpedantic] cc1plus: warning: unrecognized command line option '-Wno-deprecated-register' cc1plus: warning: unrecognized command line option '-Wno-vla-extension' tools/lldb/scripts/LLDBWrapPython.cpp:52396:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] tools/lldb/scripts/LLDBWrapPython.cpp:52488:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] tools/lldb/scripts/LLDBWrapPython.cpp:52589:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] Kind regards Siegmar