Disable array bounds warnings on gcc 4.6. Fixes #9522.