CWARN.RET.MAINIncorrect return type for mainThe CWARN.RET.MAIN checker finds instances in which the return type for 'main' is not 'int'. Vulnerability and riskThis error is typically a typo that causes design intent to fail. Vulnerable code example1 void main() 2 { 3 return; 4 } Klocwork flags line 1 with its incorrect 'main' signature. |