Mentions légales du service

Skip to content
Snippets Groups Projects

Add bugs

Open PRUVOST Florent requested to merge sonar-mr into main
4 unresolved threads
+ 2
2
@@ -11,9 +11,9 @@ struct HelloWorld
}
void static MakeBug()
{
int bugd = 1;
int bugd;
    • Type: CODE_SMELL CODE_SMELL

      Severity: MINOR MINOR

      Message: Variable 'bugd' is not assigned a value.

      Duration (min): 5

      Project ID: gitlabci_gallery_pipelines_complete_cpp_example_AZJMSngJsbMNg1jXgmw7 Issue ID: AZJN0bM5Z26XcDMENayc

      View in SonarQube

Please register or sign in to reply
int* bugbuf = new int[2];
bugbuf[0] = bugd;
bugbuf[0] = bugd; // fake new line to make it appear in comments on gitlab
Please register or sign in to reply
delete[] bugbuf;
}
Loading