diff options
author | Stefan Schmidt <s.schmidt@samsung.com> | 2014-10-28 17:01:07 +0100 |
---|---|---|
committer | Stefan Schmidt <s.schmidt@samsung.com> | 2014-11-11 11:10:11 +0100 |
commit | 1eb4ffcc4dc3bd84943767ed9b7a8da80153a1bb (patch) | |
tree | 0198824c69d3b135d2a5c24c73e43bae3e142782 /src/lib/elocation/elocation.c | |
parent | c389e36ef5951fcc150782c3453afdf9e813e366 (diff) |
elocation: Mute all unused parameter warnings
The signature is given by the callback so the only thing we can do here is to
mute the warnings.
Diffstat (limited to '')
-rw-r--r-- | src/lib/elocation/elocation.c | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/src/lib/elocation/elocation.c b/src/lib/elocation/elocation.c index a14d19e483..31065dc0ef 100644 --- a/src/lib/elocation/elocation.c +++ b/src/lib/elocation/elocation.c | |||
@@ -54,7 +54,7 @@ EAPI int ELOCATION_EVENT_POI; | |||
54 | EAPI int ELOCATION_EVENT_META_READY; | 54 | EAPI int ELOCATION_EVENT_META_READY; |
55 | 55 | ||
56 | static void | 56 | static void |
57 | _dummy_free(void *user_data, void *func_data) | 57 | _dummy_free(void *user_data EINA_UNUSED, void *func_data EINA_UNUSED) |
58 | { | 58 | { |
59 | /* Don't free the event data after dispatching the event. We keep track of | 59 | /* Don't free the event data after dispatching the event. We keep track of |
60 | * it on our own | 60 | * it on our own |
@@ -80,7 +80,7 @@ unmarshall_provider(const Eldbus_Message *reply, Elocation_Provider *provider) | |||
80 | } | 80 | } |
81 | 81 | ||
82 | static void | 82 | static void |
83 | meta_address_provider_info_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | 83 | meta_address_provider_info_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED) |
84 | { | 84 | { |
85 | const char *err, *errmsg; | 85 | const char *err, *errmsg; |
86 | Elocation_Provider *addr_provider; | 86 | Elocation_Provider *addr_provider; |
@@ -106,7 +106,7 @@ meta_address_provider_info_cb(void *data, const Eldbus_Message *reply, Eldbus_Pe | |||
106 | } | 106 | } |
107 | 107 | ||
108 | static void | 108 | static void |
109 | meta_position_provider_info_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | 109 | meta_position_provider_info_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED) |
110 | { | 110 | { |
111 | const char *err, *errmsg; | 111 | const char *err, *errmsg; |
112 | Elocation_Provider *pos_provider; | 112 | Elocation_Provider *pos_provider; |
@@ -253,7 +253,7 @@ unmarshall_address(const Eldbus_Message *reply, Elocation_Address *addr) | |||
253 | * variable set of key value pairs so we need to handle this with care | 253 | * variable set of key value pairs so we need to handle this with care |
254 | */ | 254 | */ |
255 | static void | 255 | static void |
256 | rgeocode_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | 256 | rgeocode_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED) |
257 | { | 257 | { |
258 | const char *err, *errmsg; | 258 | const char *err, *errmsg; |
259 | 259 | ||
@@ -277,7 +277,7 @@ rgeocode_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | |||
277 | * not in standard GeoClue but currently a Tizen extension. | 277 | * not in standard GeoClue but currently a Tizen extension. |
278 | */ | 278 | */ |
279 | static void | 279 | static void |
280 | poi_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | 280 | poi_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED) |
281 | { | 281 | { |
282 | int32_t count, id, rank; | 282 | int32_t count, id, rank; |
283 | double lat, lon, bound_left, bound_top, bound_right, bound_bottom; | 283 | double lat, lon, bound_left, bound_top, bound_right, bound_bottom; |
@@ -316,7 +316,7 @@ poi_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | |||
316 | 316 | ||
317 | /* Unmarshall a GeoCode message */ | 317 | /* Unmarshall a GeoCode message */ |
318 | static void | 318 | static void |
319 | geocode_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | 319 | geocode_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED) |
320 | { | 320 | { |
321 | GeocluePositionFields fields; | 321 | GeocluePositionFields fields; |
322 | int32_t level; | 322 | int32_t level; |
@@ -364,7 +364,7 @@ geocode_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | |||
364 | } | 364 | } |
365 | 365 | ||
366 | static void | 366 | static void |
367 | address_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | 367 | address_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED) |
368 | { | 368 | { |
369 | const char *err, *errmsg; | 369 | const char *err, *errmsg; |
370 | 370 | ||
@@ -385,7 +385,7 @@ address_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | |||
385 | } | 385 | } |
386 | 386 | ||
387 | static void | 387 | static void |
388 | address_signal_cb(void *data, const Eldbus_Message *reply) | 388 | address_signal_cb(void *data EINA_UNUSED, const Eldbus_Message *reply) |
389 | { | 389 | { |
390 | const char *err, *errmsg; | 390 | const char *err, *errmsg; |
391 | 391 | ||
@@ -444,7 +444,7 @@ unmarshall_velocity(const Eldbus_Message *reply) | |||
444 | } | 444 | } |
445 | 445 | ||
446 | static void | 446 | static void |
447 | velocity_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | 447 | velocity_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED) |
448 | { | 448 | { |
449 | const char *err, *errmsg; | 449 | const char *err, *errmsg; |
450 | 450 | ||
@@ -465,7 +465,7 @@ velocity_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | |||
465 | } | 465 | } |
466 | 466 | ||
467 | static void | 467 | static void |
468 | velocity_signal_cb(void *data, const Eldbus_Message *reply) | 468 | velocity_signal_cb(void *data EINA_UNUSED, const Eldbus_Message *reply) |
469 | { | 469 | { |
470 | if (!unmarshall_velocity(reply)) | 470 | if (!unmarshall_velocity(reply)) |
471 | { | 471 | { |
@@ -495,7 +495,7 @@ unmarshall_nmea(const Eldbus_Message *reply) | |||
495 | } | 495 | } |
496 | 496 | ||
497 | static void | 497 | static void |
498 | nmea_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | 498 | nmea_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED) |
499 | { | 499 | { |
500 | const char *err, *errmsg; | 500 | const char *err, *errmsg; |
501 | 501 | ||
@@ -516,7 +516,7 @@ nmea_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | |||
516 | } | 516 | } |
517 | 517 | ||
518 | static void | 518 | static void |
519 | nmea_signal_cb(void *data, const Eldbus_Message *reply) | 519 | nmea_signal_cb(void *data EINA_UNUSED, const Eldbus_Message *reply) |
520 | { | 520 | { |
521 | if (!unmarshall_nmea(reply)) | 521 | if (!unmarshall_nmea(reply)) |
522 | { | 522 | { |
@@ -561,7 +561,7 @@ unmarshall_satellite(const Eldbus_Message *reply) | |||
561 | } | 561 | } |
562 | 562 | ||
563 | static void | 563 | static void |
564 | satellite_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | 564 | satellite_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED) |
565 | { | 565 | { |
566 | const char *err, *errmsg; | 566 | const char *err, *errmsg; |
567 | 567 | ||
@@ -582,7 +582,7 @@ satellite_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | |||
582 | } | 582 | } |
583 | 583 | ||
584 | static void | 584 | static void |
585 | last_satellite_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | 585 | last_satellite_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED) |
586 | { | 586 | { |
587 | const char *err, *errmsg; | 587 | const char *err, *errmsg; |
588 | 588 | ||
@@ -603,7 +603,7 @@ last_satellite_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pendi | |||
603 | } | 603 | } |
604 | 604 | ||
605 | static void | 605 | static void |
606 | satellite_signal_cb(void *data, const Eldbus_Message *reply) | 606 | satellite_signal_cb(void *data EINA_UNUSED, const Eldbus_Message *reply) |
607 | { | 607 | { |
608 | if (!unmarshall_satellite(reply)) | 608 | if (!unmarshall_satellite(reply)) |
609 | { | 609 | { |
@@ -662,7 +662,7 @@ unmarshall_position(const Eldbus_Message *reply) | |||
662 | } | 662 | } |
663 | 663 | ||
664 | static void | 664 | static void |
665 | position_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | 665 | position_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED) |
666 | { | 666 | { |
667 | const char *err, *errmsg; | 667 | const char *err, *errmsg; |
668 | 668 | ||
@@ -683,7 +683,7 @@ position_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | |||
683 | } | 683 | } |
684 | 684 | ||
685 | static void | 685 | static void |
686 | position_signal_cb(void *data, const Eldbus_Message *reply) | 686 | position_signal_cb(void *data EINA_UNUSED, const Eldbus_Message *reply) |
687 | { | 687 | { |
688 | if (!unmarshall_position(reply)) | 688 | if (!unmarshall_position(reply)) |
689 | { | 689 | { |
@@ -696,21 +696,21 @@ position_signal_cb(void *data, const Eldbus_Message *reply) | |||
696 | } | 696 | } |
697 | 697 | ||
698 | static Eina_Bool | 698 | static Eina_Bool |
699 | geoclue_start(void *data, int ev_type, void *event) | 699 | geoclue_start(void *data EINA_UNUSED, int ev_type EINA_UNUSED, void *event EINA_UNUSED) |
700 | { | 700 | { |
701 | DBG("GeoClue start event at %s", unique_name); | 701 | DBG("GeoClue start event at %s", unique_name); |
702 | return ECORE_CALLBACK_DONE; | 702 | return ECORE_CALLBACK_DONE; |
703 | } | 703 | } |
704 | 704 | ||
705 | static Eina_Bool | 705 | static Eina_Bool |
706 | geoclue_stop(void *data, int ev_type, void *event) | 706 | geoclue_stop(void *data EINA_UNUSED, int ev_type EINA_UNUSED, void *event EINA_UNUSED) |
707 | { | 707 | { |
708 | DBG("GeoClue stop event"); | 708 | DBG("GeoClue stop event"); |
709 | return ECORE_CALLBACK_DONE; | 709 | return ECORE_CALLBACK_DONE; |
710 | } | 710 | } |
711 | 711 | ||
712 | static void | 712 | static void |
713 | _reference_add_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | 713 | _reference_add_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED) |
714 | { | 714 | { |
715 | const char *err, *errmsg; | 715 | const char *err, *errmsg; |
716 | 716 | ||
@@ -724,13 +724,13 @@ _reference_add_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pendi | |||
724 | } | 724 | } |
725 | 725 | ||
726 | static void | 726 | static void |
727 | _reference_del_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | 727 | _reference_del_cb(void *data EINA_UNUSED, const Eldbus_Message *reply EINA_UNUSED, Eldbus_Pending *pending EINA_UNUSED) |
728 | { | 728 | { |
729 | /* Dummy callback. We are not waiting for any reply here on shutdown */ | 729 | /* Dummy callback. We are not waiting for any reply here on shutdown */ |
730 | } | 730 | } |
731 | 731 | ||
732 | static void | 732 | static void |
733 | status_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | 733 | status_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED) |
734 | { | 734 | { |
735 | const char *err, *errmsg; | 735 | const char *err, *errmsg; |
736 | 736 | ||
@@ -755,7 +755,7 @@ status_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | |||
755 | } | 755 | } |
756 | 756 | ||
757 | static void | 757 | static void |
758 | status_signal_cb(void *data, const Eldbus_Message *reply) | 758 | status_signal_cb(void *data EINA_UNUSED, const Eldbus_Message *reply) |
759 | { | 759 | { |
760 | /* We need this to be malloced to be passed to ecore_event_add. Or provide a dummy free callback. */ | 760 | /* We need this to be malloced to be passed to ecore_event_add. Or provide a dummy free callback. */ |
761 | status = malloc(sizeof(*status)); | 761 | status = malloc(sizeof(*status)); |
@@ -772,7 +772,7 @@ status_signal_cb(void *data, const Eldbus_Message *reply) | |||
772 | } | 772 | } |
773 | 773 | ||
774 | static void | 774 | static void |
775 | _dummy_cb(void *data, const Eldbus_Message *msg, Eldbus_Pending *pending) | 775 | _dummy_cb(void *data EINA_UNUSED, const Eldbus_Message *msg EINA_UNUSED, Eldbus_Pending *pending EINA_UNUSED) |
776 | { | 776 | { |
777 | } | 777 | } |
778 | 778 | ||
@@ -784,7 +784,7 @@ _dummy_cb(void *data, const Eldbus_Message *msg, Eldbus_Pending *pending) | |||
784 | * to eager aplications. | 784 | * to eager aplications. |
785 | */ | 785 | */ |
786 | static void | 786 | static void |
787 | create_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | 787 | create_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED) |
788 | { | 788 | { |
789 | const char *object_path; | 789 | const char *object_path; |
790 | Eina_Bool updates; | 790 | Eina_Bool updates; |
@@ -964,7 +964,7 @@ create_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) | |||
964 | } | 964 | } |
965 | 965 | ||
966 | static void | 966 | static void |
967 | _name_owner_changed(void *data, const char *bus, const char *old, const char *new) | 967 | _name_owner_changed(void *data EINA_UNUSED, const char *bus EINA_UNUSED, const char *old, const char *new) |
968 | { | 968 | { |
969 | if (old[0] == '\0' && new[0] != '\0') | 969 | if (old[0] == '\0' && new[0] != '\0') |
970 | { | 970 | { |
@@ -986,7 +986,7 @@ _name_owner_changed(void *data, const char *bus, const char *old, const char *ne | |||
986 | 986 | ||
987 | /* Public API function to request a landmarks position based on an address object */ | 987 | /* Public API function to request a landmarks position based on an address object */ |
988 | EAPI Eina_Bool | 988 | EAPI Eina_Bool |
989 | elocation_landmarks_get(Elocation_Position *position_shadow, Elocation_Address *address_shadow) | 989 | elocation_landmarks_get(Elocation_Position *position_shadow EINA_UNUSED, Elocation_Address *address_shadow EINA_UNUSED) |
990 | { | 990 | { |
991 | Eldbus_Message *msg; | 991 | Eldbus_Message *msg; |
992 | Eldbus_Message_Iter *iter; | 992 | Eldbus_Message_Iter *iter; |
@@ -1016,7 +1016,7 @@ elocation_landmarks_get(Elocation_Position *position_shadow, Elocation_Address * | |||
1016 | 1016 | ||
1017 | /* Public API function to get an address from a position */ | 1017 | /* Public API function to get an address from a position */ |
1018 | EAPI Eina_Bool | 1018 | EAPI Eina_Bool |
1019 | elocation_position_to_address(Elocation_Position *position_shadow, Elocation_Address *address_shadow) | 1019 | elocation_position_to_address(Elocation_Position *position_shadow, Elocation_Address *address_shadow EINA_UNUSED) |
1020 | { | 1020 | { |
1021 | Eldbus_Message *msg; | 1021 | Eldbus_Message *msg; |
1022 | Eldbus_Message_Iter *iter, *structure; | 1022 | Eldbus_Message_Iter *iter, *structure; |
@@ -1042,7 +1042,7 @@ elocation_position_to_address(Elocation_Position *position_shadow, Elocation_Add | |||
1042 | 1042 | ||
1043 | /* Public API function to get a position from and address */ | 1043 | /* Public API function to get a position from and address */ |
1044 | EAPI Eina_Bool | 1044 | EAPI Eina_Bool |
1045 | elocation_address_to_position(Elocation_Address *address_shadow, Elocation_Position *position_shadow) | 1045 | elocation_address_to_position(Elocation_Address *address_shadow, Elocation_Position *position_shadow EINA_UNUSED) |
1046 | { | 1046 | { |
1047 | Eldbus_Message *msg; | 1047 | Eldbus_Message *msg; |
1048 | Eldbus_Message_Iter *iter, *array; | 1048 | Eldbus_Message_Iter *iter, *array; |
@@ -1097,7 +1097,7 @@ elocation_address_to_position(Elocation_Address *address_shadow, Elocation_Posit | |||
1097 | * address | 1097 | * address |
1098 | */ | 1098 | */ |
1099 | EAPI Eina_Bool | 1099 | EAPI Eina_Bool |
1100 | elocation_freeform_address_to_position(const char *freeform_address, Elocation_Position *position_shadow) | 1100 | elocation_freeform_address_to_position(const char *freeform_address, Elocation_Position *position_shadow EINA_UNUSED) |
1101 | { | 1101 | { |
1102 | if (!eldbus_proxy_call(geonames_geocode, "FreeformAddressToPosition", geocode_cb, NULL, -1, "s", freeform_address)) | 1102 | if (!eldbus_proxy_call(geonames_geocode, "FreeformAddressToPosition", geocode_cb, NULL, -1, "s", freeform_address)) |
1103 | { | 1103 | { |