COIN-OR::LEMON - Graph Library

Custom Query (511 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (142 - 144 of 511)

Ticket Resolution Summary Owner Reporter
#536 fixed GCC_VERSION should not be defined in the header file Alpar Juttner Marcin Sobieszczanski
Description

lemon/core.h (re-)defines GCC_VERSION that is visible to all files that include LEMON headers.

In case a user project uses lemon/core.h (indirectly) and defines its own GCC_VERSION tag (that isn't compatible with LEMON's definition -- GCC_VERSION isn't reserved), this causes a warning that cannot be suppressed. And so warning elevation cannot be used (-Werror).

IMHO, LEMON should defer from (re-)defining its own GCC_VERSION. I suggest the following patch:

--- lemon/core.h.orig 2014-11-24 10:29:17.996837046 +0000 +++ lemon/core.h 2014-11-24 10:32:41.471925566 +0000 @@ -37,13 +37,7 @@

#pragma warning( disable : 4250 4355 4503 4800 4996 ) #endif

-#ifdef GNUC -#define GCC_VERSION (GNUC * 10000 \

  • + GNUC_MINOR * 100 \
  • + GNUC_PATCHLEVEL)

-#endif - -#if GCC_VERSION >= 40800

+#if GNUC > 4
(GNUC == 4 && GNUC_MINOR >= 8)

Needed by the [DI]GRAPH_TYPEDEFS marcos for gcc 4.8 #pragma GCC diagnostic ignored "-Wunused-local-typedefs" #endif

#286 fixed GLPK 4.38 uses new macro name for glp_prob definition Balazs Dezso Balazs Dezso
Description

It causes compile error in glpk.cc

#89 fixed GRAPH_TYPEDEFS syntactic bug Alpar Juttner Balazs Dezso
Description

One semicolon is missing after IncEdgeIt?

Note: See TracQuery for help on using queries.