While building lftp-3.5.10 on AIX 4.3.3 with GCC 3.4.3, I noticed the
following:
g++ -DHAVE_CONFIG_H -I. -I../include -I../include -I../include
-I/opt/TWWfsw/libgnutls12/include -I/opt/TWWfsw/readline50/include
-I/opt/TWWfsw/ncurses54/include -I/opt/TWWfsw/libexpat19/include
-I/opt/TWWfsw/gettext014/include -O2 -mpower -mcpu=common
-I/opt/TWWfsw/readline50/include -I/opt/TWWfsw/ncurses54/include -Wall
-Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti
-fno-implement-inlines -Winline -c Http.cc -o Http.o
Http.cc: In member function `void Http::SendRequest(const char*, const
char*)':
Http.cc:639: warning: int format, size_t arg (arg 3)
Http.cc:662: warning: int format, size_t arg (arg 3)
The problematic lines are:
Send("Content-Length: %d\r\n",strlen(allprop));
Send("Content-Length: %d\r\n",strlen(allprop));
As strlen() returns a size_t, should we change this to %ld or cast
strlen() with (int)?
--
albert chin ([EMAIL PROTECTED])