At Sat, 21 Aug 2004 01:38:42 +0200, Jeroen T. Vermeulen <[EMAIL PROTECTED]> wrote: > The __FDMASK macro in <sys/select.h> casts the integer 1 to an __fd_mask > (which is required to be a long int). This C-style cast yields a > warning in application code when compiling in C++, breaking builds that > treat warnings as errors. > > Defining separate versions for C and C++, with different cast syntax, > would be unnecessarily bulky. Instead, I would propose to turn the > constant "1" (int) into "1L" (long int) and remove the cast.
Which compiler did you use? It should not be happneded with gcc/g++. Plus, did you check it's OK in C++ standard? Regards, -- gotom -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

