I incurred this same error once. The solution was to browse around files and look for pending statements (like a non-closed parenthesis, or a missing semicolon.) Usually it's really a trivial error, but the compiler complains.
The bad news is that it doesn't always complain at the right line (or even in the right file!) The good news is that in these cases it says something useful like:
WRONGFILE.h: In function ‘FUNCTION_OF_ANOTHER_FILE_WRT_WRONG_FILE’"
WRONGFILE:line:col: error: storage class specified for parameter ‘param’ before.
i had the same experience. The problem was at the function prototype declaration in the header file where a semi colon was missing at the end of function declaration.
The function was indicated in the compilation logs as "In function ... " just before the error snippet