Discussion:
[PATCH 1/4] tuning: suppress compilation warning
Sergey Senozhatsky
2012-02-11 23:47:32 UTC
Permalink
Suppress `warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]'
compilation warning.

Signed-off-by: Sergey Senozhatsky <***@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++) {

Loading...