Fix test for GCC

Issue only warning even if compilation flags treat warnings as errors