[clang] [Clang] warn on discarded [[nodiscard]] function results after casting in C (PR #104677)

via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 18 00:48:25 PDT 2024


================
@@ -54,3 +54,9 @@ void test_missiles(void) {
   launch_missiles();
 }
 
+[[nodiscard]] int f3();
+
+void f4() {
----------------
cor3ntin wrote:

```suggestion
void GH104391(void) {
```

https://github.com/llvm/llvm-project/pull/104677


More information about the cfe-commits mailing list