-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3.2] fix compile warnings in trace_api_plugin #35
Conversation
@@ -360,7 +360,7 @@ struct trace_api_plugin_impl { | |||
:common(common) {} | |||
|
|||
static void set_program_options(appbase::options_description& cli, appbase::options_description& cfg) { | |||
auto cfg_options = cfg.add_options(); | |||
cfg.add_options(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this line just be entirely removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! The whole function trace_api_plugin_impl::trace_api_plugin_impl
can be removed.
it was an empty static function
@@ -109,7 +109,7 @@ struct compressed_file_impl { | |||
} | |||
} | |||
|
|||
void seek( long loc, fc::cfile& file ) { | |||
void seek( uint64_t loc, fc::cfile& file ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make sense to change the long remaining = loc
to uint64_t remaining = loc
? It's not a warning but it may be worthwhile keeping the types the same as they were before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that is even better. Will change it to auto remaining = loc;
fix a couple compile warnings
Resolve #21
Fix the following warnings: