spl: Fix gcc6 build
-Wno-error= is only a clang flag, restrict its use to only clang.
Sponsored by: Netflix