From 3f0a3bd5ac4ed693200077f0d15c8aa2ec436496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Wed, 13 Aug 2014 23:09:57 +0200 Subject: [PATCH] fixed two warnings. * top: unused variable, quick fix only. * keymap: redefinition on some host systems (Ubuntu for instance). --- src/bin/keymap/Keymap.h | 4 +++- src/bin/top.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bin/keymap/Keymap.h b/src/bin/keymap/Keymap.h index 218e3271e5..dea03b4fcf 100644 --- a/src/bin/keymap/Keymap.h +++ b/src/bin/keymap/Keymap.h @@ -17,7 +17,9 @@ #endif #include -#define __USE_GNU +#ifndef __USE_GNU +# define __USE_GNU +#endif #include diff --git a/src/bin/top.c b/src/bin/top.c index 4dff9601a3..003e9eff14 100644 --- a/src/bin/top.c +++ b/src/bin/top.c @@ -361,7 +361,7 @@ gather( team_info tm; thread_time_list_t times; int i; - system_info info; + //system_info info; bigtime_t oldLastMeasure; i = 0;