Browse Source

remove some minor "unused variable" warnings

Cédric Augonnet 16 years ago
parent
commit
21c897c868
2 changed files with 3 additions and 3 deletions
  1. 1 1
      src/core/debug.c
  2. 2 2
      src/datawizard/coherency.c

+ 1 - 1
src/core/debug.c

@@ -47,7 +47,7 @@ void close_debug_logfile(void)
 #endif
 }
 
-void print_to_logfile(const char *format, ...)
+void print_to_logfile(const char *format __attribute__((unused)), ...)
 {
 #ifdef VERBOSE
 	va_list args;

+ 2 - 2
src/datawizard/coherency.c

@@ -343,8 +343,6 @@ static inline void _starpu_sync_data_with_mem_continuation(void *arg)
 
 void starpu_sync_data_with_mem(data_state *state)
 {
-	int ret;
-
 #ifdef NO_DATA_RW_LOCK
 	struct state_and_node statenode =
 	{
@@ -373,6 +371,8 @@ void starpu_sync_data_with_mem(data_state *state)
 #else
 	/* NB: fetch_data automatically grabs the STARPU_RW-lock so it needs to be
  	 * released explicitely afterward */
+	int ret;
+
 	ret = fetch_data(state, STARPU_R);
 	STARPU_ASSERT(!ret);