Use regexp-opt for warning regexp definition. Thanks to Steve Purcell.