History

Fix warnings detected by clang when compiling c2str.

Christian Jullien committed 5 years ago

Commit c13c4341 parent cc403051 file · +2 −2Browse files

Unified · Split

tests/misc/c2str.c+2−2
@@ -36,7 +36,7 @@ int isspc(int c) · 35 unmodified lines
36 36
37int main(int argc, char **argv)37int main(int argc, char **argv)
38{38{
39 unsigned char l[1000], l2[1000], *p, *q, *p0;39 char l[1000], l2[1000], *p, *q, *p0;
40 FILE *fp, *op;40 FILE *fp, *op;
41 int c, e, f, cmt, cmt_n;41 int c, e, f, cmt, cmt_n;
42 const char *r;42 const char *r;
@@ -84,7 +84,7 @@ int main(int argc, char **argv) · 41 unmodified lines
84 if (cmt) {84 if (cmt) {
85 fprintf(op, "%s", l);85 fprintf(op, "%s", l);
86 if (++cmt_n == 1)86 if (++cmt_n == 1)
87 fprintf(op, " (converted, do not edit this file)", l);87 fprintf(op, " (converted, do not edit this file)");
88 fprintf(op, "\n");88 fprintf(op, "\n");
89 if (cmt == 1)89 if (cmt == 1)
90 cmt = 0;90 cmt = 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t