aboutsummaryrefslogtreecommitdiffstats
path: root/native/src
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2012-11-24 08:51:11 -0500
committerBjoern Brandenburg <bbb@mpi-sws.org>2012-11-24 08:51:11 -0500
commit0e2edbe1dda2f944cdab0dd896b9434bf386f572 (patch)
tree3939478190bfda9c1c4491692b2869504eea67a6 /native/src
parent063c25197463f83b03c9398974681bf386cd12c0 (diff)
Avoid compiler warnings about unused variables
Diffstat (limited to 'native/src')
-rw-r--r--native/src/sharedres.cpp2
-rw-r--r--native/src/testmain.cpp2
2 files changed, 1 insertions, 3 deletions
diff --git a/native/src/sharedres.cpp b/native/src/sharedres.cpp
index 1fbb452..a2b43ac 100644
--- a/native/src/sharedres.cpp
+++ b/native/src/sharedres.cpp
@@ -379,7 +379,7 @@ static Interference max_local_request_span(const TaskInfo &tsk,
379 t.get_priority() >= tsk.get_priority()) 379 t.get_priority() >= tsk.get_priority())
380 { 380 {
381 Interference b = bounds.get_max_request_span(i); 381 Interference b = bounds.get_max_request_span(i);
382 span = std::max(span, bounds.get_max_request_span(i)); 382 span = std::max(span, b);
383 } 383 }
384 } 384 }
385 } 385 }
diff --git a/native/src/testmain.cpp b/native/src/testmain.cpp
index 7401491..3c5dc24 100644
--- a/native/src/testmain.cpp
+++ b/native/src/testmain.cpp
@@ -523,8 +523,6 @@ int xxxmain(int argc, char** argv)
523 523
524 Task t = Task(10, 100); 524 Task t = Task(10, 100);
525 525
526 Job j = Job(t, 123, 12);
527
528 cout << "wcet: " << t.get_wcet() << " period: " << t.get_period() 526 cout << "wcet: " << t.get_wcet() << " period: " << t.get_period()
529 << " deadline: " << t.get_deadline() << endl; 527 << " deadline: " << t.get_deadline() << endl;
530 528