Skip to content

Commit dd72791

Browse files
committed
[feat] Add more bad code to generate_warnings.c
1 parent 0de4817 commit dd72791

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

test/generate_warnings.c

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1-
#include <limits.h>
1+
x;
22

3-
int bad_code(float n) {
3+
bad_code(float n) {
44

55
int small[3];
66

77
char index = 10;
88

9-
int x = small[index];
10-
11-
double promoted = 3.14159 * n * n;
9+
x = small[index];
1210

1311
return bad_code(x);
1412
}
1513

1614

17-
int main() {
15+
main() {
1816

19-
printf("%s %s", bad_code(1.0f));
17+
printf("%f %s", bad_code(1.0f));
2018
}

0 commit comments

Comments
 (0)