Browse Source

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 10 years ago
parent
commit
737b46cdfa
1 changed files with 1 additions and 1 deletions
  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