Skip to contentSkip to conversation

Fix warning in info.c with gcc 4.3 (Ubuntu 8.10)

PATCH In review Alejandro Riveira Fernández 2 participants 2 messages Nov 23, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix warning in info.c with gcc 4.3 (Ubuntu 8.10)

fix this warning i got with last pull

info.c: In function 'print_flag':
info.c:19: warning: format not a string literal and no format arguments

---
 info.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
info.c +1 -1
index 9b04719..a9c23a4 100644
@@ -16,7 +16,7 @@ static void print_flag(const char *name, int *open)
                printf(" (");
        else
                printf(", ");
-       printf(name);
+       printf("%s\n",name);
        *open = 1;
 }
 
Signature · 1 line
1.6.0.4.766.g6fc4a
#1 lore raw
Quoted 4 lines · Alejandro Riveira Fernández

fix this warning i got with last pull

info.c: In function 'print_flag':
info.c:19: warning: format not a string literal and no format arguments

The \n you added shouldn't be there, I've committed an equivalent fix.

johannes