Warnings in Qt induced by assert()