https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104643
Bug ID: 104643 Summary: gcc/config/rs6000/driver-rs6000.cc: 2 * pointless call ? Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Static analyser cppcheck says: 1. gcc/config/rs6000/driver-rs6000.cc:578:13: style: Variable 'cache' is reassigned a value before the old one has been used. [redundantAssignment] Source code is cache = detect_caches_freebsd (); /* FreeBSD PPC does not provide any cache information yet. */ cache = ""; The function call looks pointless. 2. gcc/config/rs6000/driver-rs6000.cc:582:13: style: Variable 'cache' is reassigned a value before the old one has been used. [redundantAssignment] Duplicate.