add used-but-not-set build option for gnu, ignore for clang