-
Notifications
You must be signed in to change notification settings - Fork 199
warn about unused return value for set_logger_level #652
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -95,7 +95,13 @@ rcl_logging_configure(const rcl_arguments_t * global_args, const rcl_allocator_t | |
| if (g_rcl_logging_ext_lib_enabled) { | ||
| status = rcl_logging_external_initialize(config_file, g_logging_allocator); | ||
| if (RCL_RET_OK == status) { | ||
| rcl_logging_external_set_logger_level(NULL, default_level); | ||
| // TODO(dirk-thomas) the return value should be typed and compared to | ||
| // constants instead of zero | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While this mismatch is unfortunately it is better then not enforcing to check the return value.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @dirk-thomas mind to explain? |
||
| int logging_status = rcl_logging_external_set_logger_level( | ||
| NULL, default_level); | ||
| if (logging_status != 0) { | ||
| status = RCL_RET_ERROR; | ||
| } | ||
| g_rcl_logging_out_handlers[g_rcl_logging_num_out_handlers++] = | ||
| rcl_logging_ext_lib_output_handler; | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.