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

Oleksandr T. via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 18 02:52:45 PDT 2024


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

@cor3ntin could you merge it once the CI passes? Thanks

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


More information about the cfe-commits mailing list