https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85969
Bug ID: 85969 Summary: avr/gen-avr-mmcu-specs.c:56: unused function ? Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- config/avr/gen-avr-mmcu-specs.c:56:1: warning: ‘bool str_prefix_p(const char*, const char*)’ defined but not used [-Wunused-function] Source code is 221141 gjl /* Return true iff STR starts with PREFIX. */ 221141 gjl 221141 gjl static bool 221141 gjl str_prefix_p (const char *str, const char *prefix) 221141 gjl { 255831 jakub return strncmp (str, prefix, strlen (prefix)) == 0; 221141 gjl } $ fgrep str_prefix_p /home/dcb/gcc/trunk/gcc/config/avr/gen-avr-mmcu-specs.c str_prefix_p (const char *str, const char *prefix) $