Add a warning() function to common.sh.