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.
This commit is contained in:
Stefan Schmidt 2016-12-06 14:33:24 +01:00
parent 9d37fa2b8b
commit e90622ec41
12 changed files with 16 additions and 16 deletions

View File

@ -22,7 +22,7 @@ static const char EFL_MODEL_ERROR_PERMISSION_DENIED_STR[] = "Permission denied";
static const char EFL_MODEL_ERROR_INCORRECT_VALUE_STR[] = "Incorrect value"; static const char EFL_MODEL_ERROR_INCORRECT_VALUE_STR[] = "Incorrect value";
EAPI int EAPI int
efl_model_init() efl_model_init(void)
{ {
EFL_MODEL_ERROR_INCORRECT_VALUE = eina_error_msg_static_register( EFL_MODEL_ERROR_INCORRECT_VALUE = eina_error_msg_static_register(
EFL_MODEL_ERROR_INCORRECT_VALUE_STR); EFL_MODEL_ERROR_INCORRECT_VALUE_STR);

View File

@ -648,7 +648,7 @@ _eina_debug_monitor_signal_init(void)
} }
static const char * static const char *
_socket_home_get() _socket_home_get(void)
{ {
// get possible debug daemon socket directory base // get possible debug daemon socket directory base
const char *dir = getenv("XDG_RUNTIME_DIR"); const char *dir = getenv("XDG_RUNTIME_DIR");

View File

@ -64,7 +64,7 @@ _eo_call_stack_mem_free(void *ptr, size_t size)
} }
static Efl_Object_Call_Stack * static Efl_Object_Call_Stack *
_eo_call_stack_create() _eo_call_stack_create(void)
{ {
Efl_Object_Call_Stack *stack; Efl_Object_Call_Stack *stack;

View File

@ -27,7 +27,7 @@ _evas_canvas3d_eet_file_new(void)
} }
Eet_Data_Descriptor* Eet_Data_Descriptor*
_evas_canvas3d_eet_file_get() _evas_canvas3d_eet_file_get(void)
{ {
if(_file_descriptor == NULL) if(_file_descriptor == NULL)
_evas_canvas3d_eet_file_init(); _evas_canvas3d_eet_file_init();
@ -35,7 +35,7 @@ _evas_canvas3d_eet_file_get()
return _file_descriptor; return _file_descriptor;
} }
void void
_evas_canvas3d_eet_file_init() _evas_canvas3d_eet_file_init(void)
{ {
/* initialization of bonding between structure units in eet file */ /* initialization of bonding between structure units in eet file */
Eet_Data_Descriptor_Class eddc; Eet_Data_Descriptor_Class eddc;
@ -158,7 +158,7 @@ _evas_canvas3d_eet_file_init()
} }
void void
_evas_canvas3d_eet_descriptor_shutdown() _evas_canvas3d_eet_descriptor_shutdown(void)
{ {
eet_data_descriptor_free(_geometry_descriptor); eet_data_descriptor_free(_geometry_descriptor);
_geometry_descriptor = NULL; _geometry_descriptor = NULL;

View File

@ -196,7 +196,7 @@ evas_gl_free(Evas_GL *evas_gl)
} }
EAPI Evas_GL_Config * EAPI Evas_GL_Config *
evas_gl_config_new() evas_gl_config_new(void)
{ {
Evas_GL_Config *cfg; Evas_GL_Config *cfg;

View File

@ -26,7 +26,7 @@
/* create new header */ /* create new header */
Evas_Model_Load_Save_Header Evas_Model_Load_Save_Header
evas_model_load_save_header_new() evas_model_load_save_header_new(void)
{ {
Evas_Model_Load_Save_Header header; Evas_Model_Load_Save_Header header;

View File

@ -306,7 +306,7 @@ _shared_index_close(Shared_Index *si)
} }
static void static void
_shared_index_close_all() _shared_index_close_all(void)
{ {
DBG("Closing all index files"); DBG("Closing all index files");
if (_index.strings_entries.f) if (_index.strings_entries.f)
@ -325,7 +325,7 @@ _shared_index_close_all()
} }
static Eina_Bool static Eina_Bool
_server_reconnect() _server_reconnect(void)
{ {
_shared_index_close_all(); _shared_index_close_all();

View File

@ -1622,14 +1622,14 @@ static int init_cnt = 0;
int _evas_filter_log_dom = 0; int _evas_filter_log_dom = 0;
void void
evas_filter_init() evas_filter_init(void)
{ {
if ((init_cnt++) > 0) return; if ((init_cnt++) > 0) return;
_evas_filter_log_dom = eina_log_domain_register("evas_filter", EVAS_FILTER_LOG_COLOR); _evas_filter_log_dom = eina_log_domain_register("evas_filter", EVAS_FILTER_LOG_COLOR);
} }
void void
evas_filter_shutdown() evas_filter_shutdown(void)
{ {
if ((--init_cnt) > 0) return; if ((--init_cnt) > 0) return;
evas_filter_parser_shutdown(); evas_filter_parser_shutdown();

View File

@ -50,7 +50,7 @@ evas_mem_calloc(int size)
} }
static void static void
_evas_debug_init_from_env() _evas_debug_init_from_env(void)
{ {
const char *tmp = getenv("EVAS_DEBUG_SHOW"); const char *tmp = getenv("EVAS_DEBUG_SHOW");
if (tmp) if (tmp)

View File

@ -48,7 +48,7 @@ struct _OBJ_Counts
/* create new counter */ /* create new counter */
static inline OBJ_Counts static inline OBJ_Counts
_new_count_elements() _new_count_elements(void)
{ {
OBJ_Counts counts; OBJ_Counts counts;

View File

@ -278,7 +278,7 @@ efl_draw_func_span_get(Efl_Gfx_Render_Op op, uint32_t color, Eina_Bool src_alpha
} }
int int
efl_draw_init() efl_draw_init(void)
{ {
static int i = 0; static int i = 0;
if (!(i++)) if (!(i++))

View File

@ -214,7 +214,7 @@ comp_func_source_over_sse2(uint32_t * __restrict dest, const uint32_t * __restri
#endif #endif
void void
efl_draw_neon_init() efl_draw_neon_init(void)
{ {
#ifdef BUILD_NEON #ifdef BUILD_NEON
if (eina_cpu_features_get() & EINA_CPU_NEON) if (eina_cpu_features_get() & EINA_CPU_NEON)