Re: Will GCC-6.0 Warn On Spelling Mistakes In Comments And Function Names?



Jan Panteltje wrote:

And will it use US or UK spelling?

unsigned char *color_filter(....)
/* this vunction returns ... */

gcc test.c:

WARN 'line 1: color_filter is spelled colour_filter
ABORT 'line 3: EROR 'vunction' spelling unknown.

Ok, but what about this:

unsigned char *color_filter() ;

/* 100 lines of code */

unsigned char *ptr = colour_filter () ;


WARN 'line 203': identifier 'colour_filter' not found, using closest
match 'color_filter' instead.


This would be useful.

Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo
+-----------------------------------------------------------+
"Slavery is a part of Islam. Slavery is part of jihad, and jihad will
remain as long there is Islam." -- Sheikh Saleh Al-Fawzan, Saudi cleric
http://www.arabianews.org/english/article.cfm?qid=132&sid=2
.