Fixed compilation warnings

This commit is contained in:
François Autin 2023-03-01 13:56:12 +01:00
parent 8c737f4c42
commit f6ff30b63c
No known key found for this signature in database
GPG Key ID: 343F5D382E1DD77C
7 changed files with 9 additions and 8 deletions

View File

@ -9,7 +9,7 @@ int main() {
} else if (x < y) {
y += 1;
} else {
return;
return 0;
}
}
}

View File

@ -1,7 +1,7 @@
int main() {
int x = 0;
switch(1) {
switch(x) {
case 1: x = 1; break;
default: return;
default: return 0;
}
}

View File

@ -1,7 +1,8 @@
int test() {
return 1;
return 0;
}
int main() {
int x = test();
return x;
}

View File

@ -1,5 +1,5 @@
// EXPECTS TWO VARIABLES WITH A VALUE OF UNSIGNED 1
void main() {
int main() {
unsigned int x = 0;
unsigned int y = 1;
x = x + y;

View File

@ -1,5 +1,5 @@
// Expecting two variables with a value of two
void main() {
int main() {
unsigned int x = 4;
unsigned int y = 2;
x = x / y;

View File

@ -1,5 +1,5 @@
// EXPECTS TWO VARIABLES WITH A VALUE OF UNSIGNED 2
void main() {
int main() {
unsigned int x = 1;
unsigned int y = 2;
x = x * y;

View File

@ -1,5 +1,5 @@
// EXPECTS TWO VARIABLES WITH A VALUE OF UNSIGNED 1
void main() {
int main() {
unsigned int x = 1;
unsigned int y = 1;
x = x - y;