robotpy / robotpy-cppheaderparser

DEPRECATED: use cxxheaderparser instead
Other
123 stars 39 forks source link

[BUG]: Warning about name after union #76

Closed dyadav7 closed 2 years ago

dyadav7 commented 2 years ago

Problem description

The below code gives a warning :

[1894] WARN unresolved _myunion

As compiler does not give a warning - there is no need for this warning for _myunion. Is there a way to suppres Warning ?

struct myStruct {
     char*   name;
     union   _myunion {
         int   a;
         float b;
      } u;
};

Operating System

Linux

Installed Python Packages

No response

Reproducible example code

No response

virtuald commented 2 years ago

Looks like you could set CppHeaderParser.CppHeaderParser.print_warnings to 0.

It's a stupid warning though, I'd accept a PR fixing it.