Skip to content

Commit fa67866

Browse files
author
Tomoya Fujita
authored
remove default: so that compiler can detect the missing case. (ros2#534)
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
1 parent d084375 commit fa67866

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

‎src/logging.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -708,10 +708,6 @@ rcutils_ret_t rcutils_logging_initialize_with_allocator(rcutils_allocator_t allo
708708
case RCUTILS_GET_ENV_ONE:
709709
g_output_stream = stdout;
710710
break;
711-
default:
712-
RCUTILS_SET_ERROR_MSG(
713-
"Invalid return from environment fetch");
714-
return RCUTILS_RET_ERROR;
715711
}
716712

717713
// Allow the user to choose how buffering on the stream works by setting
@@ -757,10 +753,6 @@ rcutils_ret_t rcutils_logging_initialize_with_allocator(rcutils_allocator_t allo
757753
case RCUTILS_GET_ENV_ONE:
758754
g_colorized_output = RCUTILS_COLORIZED_OUTPUT_FORCE_ENABLE;
759755
break;
760-
default:
761-
RCUTILS_SET_ERROR_MSG(
762-
"Invalid return from environment fetch");
763-
return RCUTILS_RET_ERROR;
764756
}
765757

766758
// Check for the environment variable for custom output formatting

0 commit comments

Comments
 (0)