summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2016-12-06 14:33:24 +0100
committerStefan Schmidt <stefan@osg.samsung.com>2016-12-06 17:16:24 +0100
commite90622ec41460165192b98ec2fe1aacda61937bc (patch)
treebc3f0fa2ad3856cb2fed947244adaa3662c83db8
parent9d37fa2b8be5abcadaad14a7c4b3fe02afafc0ac (diff)
all: use void if we really want to make sure we do not accept parameters
In C we need this to make clear that we really do not accept parameters. Found by the smatch source code matcher. I had run and fixed this before but it seems to creep in again over time.
-rw-r--r--src/lib/efl/interfaces/efl_model_common.c2
-rw-r--r--src/lib/eina/eina_debug_monitor.c2
-rw-r--r--src/lib/eo/eo_add_fallback.c2
-rw-r--r--src/lib/evas/canvas/evas_canvas3d_eet.c6
-rw-r--r--src/lib/evas/canvas/evas_gl.c2
-rw-r--r--src/lib/evas/common3d/save_load/evas_model_load_save_common.c2
-rw-r--r--src/lib/evas/cserve2/evas_cs2_client.c4
-rw-r--r--src/lib/evas/filters/evas_filter.c4
-rw-r--r--src/lib/evas/main.c2
-rw-r--r--src/modules/evas/model_loaders/obj/evas_model_load_obj.c2
-rw-r--r--src/static_libs/draw/draw_main.c2
-rw-r--r--src/static_libs/draw/draw_main_neon.c2
12 files changed, 16 insertions, 16 deletions
diff --git a/src/lib/efl/interfaces/efl_model_common.c b/src/lib/efl/interfaces/efl_model_common.c
index 3b32205..afe6a04 100644
--- a/src/lib/efl/interfaces/efl_model_common.c
+++ b/src/lib/efl/interfaces/efl_model_common.c
@@ -22,7 +22,7 @@ static const char EFL_MODEL_ERROR_PERMISSION_DENIED_STR[] = "Permission denied";
22static const char EFL_MODEL_ERROR_INCORRECT_VALUE_STR[] = "Incorrect value"; 22static const char EFL_MODEL_ERROR_INCORRECT_VALUE_STR[] = "Incorrect value";
23 23
24EAPI int 24EAPI int
25efl_model_init() 25efl_model_init(void)
26{ 26{
27 EFL_MODEL_ERROR_INCORRECT_VALUE = eina_error_msg_static_register( 27 EFL_MODEL_ERROR_INCORRECT_VALUE = eina_error_msg_static_register(
28 EFL_MODEL_ERROR_INCORRECT_VALUE_STR); 28 EFL_MODEL_ERROR_INCORRECT_VALUE_STR);
diff --git a/src/lib/eina/eina_debug_monitor.c b/src/lib/eina/eina_debug_monitor.c
index ed65a34..06e939b 100644
--- a/src/lib/eina/eina_debug_monitor.c
+++ b/src/lib/eina/eina_debug_monitor.c
@@ -648,7 +648,7 @@ _eina_debug_monitor_signal_init(void)
648} 648}
649 649
650static const char * 650static const char *
651_socket_home_get() 651_socket_home_get(void)
652{ 652{
653 // get possible debug daemon socket directory base 653 // get possible debug daemon socket directory base
654 const char *dir = getenv("XDG_RUNTIME_DIR"); 654 const char *dir = getenv("XDG_RUNTIME_DIR");
diff --git a/src/lib/eo/eo_add_fallback.c b/src/lib/eo/eo_add_fallback.c
index e00d7e8..c38a827 100644
--- a/src/lib/eo/eo_add_fallback.c
+++ b/src/lib/eo/eo_add_fallback.c
@@ -64,7 +64,7 @@ _eo_call_stack_mem_free(void *ptr, size_t size)
64} 64}
65 65
66static Efl_Object_Call_Stack * 66static Efl_Object_Call_Stack *
67_eo_call_stack_create() 67_eo_call_stack_create(void)
68{ 68{
69 Efl_Object_Call_Stack *stack; 69 Efl_Object_Call_Stack *stack;
70 70
diff --git a/src/lib/evas/canvas/evas_canvas3d_eet.c b/src/lib/evas/canvas/evas_canvas3d_eet.c
index 0c43e06..ca24450 100644
--- a/src/lib/evas/canvas/evas_canvas3d_eet.c
+++ b/src/lib/evas/canvas/evas_canvas3d_eet.c
@@ -27,7 +27,7 @@ _evas_canvas3d_eet_file_new(void)
27} 27}
28 28
29Eet_Data_Descriptor* 29Eet_Data_Descriptor*
30_evas_canvas3d_eet_file_get() 30_evas_canvas3d_eet_file_get(void)
31{ 31{
32 if(_file_descriptor == NULL) 32 if(_file_descriptor == NULL)
33 _evas_canvas3d_eet_file_init(); 33 _evas_canvas3d_eet_file_init();
@@ -35,7 +35,7 @@ _evas_canvas3d_eet_file_get()
35 return _file_descriptor; 35 return _file_descriptor;
36} 36}
37void 37void
38_evas_canvas3d_eet_file_init() 38_evas_canvas3d_eet_file_init(void)
39{ 39{
40/* initialization of bonding between structure units in eet file */ 40/* initialization of bonding between structure units in eet file */
41 Eet_Data_Descriptor_Class eddc; 41 Eet_Data_Descriptor_Class eddc;
@@ -158,7 +158,7 @@ _evas_canvas3d_eet_file_init()
158} 158}
159 159
160void 160void
161_evas_canvas3d_eet_descriptor_shutdown() 161_evas_canvas3d_eet_descriptor_shutdown(void)
162{ 162{
163 eet_data_descriptor_free(_geometry_descriptor); 163 eet_data_descriptor_free(_geometry_descriptor);
164 _geometry_descriptor = NULL; 164 _geometry_descriptor = NULL;
diff --git a/src/lib/evas/canvas/evas_gl.c b/src/lib/evas/canvas/evas_gl.c
index 5a71f12..0f4760c 100644
--- a/src/lib/evas/canvas/evas_gl.c
+++ b/src/lib/evas/canvas/evas_gl.c
@@ -196,7 +196,7 @@ evas_gl_free(Evas_GL *evas_gl)
196} 196}
197 197
198EAPI Evas_GL_Config * 198EAPI Evas_GL_Config *
199evas_gl_config_new() 199evas_gl_config_new(void)
200{ 200{
201 Evas_GL_Config *cfg; 201 Evas_GL_Config *cfg;
202 202
diff --git a/src/lib/evas/common3d/save_load/evas_model_load_save_common.c b/src/lib/evas/common3d/save_load/evas_model_load_save_common.c
index 8c12914..925793b 100644
--- a/src/lib/evas/common3d/save_load/evas_model_load_save_common.c
+++ b/src/lib/evas/common3d/save_load/evas_model_load_save_common.c
@@ -26,7 +26,7 @@
26 26
27/* create new header */ 27/* create new header */
28Evas_Model_Load_Save_Header 28Evas_Model_Load_Save_Header
29evas_model_load_save_header_new() 29evas_model_load_save_header_new(void)
30{ 30{
31 Evas_Model_Load_Save_Header header; 31 Evas_Model_Load_Save_Header header;
32 32
diff --git a/src/lib/evas/cserve2/evas_cs2_client.c b/src/lib/evas/cserve2/evas_cs2_client.c
index 62f0bfe..626d79e 100644
--- a/src/lib/evas/cserve2/evas_cs2_client.c
+++ b/src/lib/evas/cserve2/evas_cs2_client.c
@@ -306,7 +306,7 @@ _shared_index_close(Shared_Index *si)
306} 306}
307 307
308static void 308static void
309_shared_index_close_all() 309_shared_index_close_all(void)
310{ 310{
311 DBG("Closing all index files"); 311 DBG("Closing all index files");
312 if (_index.strings_entries.f) 312 if (_index.strings_entries.f)
@@ -325,7 +325,7 @@ _shared_index_close_all()
325} 325}
326 326
327static Eina_Bool 327static Eina_Bool
328_server_reconnect() 328_server_reconnect(void)
329{ 329{
330 _shared_index_close_all(); 330 _shared_index_close_all();
331 331
diff --git a/src/lib/evas/filters/evas_filter.c b/src/lib/evas/filters/evas_filter.c
index 8c9bdc8..63ab6a3 100644
--- a/src/lib/evas/filters/evas_filter.c
+++ b/src/lib/evas/filters/evas_filter.c
@@ -1622,14 +1622,14 @@ static int init_cnt = 0;
1622int _evas_filter_log_dom = 0; 1622int _evas_filter_log_dom = 0;
1623 1623
1624void 1624void
1625evas_filter_init() 1625evas_filter_init(void)
1626{ 1626{
1627 if ((init_cnt++) > 0) return; 1627 if ((init_cnt++) > 0) return;
1628 _evas_filter_log_dom = eina_log_domain_register("evas_filter", EVAS_FILTER_LOG_COLOR); 1628 _evas_filter_log_dom = eina_log_domain_register("evas_filter", EVAS_FILTER_LOG_COLOR);
1629} 1629}
1630 1630
1631void 1631void
1632evas_filter_shutdown() 1632evas_filter_shutdown(void)
1633{ 1633{
1634 if ((--init_cnt) > 0) return; 1634 if ((--init_cnt) > 0) return;
1635 evas_filter_parser_shutdown(); 1635 evas_filter_parser_shutdown();
diff --git a/src/lib/evas/main.c b/src/lib/evas/main.c
index e59877c..8c31d8e 100644
--- a/src/lib/evas/main.c
+++ b/src/lib/evas/main.c
@@ -50,7 +50,7 @@ evas_mem_calloc(int size)
50} 50}
51 51
52static void 52static void
53_evas_debug_init_from_env() 53_evas_debug_init_from_env(void)
54{ 54{
55 const char *tmp = getenv("EVAS_DEBUG_SHOW"); 55 const char *tmp = getenv("EVAS_DEBUG_SHOW");
56 if (tmp) 56 if (tmp)
diff --git a/src/modules/evas/model_loaders/obj/evas_model_load_obj.c b/src/modules/evas/model_loaders/obj/evas_model_load_obj.c
index 3ec4ed5..2b18c61 100644
--- a/src/modules/evas/model_loaders/obj/evas_model_load_obj.c
+++ b/src/modules/evas/model_loaders/obj/evas_model_load_obj.c
@@ -48,7 +48,7 @@ struct _OBJ_Counts
48 48
49/* create new counter */ 49/* create new counter */
50static inline OBJ_Counts 50static inline OBJ_Counts
51_new_count_elements() 51_new_count_elements(void)
52{ 52{
53 OBJ_Counts counts; 53 OBJ_Counts counts;
54 54
diff --git a/src/static_libs/draw/draw_main.c b/src/static_libs/draw/draw_main.c
index 3d92063..40b32e9 100644
--- a/src/static_libs/draw/draw_main.c
+++ b/src/static_libs/draw/draw_main.c
@@ -278,7 +278,7 @@ efl_draw_func_span_get(Efl_Gfx_Render_Op op, uint32_t color, Eina_Bool src_alpha
278} 278}
279 279
280int 280int
281efl_draw_init() 281efl_draw_init(void)
282{ 282{
283 static int i = 0; 283 static int i = 0;
284 if (!(i++)) 284 if (!(i++))
diff --git a/src/static_libs/draw/draw_main_neon.c b/src/static_libs/draw/draw_main_neon.c
index 0441147..24b3d01 100644
--- a/src/static_libs/draw/draw_main_neon.c
+++ b/src/static_libs/draw/draw_main_neon.c
@@ -214,7 +214,7 @@ comp_func_source_over_sse2(uint32_t * __restrict dest, const uint32_t * __restri
214#endif 214#endif
215 215
216void 216void
217efl_draw_neon_init() 217efl_draw_neon_init(void)
218{ 218{
219#ifdef BUILD_NEON 219#ifdef BUILD_NEON
220 if (eina_cpu_features_get() & EINA_CPU_NEON) 220 if (eina_cpu_features_get() & EINA_CPU_NEON)