added an option to suppress warning messages

Change-Id: Ic34e9886f468b94589d8ed70fb548cc76c008d25