COIN-OR::LEMON - Graph Library

Changeset 1416:f179aa1045a4 in lemon for lemon


Ignore:
Timestamp:
11/01/18 11:27:05 (6 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Children:
1417:2236d00ca778, 1422:332eab7995fe
Phase:
public
Message:

Suppress unused typdef warnings (#615)

Location:
lemon
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • lemon/bfs.h

    r1270 r1416  
    13771377    struct SetReachedMapTraits : public Traits {
    13781378      typedef T ReachedMap;
    1379       static ReachedMap *createReachedMap(const Digraph &digraph) {
     1379      static ReachedMap *createReachedMap(const Digraph &) {
    13801380        LEMON_ASSERT(false, "ReachedMap is not initialized");
    13811381        return 0; // ignore warnings
  • lemon/concepts/graph_components.h

    r1270 r1416  
    104104          i1=INVALID;
    105105          _GraphItem i2 = i1;
     106          ::lemon::ignore_unused_variable_warning(i2);
    106107          _GraphItem i3 = INVALID;
    107108
     
    735736
    736737          Item bi = it1;
     738          ::lemon::ignore_unused_variable_warning(bi);
    737739          bi = it2;
    738740        }
     
    825827          ++(++it1);
    826828          Item e = it1;
     829          ::lemon::ignore_unused_variable_warning(e);
    827830          e = it2;
    828831        }
  • lemon/concepts/path.h

    r1270 r1416  
    7171      /// \brief Template copy constructor
    7272      template <typename CPath>
    73       Path(const CPath& cpath) {}
     73      Path(const CPath& cpath) {
     74        ::lemon::ignore_unused_variable_warning(cpath);
     75      }
    7476
    7577      /// \brief Template assigment operator
  • lemon/config.h.in

    r1340 r1416  
    33
    44#define LEMON_VERSION "@PROJECT_VERSION@"
     5
    56#cmakedefine LEMON_HAVE_LONG_LONG 1
    67
     
    2728#cmakedefine LEMON_USE_WIN32_THREADS 1
    2829
     30#cmakedefine LEMON_NO_UNUSED_LOCAL_TYPEDEF_WARNINGS 1
     31
    2932#endif
  • lemon/core.h

    r1341 r1416  
    3434// C4800: 'type' : forcing value to bool 'true' or 'false' (performance warning)
    3535// C4996: 'function': was declared deprecated
     36
     37#include <lemon/config.h>
     38
    3639#ifdef _MSC_VER
    3740#pragma warning( disable : 4250 4267 4355 4503 4800 4996 )
    3841#endif
    3942
    40 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
    41 // Needed by the [DI]GRAPH_TYPEDEFS marcos for gcc 4.8
     43#if LEMON_NO_UNUSED_LOCAL_TYPEDEF_WARNINGS
     44// Needed by the [DI]GRAPH_TYPEDEFS marcos for gcc >=4.8 and clang
    4245#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
    4346#endif
     
    4649#include <algorithm>
    4750
    48 #include <lemon/config.h>
    4951#include <lemon/bits/enable_if.h>
    5052#include <lemon/bits/traits.h>
  • lemon/dfs.h

    r1270 r1416  
    13191319    struct SetReachedMapTraits : public Traits {
    13201320      typedef T ReachedMap;
    1321       static ReachedMap *createReachedMap(const Digraph &digraph) {
     1321      static ReachedMap *createReachedMap(const Digraph &) {
    13221322        LEMON_ASSERT(false, "ReachedMap is not initialized");
    13231323        return 0; // ignore warnings
  • lemon/nagamochi_ibaraki.h

    r1270 r1416  
    175175      typedef CR HeapCrossRef;
    176176      typedef H Heap;
    177       static HeapCrossRef *createHeapCrossRef(int num) {
     177      static HeapCrossRef *createHeapCrossRef(int) {
    178178        LEMON_ASSERT(false, "HeapCrossRef is not initialized");
    179179        return 0; // ignore warnings
Note: See TracChangeset for help on using the changeset viewer.