https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99674
Bug ID: 99674 Summary: gcc/config/i386/i386-features.c: 2143: 2 * member variable not inited in ctor ? Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- cppcheck says trunk.git/gcc/config/i386/i386-features.c:2143:3: warning: Member variable 'pass_insert_endbr_and_patchable_area::need_endbr' is not initialized in the constructor. [uninitMemberVar] trunk.git/gcc/config/i386/i386-features.c:2143:3: warning: Member variable 'pass_insert_endbr_and_patchable_area::patchable_area_size' is not initialized in the constructor. [uninitMemberVar] Source code is pass_insert_endbr_and_patchable_area (gcc::context *ctxt) : rtl_opt_pass (pass_data_insert_endbr_and_patchable_area, ctxt) {} There might be some value in making sure these two member variables are initialised to something sensible. Looking at private: bool need_endbr; unsigned int patchable_area_size; then maybe false and 0 would be good.