From c06ce2ffcc269d66d5fa1907456498d861e62b51 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sun, 27 Jan 2008 15:29:47 +0000 Subject: [PATCH] More unused parameters - in ETL this time. git-svn-id: http://svn.voria.com/code@1514 1f10aa63-cdf2-0310-b900-c93c546f37ac --- ETL/trunk/ETL/_random.h | 2 +- ETL/trunk/test/smach.cpp | 12 ++++++------ ETL/trunk/test/smart_ptr.cpp | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ETL/trunk/ETL/_random.h b/ETL/trunk/ETL/_random.h index 73efa08..c358dfc 100644 --- a/ETL/trunk/ETL/_random.h +++ b/ETL/trunk/ETL/_random.h @@ -98,7 +98,7 @@ public: mod=offset=0; } - void seed(const seed_type &x) + void seed(const seed_type &x __attribute__ ((unused))) { pool_index=0; } void set_range(const value_type &floor,const value_type &ceil) diff --git a/ETL/trunk/test/smach.cpp b/ETL/trunk/test/smach.cpp index 3f28a06..bb5f48d 100644 --- a/ETL/trunk/test/smach.cpp +++ b/ETL/trunk/test/smach.cpp @@ -66,7 +66,7 @@ public: DefaultStateContext(MachineContext *context):context(context) { printf("Entered Default State\n"); } ~DefaultStateContext() { printf("Left Default State\n"); } - Smach::event_result event1_handler(const Smach::event& x) + Smach::event_result event1_handler(const Smach::event& x __attribute__ ((unused))) { printf("DEFAULT STATE: Received Event 1\n"); return Smach::RESULT_ACCEPT; @@ -96,7 +96,7 @@ public: State1Context(MachineContext *context):context(context) { printf("Entered State 1\n"); } ~State1Context() { printf("Left State 1\n"); } - Smach::event_result event1_handler(const Smach::event& x) + Smach::event_result event1_handler(const Smach::event& x __attribute__ ((unused))) { printf("STATE1: Received Event 1\n"); return Smach::RESULT_OK; @@ -124,19 +124,19 @@ public: State2Context(MachineContext *context):context(context) { printf("Entered State 2\n"); } ~State2Context() { printf("Left State 2\n"); } - Smach::event_result event1_handler(const Smach::event& x) + Smach::event_result event1_handler(const Smach::event& x __attribute__ ((unused))) { printf("STATE2: Received Event 1\n"); return Smach::RESULT_OK; } - Smach::event_result event2_handler(const Smach::event& x) + Smach::event_result event2_handler(const Smach::event& x __attribute__ ((unused))) { printf("STATE2: Received Event 2\n"); return Smach::RESULT_OK; } - Smach::event_result event3_handler(const Smach::event& x) + Smach::event_result event3_handler(const Smach::event& x __attribute__ ((unused))) { printf("STATE2: Received Event 3\n"); return Smach::RESULT_OK; @@ -156,7 +156,7 @@ public: } state_2; Smach::event_result -State1Context::event3_handler(const Smach::event& x) +State1Context::event3_handler(const Smach::event& x __attribute__ ((unused))) { printf("STATE1: Received Event 3, throwing state to change to...\n"); diff --git a/ETL/trunk/test/smart_ptr.cpp b/ETL/trunk/test/smart_ptr.cpp index 38cbd2f..0d3efc9 100644 --- a/ETL/trunk/test/smart_ptr.cpp +++ b/ETL/trunk/test/smart_ptr.cpp @@ -247,7 +247,7 @@ int smart_ptr_inheritance_test(void) return 0; } -void test_func(etl::smart_ptr smart_ptr) +void test_func(etl::smart_ptr smart_ptr __attribute__ ((unused))) { } -- 2.7.4