The accused shall be taken to have waived all defects which may be excepted to by a motion to quash, or a plea in abatement, by demurring to an indictment or pleading in bar or the general issue.