Warning: use less storage class specifier in empty declaration

An error is reported when compiling as follows

typedef struct SqQueue{
	QElemType *base;
	int front;
	int rear;
};

After checking on the Internet, typedef defines an alias. There is no name here, which needs to be changed as follows:

typedef struct {
	QElemType *base;
	int front;
	int rear;
}SqQueue;

 

Read More: