From 34e77d35bad691fbb905cacf8ed495a5373d4ea4 Mon Sep 17 00:00:00 2001 From: Cedric Bastoul Date: Sun, 26 Jul 2015 10:04:16 +0200 Subject: [PATCH] Get rid of empty body statement warning --- source/loop.c | 3 ++- source/names.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source/loop.c b/source/loop.c index cc07bff..68a8421 100644 --- a/source/loop.c +++ b/source/loop.c @@ -316,7 +316,8 @@ CloogLoop *cloog_loop_read(CloogState *state, /* To read that stupid "0 0 0" line. */ while (fgets(s,MAX_STRING,foo) == 0) ; while ((*s=='#' || *s=='\n') || (sscanf(s," %d %d %d",&op1,&op2,&op3)<3)) - if (fgets(s, MAX_STRING, foo)); + if (fgets(s, MAX_STRING, foo)) + continue; return cloog_loop_from_domain(state, domain, number); } diff --git a/source/names.c b/source/names.c index 4dbcb8f..30051f5 100644 --- a/source/names.c +++ b/source/names.c @@ -271,7 +271,8 @@ char ** cloog_names_read_strings(FILE *file, int nb_items) /* We first read name option. */ while (fgets(s,MAX_STRING,file) == 0) ; while ((*s=='#' || *s=='\n') || (sscanf(s," %d",&option)<1)) - if (fgets(s, MAX_STRING, file)); + if (fgets(s, MAX_STRING, file)) + continue; /* If there is no item to read, then return NULL. */ if (nb_items == 0) -- 2.11.4.GIT