Re: Compilation Warnings
Aarno Syvänen <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | Wiral Ltd |
| Message-ID | <[email protected]> |
Bruno David Simões Rodrigues wrote: > > bruno@laptop:~/work/gateway$ make -s > wap/wsp_session.c:437: warning: `REFERER' redefined > wap/wsp.h:47: warning: this is the location of the previous definition > wap/wsp_session.c:490: warning: `REFERER' redefined > wap/wsp_session.c:437: warning: this is the location of the previous > definition > > bruno@laptop:~/work/gateway/wap$ grep OCTSTR wsp.h wsp_session.c > wsp.h: #define OCTSTR(name) Octstr *name; > wsp_session.c: #define OCTSTR(name) p->name = NULL; > wsp_session.c: #define OCTSTR(name) octstr_destroy(p->name); > bruno@laptop:~/work/gateway/wap$ grep REFERER wsp.h wsp_session.c > wsp.h: #define REFERER(name) Octstr *name; > wsp_session.c: #define REFERER(name) p->name = NULL; > wsp_session.c: #define REFERER(name) octstr_destroy(p->name); > > I really don't understand what tha hell is this warning. > > OCTSTR macro (and others nearby) is defined just like REFERER and gives > no warning. > > Could someone fix this and elucidate us what is this warning ? REFERER was not *undefined* at the end of wap/wsp_server_session_machine.def. So precompiler thougth that there was a redefinition of it. Aarno