https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115428
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The reason why has_pointer_operand_p is not warned about is because it is a `static inline` function which GCC will never warn about. Looks like clang only warns about them if they are in a main source. The reason why relation_to_code is not warned about is a similar reasons but this time for `static const` variables.