1、warning: declaration of 'tb' shadows a global declaration
d.c:32: warning: shadowed declaration is here
出现这种警告的时候,查看您的变量声明与函数参数中的名字是否相同,修改为不同的名字既可解决。
2、
在运行的时候报stack smashing detected错误问题,原因是GCC的一种检测“缓存溢出”的保护机制.当分配的内存不够时,会继续执行;但是在程序结束返回时才出现错误提示
解决办法就是在编译链中加入对该检查的屏蔽 “-fno-stack-protector”
这样就可以避免问题的出现了