Menu

#38 -Werror complains about unused typedefs

3.x
closed
nobody
None
2019-06-10
2015-02-21
No

eg

/home/rks/ecolab.5.8.C010/include/TCL_obj_base.cd:444:42: error: typedef ‘TypeInfoLess’ locally defined but not used [-Werror=unused-local-typedefs]
typedef member_entry_base::TypeInfoLess TypeInfoLess;

Discussion

  • High Performance Coder

    For now, we can disable this warning with a -Wno-unused-local-typedefs. Will probably require classdesc to add pragmas to the output.

     
  • High Performance Coder

    Added the pragma to classdesc output. The typedefs are required for odd situations where a type has been declared, and then used in a base class definition.

     
  • High Performance Coder

    • status: open --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB