code cleanup: $warnMsg is always set before

removes wrong typed never used alternative value

Change-Id: Ica747fd0904605f5415d763c8f8e00ac55a79053
Merge "code cleanup: $warnMsg is always set before"