Timm =?utf-8?q?Bäder?= <[email protected]>,
Timm =?utf-8?q?Bäder?= <[email protected]>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>
tbaederr wrote:
It's pretty easy to get an error like:
```
./tsa.c:77:18: error: incompatible function pointer types assigning to 'int
(*)(int) __attribute__((requires_capability(blah)))' from 'int (void)'
[-Wincompatible-function-pointer-types]
77 | function_ptr = foo2;
| ^ ~~~~
```
but as soon as I change `foo2` to also take an int parameter, the error
vanishes completely.
https://github.com/llvm/llvm-project/pull/67095
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits