]> pd.if.org Git - pdclib/commitdiff
Adding the _PDCLIB_UNREACHABLE default fixed warnings, but broke a test case. Rolled...
authorMartin Baute <solar@rootdirectory.de>
Tue, 8 Mar 2016 07:16:08 +0000 (08:16 +0100)
committerMartin Baute <solar@rootdirectory.de>
Tue, 8 Mar 2016 07:16:08 +0000 (08:16 +0100)
functions/stdio/_PDCLIB_print.c

index 8e2a68b4319afe13e8dec966a360b01d7981e07d..e832782fd32c45c37fc2a2e1342cff3729608540 100644 (file)
@@ -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 ) )