Prechádzať zdrojové kódy

include: use void for parameter-less functions

Nathalie Furmento 4 rokov pred
rodič
commit
2cd93bfad0

+ 1 - 1
include/starpu_bitmap.h

@@ -120,7 +120,7 @@ static int _starpu_count_bit_static(unsigned long e)
 #endif
 }
 
-static inline struct starpu_bitmap *starpu_bitmap_create()
+static inline struct starpu_bitmap *starpu_bitmap_create(void)
 {
 	return (struct starpu_bitmap *) calloc(1, sizeof(struct starpu_bitmap));
 }

+ 6 - 6
include/starpu_data_interfaces.h

@@ -229,9 +229,9 @@ struct starpu_data_copy_methods
 	*/
 	int (*cuda_to_cuda_async)(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node, starpu_cudaStream_t stream);
 #else
-	int (*ram_to_cuda_async)();
-	int (*cuda_to_ram_async)();
-	int (*cuda_to_cuda_async)();
+	int (*ram_to_cuda_async)(void);
+	int (*cuda_to_ram_async)(void);
+	int (*cuda_to_cuda_async)(void);
 #endif
 
 #if defined(STARPU_USE_OPENCL) && !defined(__CUDACC__)
@@ -266,9 +266,9 @@ struct starpu_data_copy_methods
 	*/
 	int (*opencl_to_opencl_async)(void *src_interface, unsigned src_node, void *dst_interface, unsigned dst_node, cl_event *event);
 #else
-	int (*ram_to_opencl_async)();
-	int (*opencl_to_ram_async)();
-	int (*opencl_to_opencl_async)();
+	int (*ram_to_opencl_async)(void);
+	int (*opencl_to_ram_async)(void);
+	int (*opencl_to_opencl_async)(void);
 #endif
 
 	/**

+ 1 - 1
include/starpu_fxt.h

@@ -138,7 +138,7 @@ void starpu_fxt_write_data_trace_in_dir(char *filename_in, char *dir);
 /**
     Wrapper to get value of env variable STARPU_FXT_TRACE
 */
-int starpu_fxt_is_enabled();
+int starpu_fxt_is_enabled(void);
 
 /**
    Add an event in the execution trace if FxT is enabled.

+ 3 - 3
include/starpu_openmp.h

@@ -639,7 +639,7 @@ extern void starpu_omp_set_num_threads(int threads) __STARPU_OMP_NOTHROW;
    \sa starpu_omp_get_max_threads
    \sa starpu_omp_get_num_procs
  */
-extern int starpu_omp_get_num_threads() __STARPU_OMP_NOTHROW;
+extern int starpu_omp_get_num_threads(void) __STARPU_OMP_NOTHROW;
 
 /**
    Return the rank of the current thread among the threads
@@ -652,7 +652,7 @@ extern int starpu_omp_get_num_threads() __STARPU_OMP_NOTHROW;
    \sa starpu_omp_get_max_threads
    \sa starpu_omp_get_num_procs
  */
-extern int starpu_omp_get_thread_num() __STARPU_OMP_NOTHROW;
+extern int starpu_omp_get_thread_num(void) __STARPU_OMP_NOTHROW;
 
 /**
    Return the maximum number of threads that can be used to
@@ -665,7 +665,7 @@ extern int starpu_omp_get_thread_num() __STARPU_OMP_NOTHROW;
    \sa starpu_omp_get_thread_num
    \sa starpu_omp_get_num_procs
  */
-extern int starpu_omp_get_max_threads() __STARPU_OMP_NOTHROW;
+extern int starpu_omp_get_max_threads(void) __STARPU_OMP_NOTHROW;
 
 /**
    Return the number of StarPU CPU workers.

+ 3 - 3
include/starpu_perf_monitoring.h

@@ -65,11 +65,11 @@ struct starpu_perf_counter_set;
 /**
   Start collecting performance counter values.
   */
-void starpu_perf_counter_collection_start();
+void starpu_perf_counter_collection_start(void);
 /**
   Stop collecting performance counter values.
   */
-void starpu_perf_counter_collection_stop();
+void starpu_perf_counter_collection_stop(void);
 
 /**
   Translate scope name constant string to scope id.
@@ -170,7 +170,7 @@ void starpu_perf_counter_set_per_codelet_listener(struct starpu_codelet *cl, str
 /**
   Unset the global listener.
   */
-void starpu_perf_counter_unset_global_listener();
+void starpu_perf_counter_unset_global_listener(void);
 /**
   Unset the per_worker listener.
   */

+ 1 - 1
include/starpu_profiling.h

@@ -316,7 +316,7 @@ void starpu_profiling_worker_helper_display_summary(void);
    option \ref enable-memory-stats "--enable-memory-stats" (see \ref
    MemoryFeedback).
 */
-void starpu_data_display_memory_stats();
+void starpu_data_display_memory_stats(void);
 
 /** @} */
 

+ 1 - 1
include/starpu_scheduler.h

@@ -208,7 +208,7 @@ struct starpu_sched_policy
    Return an <c>NULL</c>-terminated array of all the predefined
    scheduling policies.
 */
-struct starpu_sched_policy **starpu_sched_get_predefined_policies();
+struct starpu_sched_policy **starpu_sched_get_predefined_policies(void);
 
 /**
    When there is no available task for a worker, StarPU blocks this