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:
@@ -95,7 +95,6 @@ string UserStream::diff_from( const UserStream &existing ) const
|
||||
}
|
||||
break;
|
||||
default:
|
||||
assert( false );
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -131,7 +130,6 @@ const Parser::Action &UserStream::get_action( unsigned int i ) const
|
||||
case ResizeType:
|
||||
return actions[ i ].resize;
|
||||
default:
|
||||
assert( false );
|
||||
static const Parser::Ignore nothing = Parser::Ignore();
|
||||
return nothing;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user