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";
EAPI int
efl_model_init()
efl_model_init(void)
{
EFL_MODEL_ERROR_INCORRECT_VALUE = eina_error_msg_static_register(
EFL_MODEL_ERROR_INCORRECT_VALUE_STR);

View File

@ -648,7 +648,7 @@ _eina_debug_monitor_signal_init(void)
}
static const char *
_socket_home_get()
_socket_home_get(void)
{
// get possible debug daemon socket directory base
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 *
_eo_call_stack_create()
_eo_call_stack_create(void)
{
Efl_Object_Call_Stack *stack;

View File

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

View File

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

View File

@ -26,7 +26,7 @@
/* create new 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;

View File

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

View File

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

View File

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

View File

@ -48,7 +48,7 @@ struct _OBJ_Counts
/* create new counter */
static inline OBJ_Counts
_new_count_elements()
_new_count_elements(void)
{
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
efl_draw_init()
efl_draw_init(void)
{
static int i = 0;
if (!(i++))

View File

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