Conversation
| int main() { | ||
| return 0; |
There was a problem hiding this comment.
[clang-format-pr] reported by reviewdog 🐶
suggested fix
| int main() { | |
| return 0; | |
| int main() | |
| { | |
| return 0; |
| void f() { | ||
| char* a = "aaaaaa"; | ||
| char* b = "bbb"; | ||
|
|
||
| strcpy(b, a); | ||
| return 0; |
There was a problem hiding this comment.
[clang-format-pr] reported by reviewdog 🐶
suggested fix
| void f() { | |
| char* a = "aaaaaa"; | |
| char* b = "bbb"; | |
| strcpy(b, a); | |
| return 0; | |
| void f() | |
| { | |
| char *a = "aaaaaa"; | |
| char *b = "bbb"; | |
| strcpy(b, a); | |
| return 0; |
| int c; | ||
| char *s = "Hello world!"; | ||
| printf(s); |
There was a problem hiding this comment.
[clang-format-pr] reported by reviewdog 🐶
suggested fix
| int c; | |
| char *s = "Hello world!"; | |
| printf(s); | |
| int c; | |
| char *s = "Hello world!"; | |
| printf(s); |
|
|
||
| UnityMain(argc, (const char **)argv, runner); | ||
|
|
||
| f(); |
There was a problem hiding this comment.
[clang-format-pr] reported by reviewdog 🐶
suggested fix
| f(); | |
| f(); |
a5fbcac to
edccb34
Compare
| char* a = "aaaaaa"; | ||
| char* b = "bbb"; | ||
|
|
||
| strcpy(b, a); |
There was a problem hiding this comment.
riscv64-generic-spike,riscv64-generic-qemu
implicit declaration of function 'strcpy' is invalid in C99
| char* b = "bbb"; | ||
|
|
||
| strcpy(b, a); | ||
| return 0; |
There was a problem hiding this comment.
void function 'f' should not return a value
|
|
||
| int main(int argc, char *argv[]) | ||
| { | ||
| int c; |
There was a problem hiding this comment.
unused variable 'c'
| char* a = "aaaaaa"; | ||
| char* b = "bbb"; | ||
|
|
||
| strcpy(b, a); |
There was a problem hiding this comment.
implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)'
| { | ||
| int c; | ||
| char *s = "Hello world!"; | ||
| printf(s); |
There was a problem hiding this comment.
format string is not a string literal (potentially insecure)
No description provided.