warning: its scope is only this definition or declaration, which is not what you want
C语言编译出错,
出错处理是:
将声明对应的文件放在前部,以保证该声明在使用前已经被找到。
参考
http://cboard.cprogramming.com/c-programming/166621-warning-its-scope-only-definition-declaration-not-what-you-want.html
文中说道
You need to declare the struct before you can use it anywhere, it should be ok if you move the function declaration after the struct.