Suppress `warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]' compilation warning.
Signed-off-by: Sergey Senozhatsky <sergey.senozhat...@gmail.com> --- tuning/tuning.cpp | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tuning/tuning.cpp b/tuning/tuning.cpp index d0e0078..d34736c 100644 --- a/tuning/tuning.cpp +++ b/tuning/tuning.cpp @@ -239,12 +239,12 @@ void report_show_tunables(void) fprintf(reportout.csv_report, "\"%s\", \n", all_tunables[i]->description()); } - if (line > 0) + if (line > 0) { if(reporttype) fprintf(reportout.http_report,"</table></p>\n"); else fprintf(reportout.csv_report, "\n"); - + } line = 0; for (i = 0; i < all_untunables.size(); i++) { @@ -269,11 +269,12 @@ void report_show_tunables(void) fprintf(reportout.csv_report,"\"%s\", \n", all_untunables[i]->description()); } - if (line > 0) + if (line > 0) { if(reporttype) fprintf(reportout.http_report,"</table></p>\n"); else fprintf(reportout.csv_report,"\n"); + } line = 0; for (i = 0; i < all_tunables.size(); i++) { _______________________________________________ Discuss mailing list Discuss@lesswatts.org http://lists.lesswatts.org/listinfo/discuss