presto-jdbc/src/main/java/io/prestosql/jdbc/WarningsManager.java/WarningsManager/clearWarnings
class WarningsManager:    public synchronized void clearWarnings()
    {
        firstWarning = null;
        lastWarning = null;
    }