In my program:
struct _S1;
typedef struct {int unused;} * RETVAL;
typedef RETVAL (*MyFunc) (void* result, void* ctx, struct _P1* s);
typedef struct _S1 {
struct _S1 *parent;
MyFunc f1;
} S1;
I get the following warning:
warning: ‘_S1’ has a field ‘_S1::f1’ whose type uses the anonymous namespace [enabled by default]
typedef struct _S1 {
^
What is the meaning of this warning? What is the result of this warning in my code? How to get rid of this warning?
I am compiling gcc on Linux.
source
share