Merge pull request #10374 from Pokechu22/slots-unused-warning Work around false SLOTS defined but not used warning on GCC