Add the warning event to the example.