[PATCH] D53997: [gold-plugin] Fix a bunch of build warnings
Mandeep Singh Grang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 1 14:20:03 PDT 2018
mgrang added a comment.
Fixed the following warnings:
1. gold-plugin.cpp:452:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
case DS_Warning:
^
gold-plugin.cpp:452:3: note: insert 'LLVM_FALLTHROUGH;' to silence this warning
2. gold-plugin.cpp:449:8: warning: variable 'Level' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized]
case DS_Error:
^~~~~~~~
gold-plugin.cpp:461:11: note: uninitialized use occurs here
message(Level, "LLVM gold plugin: %s", ErrStorage.c_str());
^~~~~
gold-plugin.cpp:447:3: note: variable 'Level' is declared here
ld_plugin_level Level;
Repository:
rL LLVM
https://reviews.llvm.org/D53997
More information about the llvm-commits
mailing list