| Issue |
87221
|
| Summary |
[Compatibility] Option -w can't disable the warning -Wimplicit-function-declaration
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
vfdff
|
* test: https://gcc.godbolt.org/z/b6djWGGW9
```
int square(int num) {
memset (&num, 0, 4);
return 0;
}
```
* since clang15, miss head file <string.h>for **memset** will report an **error**, so it can't be disable by add option `-w`, so many old code should modify the source to avoid this issue. Does we still have an option to compatible with old code ?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs