HP Code Advisor Diagnostics Reference Guide (5900-1865, July 2011)
2.135 4290 endian porting: the initialization of char array may be endian dependent.....................63
2.136 4292 endian porting: the dereference of cast pointer may be endian dependent....................64
2.137 4295 abstract function type declared with empty parentheses, consider replacing with
parameter list or void. ............................................................................................................64
2.138 4298 64 bit migration: addition result could be truncated before cast to bigger sized type......64
2.139 4299 64 bit migration: multiply result could be truncated before cast to bigger sized type.......65
2.140 4300 Overflow while computing constant in left shift operation............................................65
2.141 4301 expression has no effect..........................................................................................65
2.142 4314 if statement without body, did you insert an extra ';'?..................................................65
2.143 4315 %s loop without body, did you insert an extra ';'?.......................................................66
2.144 4354 One of the operands of the %sq operation is a string literal, strcmp() is recommended
for such comparison................................................................................................................66
2.145 4355 the initializer for %n is greater than %s.....................................................................66
2.146 4356 operand of sizeof is a constant rvalue, this might not be what you intended..................66
2.147 4357 octal escape sequence "%s" is followed by decimal character '%s2'............................67
2.148 4360 size of types of consecutive bitfields are different, bitfield packing behavior may be
different across compiler..........................................................................................................67
2.149 4361 64 bit migration: size of types of consecutive bitfields are different, bitfield packing
behavior may be different across compilers................................................................................67
2.150 4363 possible mismatch in parameters passed to %n, previously seen %p.............................68
2.151 4364 endian porting: type cast is endian dependent..........................................................68
2.152 4365 endian porting: the definition of the union may be endian dependent..........................69
2.153 4370 Control flows into the switch case from the previous case value....................................69
2.154 4372 Potential overflow in arithmetic expression involving time_t/clock_t values.....................70
2.155 4373 non arithmetic integer conversion resulted in a change of sign.....................................70
2.156 20035 variable %s is used before its value is set................................................................71
2.157 20036 variable %s (field %s) is used before its value is set..................................................71
2.158 20037 variable %s may be used before its value is set.......................................................71
2.159 20048 %s "%s" has incompatible type with previous declaration at line %s in file "%s"..........72
2.160 20072 variable %s is partially uninitialized when used.......................................................72
2.161 20073 variable %s may be partially uninitialized when used...............................................72
2.162 20074 variable %s (field "%s") may be used before its value is set.......................................73
2.163 20200 Potential null pointer dereference %s%s is detected %s.............................................73
2.164 20201 Memory leak is detected......................................................................................74
2.165 20202 Allocated memory may potentially be leaked %s.....................................................74
2.166 20203 Potential out of scope use of local %s %s................................................................74
2.167 20206 Out of bound access (%s).....................................................................................75
2.168 20208 Forming out of bound address(%s).........................................................................76
2.169 20210 Mismatch in allocation and deallocation.................................................................76
2.170 20213 Potential write to read only memory %s%s is detected...............................................76
2.171 20229 variable "%s" is uninitialized if the loop %s is not executed.......................................77
2.172 20231 variable "%s" (field "%s") may be used before its value is set if the loop %s is not
executed................................................................................................................................77
6 Contents