diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/edje/src/lib/edje_multisense.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libraries/edje/src/lib/edje_multisense.c b/libraries/edje/src/lib/edje_multisense.c index f9c7f91..f3324e7 100644 --- a/libraries/edje/src/lib/edje_multisense.c +++ b/libraries/edje/src/lib/edje_multisense.c | |||
@@ -351,8 +351,10 @@ _edje_multisense_internal_sound_sample_play(Edje *ed, const char *sample_name, c | |||
351 | command.type.sample.speed = speed; | 351 | command.type.sample.speed = speed; |
352 | size = write(command_pipe[1], &command, sizeof(command)); | 352 | size = write(command_pipe[1], &command, sizeof(command)); |
353 | #else | 353 | #else |
354 | ed = NULL; // warning shh | 354 | // warning shh |
355 | if (speed > 0) sample_name = NULL; // warning shh | 355 | (void) ed; |
356 | (void) sample_name; | ||
357 | (void) speed; | ||
356 | #endif | 358 | #endif |
357 | return (size == sizeof(Edje_Multisense_Sound_Action)); | 359 | return (size == sizeof(Edje_Multisense_Sound_Action)); |
358 | } | 360 | } |
@@ -371,8 +373,10 @@ _edje_multisense_internal_sound_tone_play(Edje *ed, const char *tone_name, const | |||
371 | command.type.tone.duration = duration; | 373 | command.type.tone.duration = duration; |
372 | size = write(command_pipe[1], &command, sizeof(command)); | 374 | size = write(command_pipe[1], &command, sizeof(command)); |
373 | #else | 375 | #else |
374 | ed = NULL; // warning shh | 376 | // warning shh |
375 | if (duration > 0) tone_name = NULL; // warning shh | 377 | (void) ed; |
378 | (void) duration; | ||
379 | (void) tone_name; | ||
376 | #endif | 380 | #endif |
377 | return (size == sizeof(Edje_Multisense_Sound_Action)); | 381 | return (size == sizeof(Edje_Multisense_Sound_Action)); |
378 | 382 | ||