Skip to content
Snippets Groups Projects
Commit 550d82d1 authored by Andre Sailer's avatar Andre Sailer
Browse files

listcomponents: rename variable lib to alib to fix shadow warning (because of...

listcomponents: rename variable lib to alib to fix shadow warning  (because of lambda capture in c++14?)
parent 24f5ad6f
No related branches found
No related tags found
No related merge requests found
...@@ -110,12 +110,12 @@ int main( int argc, char* argv[] ) { ...@@ -110,12 +110,12 @@ int main( int argc, char* argv[] ) {
}; };
// loop over the list of libraries passed on the command line // loop over the list of libraries passed on the command line
for ( const char* lib : libs ) { for ( const char* aLib : libs ) {
if ( dlopen( lib, RTLD_LAZY | RTLD_LOCAL ) ) { if ( dlopen( aLib, RTLD_LAZY | RTLD_LOCAL ) ) {
dump_from( reg2, lib, "v2" ); dump_from( reg2, aLib, "v2" );
dump_from( reg1, lib, "v1" ); dump_from( reg1, aLib, "v1" );
} else { } else {
std::cerr << "ERROR: failed to load " << lib << ": " << dlerror() << std::endl; std::cerr << "ERROR: failed to load " << aLib << ": " << dlerror() << std::endl;
return EXIT_FAILURE; return EXIT_FAILURE;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment