Skip to content

Commit 386ea16

Browse files
committed
Added fixme comment. Removed the extra testcase. Added release note
1 parent d147292 commit 386ea16

File tree

3 files changed

+2
-42
lines changed

3 files changed

+2
-42
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ Modified Compiler Flags
284284
``rtdcall``. This new default CC only works for M68k and will use the new
285285
``m68k_rtdcc`` CC on every functions that are not variadic. The ``-mrtd``
286286
driver/frontend flag has the same effect when targeting M68k.
287+
* ``-Wextra`` group flag now contains an adittional flag i.e, ``-Wcast-function-type``.
287288

288289
Removed Compiler Flags
289290
-------------------------

clang/test/Sema/warn-cast-function-type-strict.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@ void foo(void) {
3939
g = (f7 *)x; /* expected-warning {{cast from 'int (*)(long)' to 'f7 *' (aka 'int (*)(long, ...)') converts to incompatible function type}} */
4040
h = (f8 *)t;
4141
i = (f9 *)u;
42+
// FIXME: return type qualifier should not be included in the function type . Warning should be absent after this issue is fixed. https://github.com/llvm/llvm-project/issues/39494 .
4243
j = (f10 *)v; /* expected-warning {{cast from 'const int (*)(int)' to 'f10 *' (aka 'int (*)(int)') converts to incompatible function type}} */
4344
}

clang/test/Sema/warn-extra-cast-function-type-strict.c

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)