Suppress `warning: suggest explicit braces to avoid ambiguous ‘else’ 
[-Wparentheses]'
    compilation warning.

Signed-off-by: Sergey Senozhatsky <sergey.senozhat...@gmail.com>

---
 tuning/tuning.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tuning/tuning.cpp b/tuning/tuning.cpp
index 57ef3d1..3fd89f3 100644
--- a/tuning/tuning.cpp
+++ b/tuning/tuning.cpp
@@ -286,11 +286,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>\n");
                else
                        fprintf(reportout.csv_report,"\n");
+       }
 
        line = 0;
        for (i = 0; i < all_tunables.size(); i++) {

_______________________________________________
Power mailing list
Power@bughost.org
https://bughost.org/mailman/listinfo/power

Reply via email to