Przeglądaj źródła

Fix function prototypes in headers to reflect the changes brought by r.7415.

Cyril Roelandt 13 lat temu
rodzic
commit
612a56a6fd

+ 1 - 1
include/starpu_data_interfaces.h

@@ -138,7 +138,7 @@ struct starpu_data_interface_ops
 };
 
 /* Return the next available id for a data interface */
-int starpu_data_interface_get_next_id();
+int starpu_data_interface_get_next_id(void);
 
 void starpu_data_register(starpu_data_handle_t *handleptr, uint32_t home_node, void *data_interface, struct starpu_data_interface_ops *ops);
 void starpu_data_register_same(starpu_data_handle_t *handledst, starpu_data_handle_t handlesrc);

+ 1 - 1
src/common/utils.h

@@ -56,7 +56,7 @@
 int _starpu_mkpath(const char *s, mode_t mode);
 void _starpu_mkpath_and_check(const char *s, mode_t mode);
 int _starpu_check_mutex_deadlock(pthread_mutex_t *mutex);
-char *_starpu_get_home_path();
+char *_starpu_get_home_path(void);
 
 /* If FILE is currently on a comment line, eat it.  */
 void _starpu_drop_comments(FILE *f);

+ 3 - 3
src/core/workers.h

@@ -221,10 +221,10 @@ void _starpu_worker_set_status(int workerid, enum _starpu_worker_status status);
 /* TODO move */
 unsigned _starpu_execute_registered_progression_hooks(void);
 
-int starpu_asynchronous_copy_disabled();
+int starpu_asynchronous_copy_disabled(void);
 
-int starpu_asynchronous_cuda_copy_disabled();
+int starpu_asynchronous_cuda_copy_disabled(void);
 
-int starpu_asynchronous_opencl_copy_disabled();
+int starpu_asynchronous_opencl_copy_disabled(void);
 
 #endif // __WORKERS_H__

+ 1 - 1
src/top/starpu_top_connection.h

@@ -36,7 +36,7 @@ extern struct _starpu_top_message_queue* _starpu_top_mt;
  * About mt : mt MUST be allocated before call.
  * All messages in the queue are freed after used.
  */
-void _starpu_top_communications_threads_launcher();
+void _starpu_top_communications_threads_launcher(void);
 
 #ifdef __cplusplus
 }

+ 1 - 1
src/top/starpu_top_core.h

@@ -27,7 +27,7 @@ unsigned long long _starpu_top_timing_timespec_to_ms(const struct timespec *ts);
 /*
  * This function returns 1 if starpu_top is initialized. 0 otherwise.
  */
-int _starpu_top_status_get();
+int _starpu_top_status_get(void);
 
 /*
  * This functions notify UI than the task has started or ended