From: Martin Baute Date: Tue, 8 Mar 2016 07:16:08 +0000 (+0100) Subject: Adding the _PDCLIB_UNREACHABLE default fixed warnings, but broke a test case. Rolled... X-Git-Url: https://pd.if.org/git/?p=pdclib;a=commitdiff_plain;h=62ee8c813a22690a258c23c4c0befab9174ea9b1 Adding the _PDCLIB_UNREACHABLE default fixed warnings, but broke a test case. Rolled back, need to investigate. --- diff --git a/functions/stdio/_PDCLIB_print.c b/functions/stdio/_PDCLIB_print.c index 8e2a68b..e832782 100644 --- a/functions/stdio/_PDCLIB_print.c +++ b/functions/stdio/_PDCLIB_print.c @@ -530,8 +530,6 @@ int _PDCLIB_print( const char * spec, struct _PDCLIB_status_t * status ) break; case E_intmax: value = va_arg( status->arg, uintmax_t ); - default: - _PDCLIB_UNREACHABLE; } if ( !int2base( value, status ) ) return -1; @@ -568,8 +566,6 @@ int _PDCLIB_print( const char * spec, struct _PDCLIB_status_t * status ) case E_intmax: value = va_arg( status->arg, intmax_t ); break; - default: - _PDCLIB_UNREACHABLE; } if (!int2base( value, status ) )