Michael Hirohama (michael@sooth.com)
Mon, 4 Oct 1999 14:10:34 -0700
When building the htdig3 CVS tree using g++, the following is emitted.
See below for a context diff to fix the fatal errors. Someone more
familiar with the code can eliminate te warning messages. I've
eliminated much of the output for the sake of briefity.
Note in particuar that there are many warnings of the form:
choosing `String::operator char * ()'
over `String::operator const char * () const'
for conversion from `String' to `const char *'
because conversion sequence for the argument is better
~~
---- g++ output ----
file included from ../../htlib/HtDateTime.h:138,
from ../../htnet/Transport.h:22,
from ../../htnet/HtHTTP.cc:20:
./../htlib/htString.h: In method `char String::operator [] (int) const':
./../htlib/htString.h:225: warning: sorry: semantics of inline function static data `char null' are wrong (you'll wind up with multiple copies)
./../htlib/htString.h:225: warning: you can work around this by removing the initializer
[snip-mmh]
./../htnet/HtHTTP.cc: In method `Transport::DocStatus HtHTTP::HTTPRequest ()':
./../htnet/HtHTTP.cc:175: taking the address of a non-static member function
./../htnet/HtHTTP.cc:175: to form a pointer to member function, say `&HtHTTP::ReadBody'
./../htnet/HtHTTP.cc:345: warning: choosing `String::operator char * ()' over `String::operator const char * () const'
./../htnet/HtHTTP.cc:345: warning: for conversion from `String' to `const char *'
./../htnet/HtHTTP.cc:345: warning: because conversion sequence for the argument is better
./../htnet/HtHTTP.cc:348: taking the address of a non-static member function
./../htnet/HtHTTP.cc:348: to form a pointer to member function, say `&HtHTTP::ReadChunkedBody'
[snip-mmh]
---- diff -c output ----
*** ORIG-HtHTTP.cc Mon Oct 4 08:46:23 1999
--- HtHTTP.cc Mon Oct 4 13:40:42 1999
***************
*** 172,178 ****
static Transport::DocStatus DocumentStatus;
bool ShouldTheBodyBeRead = true;
! SetBodyReadingController(&ReadBody);
// Reset the response
_response.Reset();
--- 172,178 ----
static Transport::DocStatus DocumentStatus;
bool ShouldTheBodyBeRead = true;
! SetBodyReadingController(&HtHTTP::ReadBody);
// Reset the response
_response.Reset();
***************
*** 345,351 ****
if (strcmp (_response._transfer_encoding, "chunked") == 0)
{
// Change the controller of the body reading
! SetBodyReadingController(&ReadChunkedBody);
}
// If "ShouldTheBodyBeRead" is set to true and
--- 345,351 ----
if (strcmp (_response._transfer_encoding, "chunked") == 0)
{
// Change the controller of the body reading
! SetBodyReadingController(&HtHTTP::ReadChunkedBody);
}
// If "ShouldTheBodyBeRead" is set to true and
------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
htdig3-dev@htdig.org containing the single word "unsubscribe" in
the SUBJECT of the message.
This archive was generated by hypermail 2.0b3 on Mon Oct 04 1999 - 14:15:54 PDT