Skip to content

Commit

Permalink
Refactor: fix unreachable code warning from Pelles C
Browse files Browse the repository at this point in the history
  • Loading branch information
positively-charged committed Jul 3, 2017
1 parent b3fcb82 commit de39392
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/builtin.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,8 @@ void t_create_builtins( struct task* task, int lang ) {
ARRAY_SIZE( g_deds ) +
ARRAY_SIZE( g_formats ) +
ARRAY_SIZE( g_interns ) };
if ( ARRAY_SIZE( g_funcs ) != TOTAL_IMPLS ) {
t_diag( task, DIAG_INTERNAL | DIAG_ERR,
"builtin function declarations (%zu) != implementations (%zu)",
ARRAY_SIZE( g_funcs ), TOTAL_IMPLS );
t_bail( task );
}
STATIC_ASSERT( ARRAY_SIZE( g_funcs ) == TOTAL_IMPLS,
builtin_function_declarations_not_equal_implementations );
if ( lang == LANG_ACS95 ) {
// Dedicated functions.
for ( int entry = 0; entry < BOUND_DED_ACS95; ++entry ) {
Expand Down

0 comments on commit de39392

Please sign in to comment.