Explorar o código

src: fix a compilation error detected with Clang 3.6

Make default_init_sched() a static function to fix the following error:
../src/.libs/libstarpu-1.3.so: undefined reference to `default_init_sched'
Samuel Pitoiset %!s(int64=11) %!d(string=hai) anos
pai
achega
737b46cdfa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/sched_policies/heteroprio.c

+ 1 - 1
src/sched_policies/heteroprio.c

@@ -155,7 +155,7 @@ inline void starpu_heteroprio_set_arch_slow_factor(unsigned sched_ctx_id, enum s
 
 
 /** If the user does not provide an init callback we create a single bucket for all architectures */
-inline void default_init_sched(unsigned sched_ctx_id)
+static inline void default_init_sched(unsigned sched_ctx_id)
 {
 	// By default each type of devices uses 1 bucket and no slow factor
 #ifdef STARPU_USE_CPU