GCC 3.4.5 (MinGW version) generates a warning: the parameter is not a partial type for line 2 of the following C code:
struct s; typedef void (* func_t)(struct s _this); struct s { func_t method; int dummy_member; };
Is there a way to fix this (or at least hide the warning) without changing the signature of the method argument (struct s *)?
Note. . Something like this would be useful: I am now engaged in an object-oriented structure; "method" is an entry in the dispatch table, and due to the specific design of the frame, it makes sense to pass "_this" by value rather than by reference (as is usually done) ...
source share