Issue #1341: Simplified warning functions.