regex: avoid new dead-code warning with gcc-4.6.0