This warning is triggered multiple times in my code by the same declaration, which reads :
// Spreadsheet structure
typedef struct SPREADSHEET
{
int ID
Delete typedef. It's the C way of declaring structs, C++ does it automatically for you.
You need to add some identifier before the terminating ;, e.g.:
typedef struct BLAH { ... } BLAH;
Yes, the BLAH after the closing brace is important to make the typedef a valid one. You can remove the SPREADSHEET from the present place and keep it in between the } and the ;.
Just remove "typedef". You declare a new struct and the typedef keyword isn't used for that. You would use typedef to define a new name for an existing type, like this:
typedef int number;
My interpretation of this warning is that the compiler is indicating that the typedef keyword is unnecessary because a variable is not being declared. and therefore if the intention of the code is to simply declare a struct the typedef is superfluous.