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:
Jun Woong authored and Zack Middleton committed 2015-01-06 23:43:04 -06:00
1 parent dd82b9d1a8
commit 8469c40c2b
3 files changed
+3 -3

No files matched your search

+1
View File
@@ -577,6 +577,7 @@ extern Tree cnsttree(Type, ...);
extern Tree consttree(unsigned int, Type);
extern Tree eqtree(int, Tree, Tree);
extern int iscallb(Tree);
extern int isnullptr(Tree);
extern Tree shtree(int, Tree, Tree);
extern void typeerror(int, Tree, Tree);