Skip to content
Snippets Groups Projects
Commit 857a6ee2 authored by Florian Weimer's avatar Florian Weimer
Browse files

c: -Wincompatible-pointer-types should cover mismatches in ?:

gcc/c/

	PR c/109826
	PR other/44209
	* c-typeck.cc (build_conditional_expr): Use
	OPT_Wincompatible_pointer_types for pointer mismatches.
	Emit location information for the operand.

gcc/testsuite/

	* gcc.dg/Wincompatible-pointer-types-2.c: New.
	* gcc.dg/Wincompatible-pointer-types-3.c: New.
	* gcc.dg/Wincompatible-pointer-types-4.c: New.
parent 8f75e6cf
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment