Remove various assert(constant) calls

These cause warnings from static checkers, and seem to lead to spurious
GCC7 -Wmaybe-uninitialized.
This commit is contained in:
John Hood
2017-08-07 05:03:18 +02:00
parent 93daa5ac3b
commit a40b67691a
7 changed files with 4 additions and 14 deletions
+1 -3
View File
@@ -140,9 +140,7 @@ void Emulator::print( const Parser::Print *act )
}
break;
case -1: /* unprintable character */
break;
default:
assert( false );
default: /* bogus width, ignore */
break;
}
}
-1
View File
@@ -76,7 +76,6 @@ string UserInput::input( const Parser::UserByte *act,
default:
/* This doesn't handle the 8-bit SS3 C1 control, which would be
two octets in UTF-8. Fortunately nobody seems to send this. */
assert( false );
return string();
}
}