mirror of
https://github.com/jtgans/g13gui.git
synced 2025-06-20 08:23:50 -04:00
warnings: Fix a bunch of warnings
This is in prep to turn on more warnings. - Stop using libusb_set_debug, according to the deprecation warning for libusb. - Return correctly in G13_Manager::run - Fix the ostream logging helper to return an ostream instead of just returning whatever the last expression was.
This commit is contained in:
parent
b490dd9fff
commit
4f02eceeb1
@ -747,7 +747,7 @@ int G13_Manager::run() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
libusb_set_debug(ctx, 3);
|
||||
libusb_set_option(ctx, LIBUSB_OPTION_LOG_LEVEL, 3);
|
||||
cnt = libusb_get_device_list(ctx, &devs);
|
||||
if (cnt < 0) {
|
||||
G13_LOG( error, "Error while getting device list" );
|
||||
@ -788,6 +788,8 @@ int G13_Manager::run() {
|
||||
}
|
||||
} while (running);
|
||||
cleanup();
|
||||
|
||||
return 0;
|
||||
}
|
||||
} // namespace G13
|
||||
|
||||
|
@ -178,6 +178,7 @@ STREAM_T &operator <<( STREAM_T &o, const _map_keys_out<MAP_T> &_mko ) {
|
||||
o << _mko.sep << i->first;
|
||||
}
|
||||
}
|
||||
return o;
|
||||
};
|
||||
|
||||
template <class MAP_T>
|
||||
|
Loading…
Reference in New Issue
Block a user