-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test of cpptest #535
base: jsarzy/cpptest
Are you sure you want to change the base?
test of cpptest #535
Conversation
611e575
to
8b71837
Compare
8b71837
to
11aaf6a
Compare
|
||
int main(void) | ||
{ | ||
printf("Hello World!!\n"); | ||
|
||
add(1, 2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused function's "add" return value
@@ -15,10 +15,18 @@ | |||
|
|||
#include <stdio.h> | |||
|
|||
int add(int a, int b) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The basic numerical type 'int' should not be used
@@ -15,10 +15,18 @@ | |||
|
|||
#include <stdio.h> | |||
|
|||
int add(int a, int b) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The basic numerical type 'int' should not be used
@@ -15,10 +15,18 @@ | |||
|
|||
#include <stdio.h> | |||
|
|||
int add(int a, int b) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prototype of function 'add' does not precede function definition
@@ -15,10 +15,18 @@ | |||
|
|||
#include <stdio.h> | |||
|
|||
int add(int a, int b) { | |||
int c = a + b; | |||
printf("Add: %d\n", c); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usage of 'printf' function is not allowed
@@ -15,10 +15,18 @@ | |||
|
|||
#include <stdio.h> | |||
|
|||
int add(int a, int b) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function 'add' is referenced only in the translation unit where it is defined
@@ -15,10 +15,18 @@ | |||
|
|||
#include <stdio.h> | |||
|
|||
int add(int a, int b) { | |||
int c = a + b; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The basic numerical type 'int' should not be used
@@ -15,10 +15,18 @@ | |||
|
|||
#include <stdio.h> | |||
|
|||
int add(int a, int b) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The basic numerical type 'int' should not be used
@@ -15,10 +15,18 @@ | |||
|
|||
#include <stdio.h> | |||
|
|||
int add(int a, int b) { | |||
int c = a + b; | |||
printf("Add: %d\n", c); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused function's "printf" return value
Do not merge.
Types of changes
How Has This Been Tested?
Checklist:
Special treatment