<div dir="ltr"><div><div>Hi,<br><br></div>When using the GCC compilers with the -pedantic or the CUDA compilers (probably others as well), there are a lot of warnings in VTK that there is an extra semicolon at the end of the vtkTypeMacro. I'm hoping to get rid of this warning but wanted to see if there are any good ideas on how to do this beyond simple brute force. The main issue to me is that the macro is defined in the header file so any codes that include the offending header files will see this warning. There is potentially a bunch of them since vtkObject.h itself has the unwanted semicolon in there. <br>
<br></div>Any good ideas on getting rid of this? For reference, the macro is:<br><div>// Macro used to determine whether a class is the same class or<br>// a subclass of the named class.<br>#define vtkTypeMacro(thisClass,superclass) \<br>
  vtkAbstractTypeMacro(thisClass, superclass) \<br>  protected: \<br>  virtual vtkObjectBase *NewInstanceInternal() const \<br>  { \<br>    return thisClass::New(); \<br>  } \<br>  public:<br><br><br><br></div><div>Thanks,<br>
Andy<br></div></div>