More unused parameters - in ETL this time.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 27 Jan 2008 15:29:47 +0000 (15:29 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 27 Jan 2008 15:29:47 +0000 (15:29 +0000)
git-svn-id: http://svn.voria.com/code@1514 1f10aa63-cdf2-0310-b900-c93c546f37ac

ETL/trunk/ETL/_random.h
ETL/trunk/test/smach.cpp
ETL/trunk/test/smart_ptr.cpp

index 73efa08..c358dfc 100644 (file)
@@ -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)
index 3f28a06..bb5f48d 100644 (file)
@@ -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");
 
index 38cbd2f..0d3efc9 100644 (file)
@@ -247,7 +247,7 @@ int smart_ptr_inheritance_test(void)
        return 0;
 }
 
-void test_func(etl::smart_ptr<my_test_obj> smart_ptr)
+void test_func(etl::smart_ptr<my_test_obj> smart_ptr __attribute__ ((unused)))
 {
 }