added an option to supress warning messages

Change-Id: Ic34e9886f468b94589d8ed70fb548cc76c008d25