summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-05 15:42:26 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-05 15:42:26 +0000
commit5c7967827b4ea8a202e6ef80974a4ece9d6799c3 (patch)
tree181672a99742b66009fc037f5cd9ce1a9b4599cd /src
parent7499e9dee07dde18b767e03656b0ce4ee3938e29 (diff)
efl: easy warning fixes.
SVN revision: 82277
Diffstat (limited to 'src')
-rw-r--r--src/bin/edje/edje_decc.c4
-rw-r--r--src/bin/efreet/efreetd_dbus.c2
-rw-r--r--src/lib/ecore_audio/ecore_audio_pulse.c12
-rw-r--r--src/lib/ecore_audio/ecore_audio_sndfile.c3
-rw-r--r--src/modules/evas/engines/software_x11/evas_xlib_swapbuf.c6
-rw-r--r--src/tests/efreet/ef_locale.c2
6 files changed, 16 insertions, 13 deletions
diff --git a/src/bin/edje/edje_decc.c b/src/bin/edje/edje_decc.c
index 1fe3660ab7..7fca546918 100644
--- a/src/bin/edje/edje_decc.c
+++ b/src/bin/edje/edje_decc.c
@@ -43,7 +43,7 @@ _edje_cc_log_cb(const Eina_Log_Domain *d,
43 Eina_Log_Level level, 43 Eina_Log_Level level,
44 const char *file, 44 const char *file,
45 const char *fnc, 45 const char *fnc,
46 int line, 46 int cur_line,
47 const char *fmt, 47 const char *fmt,
48 EINA_UNUSED void *data, 48 EINA_UNUSED void *data,
49 va_list args) 49 va_list args)
@@ -115,7 +115,7 @@ _edje_cc_log_cb(const Eina_Log_Domain *d,
115 putc('\n', stderr); 115 putc('\n', stderr);
116 } 116 }
117 else 117 else
118 eina_log_print_cb_stderr(d, level, file, fnc, line, fmt, NULL, args); 118 eina_log_print_cb_stderr(d, level, file, fnc, cur_line, fmt, NULL, args);
119} 119}
120 120
121static void 121static void
diff --git a/src/bin/efreet/efreetd_dbus.c b/src/bin/efreet/efreetd_dbus.c
index b5e98ad083..b9f1c6dfe1 100644
--- a/src/bin/efreet/efreetd_dbus.c
+++ b/src/bin/efreet/efreetd_dbus.c
@@ -40,7 +40,7 @@ disconnected(void *context EINA_UNUSED, EDBus_Connection *connection EINA_UNUSED
40} 40}
41 41
42static void 42static void
43client_name_owner_changed_cb(void *data, const char *bus, const char *old_id, const char *new_id) 43client_name_owner_changed_cb(void *data EINA_UNUSED, const char *bus, const char *old_id EINA_UNUSED, const char *new_id)
44{ 44{
45 if (new_id[0]) 45 if (new_id[0])
46 return; 46 return;
diff --git a/src/lib/ecore_audio/ecore_audio_pulse.c b/src/lib/ecore_audio/ecore_audio_pulse.c
index 3c85d16468..ce326c23e3 100644
--- a/src/lib/ecore_audio/ecore_audio_pulse.c
+++ b/src/lib/ecore_audio/ecore_audio_pulse.c
@@ -378,7 +378,7 @@ _pulse_output_write_cb(pa_stream *stream, size_t len, void *data)
378 Ecore_Audio_Input *in = (Ecore_Audio_Input *)data; 378 Ecore_Audio_Input *in = (Ecore_Audio_Input *)data;
379 379
380 void *buf; 380 void *buf;
381 int bread; 381 size_t bread;
382 382
383 buf = malloc(len); 383 buf = malloc(len);
384 384
@@ -422,7 +422,7 @@ _pulse_output_add_input(Ecore_Audio_Object *output, Ecore_Audio_Object *input)
422} 422}
423 423
424static void 424static void
425_pulse_drain_cb(pa_stream *stream, int success, void *data) 425_pulse_drain_cb(pa_stream *stream, int success EINA_UNUSED, void *data EINA_UNUSED)
426{ 426{
427 // XXX: Check success? 427 // XXX: Check success?
428 pa_stream_disconnect(stream); 428 pa_stream_disconnect(stream);
@@ -430,7 +430,7 @@ _pulse_drain_cb(pa_stream *stream, int success, void *data)
430} 430}
431 431
432static Eina_Bool 432static Eina_Bool
433_pulse_output_del_input(Ecore_Audio_Object *output, Ecore_Audio_Object *input) 433_pulse_output_del_input(Ecore_Audio_Object *output EINA_UNUSED, Ecore_Audio_Object *input)
434{ 434{
435 Ecore_Audio_Input *in = (Ecore_Audio_Input *)input; 435 Ecore_Audio_Input *in = (Ecore_Audio_Input *)input;
436 436
@@ -444,7 +444,7 @@ _pulse_output_del_input(Ecore_Audio_Object *output, Ecore_Audio_Object *input)
444} 444}
445 445
446static void 446static void
447_pulse_output_update_input_format(Ecore_Audio_Object *output, Ecore_Audio_Object *input) 447_pulse_output_update_input_format(Ecore_Audio_Object *output EINA_UNUSED, Ecore_Audio_Object *input)
448{ 448{
449 Ecore_Audio_Input *in = (Ecore_Audio_Input *)input; 449 Ecore_Audio_Input *in = (Ecore_Audio_Input *)input;
450 pa_stream *stream = (pa_stream *)in->obj_data; 450 pa_stream *stream = (pa_stream *)in->obj_data;
@@ -453,10 +453,10 @@ _pulse_output_update_input_format(Ecore_Audio_Object *output, Ecore_Audio_Object
453} 453}
454 454
455static int 455static int
456_pulse_input_read(Ecore_Audio_Object *input, void *data, int len) 456_pulse_input_read(Ecore_Audio_Object *input EINA_UNUSED, void *data EINA_UNUSED, int len EINA_UNUSED)
457{ 457{
458 // XXX: Implement 458 // XXX: Implement
459 Ecore_Audio_Input *in = (Ecore_Audio_Input *)input; 459 //Ecore_Audio_Input *in = (Ecore_Audio_Input *)input;
460 460
461 return 0; 461 return 0;
462} 462}
diff --git a/src/lib/ecore_audio/ecore_audio_sndfile.c b/src/lib/ecore_audio/ecore_audio_sndfile.c
index cdee2d597b..ee3a930bc1 100644
--- a/src/lib/ecore_audio/ecore_audio_sndfile.c
+++ b/src/lib/ecore_audio/ecore_audio_sndfile.c
@@ -310,6 +310,7 @@ _sndfile_output_write_cb(void *data)
310 310
311 // XXX: Check for errors 311 // XXX: Check for errors
312 written = sf_write_float(sndfile->handle, buf, bread/4)*4; 312 written = sf_write_float(sndfile->handle, buf, bread/4)*4;
313 DBG("written: %i", written);
313 314
314 return EINA_TRUE; 315 return EINA_TRUE;
315} 316}
@@ -360,7 +361,7 @@ _sndfile_output_del_input(Ecore_Audio_Object *out EINA_UNUSED, Ecore_Audio_Objec
360} 361}
361 362
362static void 363static void
363_sndfile_output_update_input_format(Ecore_Audio_Object *out, Ecore_Audio_Object *in) 364_sndfile_output_update_input_format(Ecore_Audio_Object *out EINA_UNUSED, Ecore_Audio_Object *in EINA_UNUSED)
364{ 365{
365} 366}
366 367
diff --git a/src/modules/evas/engines/software_x11/evas_xlib_swapbuf.c b/src/modules/evas/engines/software_x11/evas_xlib_swapbuf.c
index 95c1626c5f..ed36bd446c 100644
--- a/src/modules/evas/engines/software_x11/evas_xlib_swapbuf.c
+++ b/src/modules/evas/engines/software_x11/evas_xlib_swapbuf.c
@@ -48,7 +48,8 @@ Outbuf *
48evas_software_xlib_swapbuf_setup_x(int w, int h, int rot, Outbuf_Depth depth, 48evas_software_xlib_swapbuf_setup_x(int w, int h, int rot, Outbuf_Depth depth,
49 Display *disp, Drawable draw, Visual *vis, 49 Display *disp, Drawable draw, Visual *vis,
50 Colormap cmap, int x_depth, 50 Colormap cmap, int x_depth,
51 int grayscale, int max_colors, Pixmap mask, 51 int grayscale, int max_colors,
52 Pixmap mask EINA_UNUSED,
52 int shape_dither, int destination_alpha) 53 int shape_dither, int destination_alpha)
53{ 54{
54 Outbuf *buf; 55 Outbuf *buf;
@@ -396,10 +397,9 @@ evas_software_xlib_swapbuf_flush(Outbuf *buf)
396} 397}
397 398
398void 399void
399evas_software_xlib_swapbuf_idle_flush(Outbuf *buf) 400evas_software_xlib_swapbuf_idle_flush(Outbuf *buf EINA_UNUSED)
400{ 401{
401 return; 402 return;
402 buf = NULL;
403} 403}
404 404
405void 405void
diff --git a/src/tests/efreet/ef_locale.c b/src/tests/efreet/ef_locale.c
index f678580fef..1dcce2eaa1 100644
--- a/src/tests/efreet/ef_locale.c
+++ b/src/tests/efreet/ef_locale.c
@@ -1,4 +1,6 @@
1#include "Efreet.h" 1#include "Efreet.h"
2#define EFREET_MODULE_LOG_DOM /* no logging in this file */
3#include "efreet_private.h"
2#include <stdlib.h> 4#include <stdlib.h>
3#include <stdio.h> 5#include <stdio.h>
4#include <string.h> 6#include <string.h>