美文网首页
蓝色警告

蓝色警告

作者: 4陈雨泽4 | 来源:发表于2017-04-26 09:38 被阅读43次

    1.the left operand of '+' is a garbage value

    当出现这个警告(内存泄露)的时候,是由于你左边的变量没有赋值,会造成这样的警告。解决办法是:可以将左边的变量初始化一个值,或者保证 在进行if判断的时候一定有值。

    2.value stored to 'xxx' is never read

    说明'xxxx'这个变量,只有赋值,并没有使用过.解决办法:直接删掉即可.

    3.Value stored to 'xxxx' during its initialization is never read.

    这个是:给一个已经有值的变量再次赋值,而之前的值并没有使用.如下:

    4.null passed to a callee that requires a non- null 1st parameter

    5.potential leak of an object stored into 'xxx'

    相关文章

      网友评论

          本文标题:蓝色警告

          本文链接:https://www.haomeiwen.com/subject/bbfizttx.html