Stop LCC from warning about null pointer conversion to function pointer
Fixed LCC to correctly diagnose expressions with NPC. It no longer reports messages such as warning: conversion from `pointer to void' to `pointer to void function(void)' is compiler dependent
This commit is contained in:
parent
dd82b9d1a8
commit
8469c40c2b
3 changed files with 3 additions and 3 deletions
|
@ -621,7 +621,7 @@ Tree cast(Tree p, Type type) {
|
|||
p = simplify(CVP, dst, p, NULL);
|
||||
else {
|
||||
if ((isfunc(src->type) && !isfunc(dst->type))
|
||||
|| (!isfunc(src->type) && isfunc(dst->type)))
|
||||
|| (!isnullptr(p) && !isfunc(src->type) && isfunc(dst->type)))
|
||||
warning("conversion from `%t' to `%t' is compiler dependent\n", p->type, type);
|
||||
|
||||
if (src->size != dst->size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue