fossil: fix unsupported compiler flag when using clang

Fixes #17923.