[clang] [clang] move -Wcast-function-type under -Wextra (PR #77178)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 6 09:52:17 PST 2024


================
@@ -0,0 +1,42 @@
+// RUN: %clang_cc1 %s -fsyntax-only -Wextra -verify
+
+
+int t(int array[static 12]);
+int u(int i);
+const int v(int i); /* expected-warning {{'const' type qualifier on return type has no effec}} */
----------------
Endilll wrote:

```suggestion
const int v(int i); /* expected-warning {{'const' type qualifier on return type has no effect}} */
```

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


More information about the cfe-commits mailing list