From 51bcc028b5984949325d961b75befb68c8c8cc98 Mon Sep 17 00:00:00 2001 From: Vijay Mahadevan Date: Mon, 19 Dec 2016 08:13:51 +0530 Subject: [PATCH] Fixing some formatting warnings with GNU 6.2 --- test/MBTest.cpp | 2 +- tools/size.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/MBTest.cpp b/test/MBTest.cpp index 18e35437..7fc43928 100644 --- a/test/MBTest.cpp +++ b/test/MBTest.cpp @@ -2358,7 +2358,7 @@ ErrorCode mb_mesh_set_flag_test() unsigned int flags; rval = mb->get_meshset_options( set, flags ); CHKERR(rval); - if(!MESHSET_SET&flags || MESHSET_TRACK_OWNER&flags || MESHSET_ORDERED&flags){ + if(!(MESHSET_SET&flags) || (MESHSET_TRACK_OWNER&flags) || (MESHSET_ORDERED&flags) ){ std::cerr << "set should be MESHSET_SET only, flags=" << flags << std::endl; return MB_FAILURE; } diff --git a/tools/size.cpp b/tools/size.cpp index 324e3998..ec2da4ad 100644 --- a/tools/size.cpp +++ b/tools/size.cpp @@ -267,7 +267,7 @@ static void print_tag_counts( const std::vector& counts ) for (EntityType t = MBVERTEX; t != MBMAXTYPE; ++t) if (widths[t]) printf( " %s", dashes(widths[t]) ); - printf("\n"); + printf("\n"); // print data for (size_t i = 0; i < counts.size(); ++i) { -- GitLab