Re: Compilation Warnings

Stipe Tolj <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Wapme Systems AG
Message-ID <[email protected]>
Aarno Syvänen wrote:
> 
> 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.

definitly my mistake here, sorry palls ;)

Could we commit that anyone who sees a solution in the source and
replies to mails indicates if he/she fixed it in cvs, so that no one
else has to check via viewcvs.cgi or similar?!

Stipe

[email protected]
-------------------------------------------------------------------
Wapme Systems AG

Münsterstr. 248
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [email protected]
Internet: http://www.wapme-systems.de
-------------------------------------------------------------------
wapme.net - wherever you are
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.