在MDK编译代码时,有时会出现这样的警告, warning : type qualifier is meaningless on cast type return在MDK中,作如下设置: 即添加 : -O1 -g -W 而 --gnu 则根据实际情况添加或者不添加。