[Coin-lpsolver] Fix compilation with gcc 4.0

Ulrich Spoerlein spoerlein at informatik.uni-wuerzburg.de
Fri Oct 14 09:02:17 EDT 2005


Hello again,

CFLAGS of -ansi -pedantic -Wall -Wextra -O2 -pipe lead to the following
compilation error with gcc 4.0

../COIN/include/CoinModelUseful.hpp:403: error: extra ';'

Please see the attached patch for a fix.

Ulrich Spoerlein
-- 
 PGP Key ID: F0DB9F44				Encrypted mail welcome!
Fingerprint: F1CE D062 0CA9 ADE3 349B  2FE8 980A C6B5 F0DB 9F44
Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn."
didn't you understand?
-------------- next part --------------
Index: Coin/include/CoinModelUseful.hpp
===================================================================
RCS file: /home/coin/coincvs/COIN/Coin/include/CoinModelUseful.hpp,v
retrieving revision 1.5
diff -u -r1.5 CoinModelUseful.hpp
--- Coin/include/CoinModelUseful.hpp	15 May 2005 00:22:06 -0000	1.5
+++ Coin/include/CoinModelUseful.hpp	14 Oct 2005 12:59:30 -0000
@@ -400,6 +400,6 @@
 };
 /// Returns strdup or NULL if original NULL
 inline char * CoinStrdup(const char * name)
-{ return (name ) ? strdup(name) : NULL;};
+{ return (name ) ? strdup(name) : NULL;}
 
 #endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <http://list.coin-or.org/pipermail/clp/attachments/20051014/db1b0021/attachment.sig>


More information about the Clp mailing list