X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2Ftest%2Fsmach.cpp;h=bb5f48d152a840fd159e412c741c8889a6a378d6;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=7ef46ba54c998633ba25029d8d6a6501416a079d;hpb=36d01e1527fda602a9aed07d209eb34e6770bca8;p=synfig.git diff --git a/ETL/trunk/test/smach.cpp b/ETL/trunk/test/smach.cpp index 7ef46ba..bb5f48d 100644 --- a/ETL/trunk/test/smach.cpp +++ b/ETL/trunk/test/smach.cpp @@ -63,10 +63,10 @@ class DefaultStateContext { MachineContext *context; public: - DefaultStateContext(MachineContext *context):context(context) { printf("Enterted Default State\n"); } + 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; @@ -93,10 +93,10 @@ class State1Context { MachineContext *context; public: - State1Context(MachineContext *context):context(context) { printf("Enterted State 1\n"); } + 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; @@ -121,22 +121,22 @@ class State2Context { MachineContext *context; public: - State2Context(MachineContext *context):context(context) { printf("Enterted State 2\n"); } + 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");