bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compiling warnings (one error at least)


From: Marcelo Matus
Subject: Compiling warnings (one error at least)
Date: Wed, 30 Oct 2002 17:53:13 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

I just compile the commoncpp2-1.0.1 version and
I've got the following warnings:


****************

thread.cpp(303): warning #418: declaration requires a typedef name
 };
  ^

file.cpp(342): warning #592: variable "pos" is used before its value is set
     lseek(fd, pos, SEEK_SET);
               ^
serial.cpp(449): warning #858: type qualifier on return type is meaningless
 const int Serial::aRead(char *Data, const int Length)
           ^

serial.cpp(454): warning #858: type qualifier on return type is meaningless
 const int Serial::aWrite(const char *Data, const int Length)
           ^
engine.cpp(119): warning #186: pointless comparison of unsigned integer with zero
           if (myZStream.avail_out >= 0)
                                   ^
unix.cpp(468): warning #187: use of "=" where "==" may have been intended
          if( errno = EINPROGRESS )
              ^

************************

and at least the last one (unix.cpp) seems to be an error. Also, the warning for
the  file.cpp file seems to be important.


Marcelo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]