Skip to content

Commit 5d9f85c

Browse files
committed
Warning fixes to not confuse the unit test stage checker
* Silence a warning from Boost headers (members maybe used uninitialized) * Remove usage of deprecated std::binary_function.
1 parent 5cd3e6a commit 5d9f85c

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

openasip/src/applibs/Scheduler/Selector/NodeIdCompList.hh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@
4646
* node id. stupid but working order.
4747
*
4848
*/
49-
class RLPriorityNodeId:
50-
public std::binary_function<MoveNode*, MoveNode*, bool> {
49+
class RLPriorityNodeId {
5150
public:
5251
/**
5352
* Compares two nodes according to their priority in the ready list.

openasip/src/applibs/Scheduler/Selector/ReadyMoveNodeGroupList.hh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2002-2009 Tampere University.
2+
Copyright (c) 2002-2025 Tampere University.
33
44
This file is part of TTA-Based Codesign Environment (TCE).
55
@@ -26,7 +26,7 @@
2626
*
2727
* Declaration of ReadyMoveNodeGroupList class.
2828
*
29-
* @author Pekka Jääskeläinen 2007 (pjaaskel-no.spam-cs.tut.fi)
29+
* @author Pekka Jääskeläinen 2007,2025 (pjaaskel-no.spam-cs.tut.fi)
3030
* @note rating: red
3131
*/
3232

@@ -45,8 +45,7 @@
4545
* distance from farthest sink node.
4646
*
4747
*/
48-
class RLPriorityCriticalPath:
49-
public std::binary_function<MoveNode*, MoveNode*, bool> {
48+
class RLPriorityCriticalPath {
5049
public:
5150
/**
5251
* Compares two nodes according to their priority in the ready list.
@@ -84,8 +83,7 @@ public:
8483
* distance from farthest source node. Futher away from source the better.
8584
*
8685
*/
87-
class RLBUPriorityCriticalPath:
88-
public std::binary_function<MoveNode*, MoveNode*, bool> {
86+
class RLBUPriorityCriticalPath {
8987
public:
9088
/**
9189
* Compares two nodes according to their priority in the ready list.

openasip/src/base/Graph/BoostGraph.hh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ namespace boost {
6666

6767
#include "CompilerWarnings.hh"
6868
IGNORE_CLANG_WARNING("-Wunused-local-typedef")
69+
IGNORE_COMPILER_WARNING("-Wmaybe-uninitialized")
6970
#include <boost/config.hpp>
7071
#include <boost/graph/adjacency_list.hpp>
7172
#include <boost/graph/subgraph.hpp>

0 commit comments

Comments
 (0)