[Ctags-devel] Removing a compiler warning
Brought to you by:
dhiebert
From: David F. <dfi...@gm...> - 2012-10-24 02:12:53
|
Need a little help (I am not strong at all in C). A patch provided to me leads to a compiler warning and I am not sure how to get rid of it. const char *name = vStringValue (token->string); vString *fullscope = vStringNewCopy (token->scope); const char *p; tagEntryInfo e; /* if ((p = strrchr (name, '.')) != NULL) */ p = strrchr (name, '.'); if ( p != NULL ) And the warning on Ubuntu: -- Compiling (debug) jscript.c jscript.c: In function 'makeJsTag': jscript.c:227:4: warning: implicit declaration of function 'strrchr' [-Wimplicit-function-declaration] jscript.c:227:13: warning: incompatible implicit declaration of built-in function 'strrchr' [enabled by default] And on Windows: jscript.c(228) : warning C4047: '=' : 'const char *' differs in levels of indirection from 'const char' Thanks, Dave |