Compiler warnings with g++-4.0

View: New views
2 Messages — Rating Filter:   Alert me  

Compiler warnings with g++-4.0

by Martin Dietze :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

 I found that g++-4.0 issues a warning at HTTPHeader::setCookie()
because there is no explicit assignment operator for HTTPCookie.
I thus propose to add it to the class:

|    /*!
|     * \brief Assignment operator.
|     *
|     * \param cookie The HTTPCookie to initialize *this with
|     * \return a reference to *this                        
|     */                            
|    inline HTTPCookie&
|    operator= (const HTTPCookie& cookie)
|    {
|        this->fName = cookie.fName;
|        this->fValue = cookie.fValue;
|        this->fComment = cookie.fComment;
|        this->fDomain = cookie.fDomain;
|        this->fMaxAge = cookie.fMaxAge;
|        this->fPath = cookie.fPath;
|        this->fSecure = cookie.fSecure;
|    }

Cheers,

Martin

--
---- Dipl.Ing. Martin Dietze -- / --- martin.dietze@... ----------
-- 4G Systeme GmbH Hamburg --- / --- martin@... --
------------- / http://herbert.the-little-red-haired-girl.org / -------------
=+=
My opinions may have changed, but not the fact that I am right.


_______________________________________________
bug-cgicc mailing list
bug-cgicc@...
http://lists.gnu.org/mailman/listinfo/bug-cgicc

Re: Compiler warnings with g++-4.0

by chuck mcguire :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Martin Dietze <di <at> fh-wedel.de> writes:

> Cheers,
>
> Martin
>


I write:::: THANKS Martin, just wasted....invested 3hours finding your work.
it works for me using ubuntu 6.06LTS  It was very important that I find this
solution.  



_______________________________________________
bug-cgicc mailing list
bug-cgicc@...
http://lists.gnu.org/mailman/listinfo/bug-cgicc