Evas engine software generic: Fix clang warning.
authorTom Hacohen <tom@stosb.com>
Fri, 9 Oct 2015 11:41:29 +0000 (12:41 +0100)
committerTom Hacohen <tom@stosb.com>
Fri, 9 Oct 2015 11:41:29 +0000 (12:41 +0100)
Double parenthesis comparison is reserved for evaluation for assignment, not just comparison.
So for example you should do ((x = 2)) and (x == 2), but not ((x == 2)) or (x = 2).

src/modules/evas/engines/software_generic/evas_engine.c

index 0fa92f1..dbeee24 100644 (file)
@@ -3445,7 +3445,7 @@ _merge_rects(Render_Engine_Merge_Mode merge_mode,
    // between multiple update regions to render and total pixels to render.
    if (rects)
      {
-        if ((merge_mode == MERGE_BOUNDING)
+        if (merge_mode == MERGE_BOUNDING
 // disable smart updates for debugging
 //            || (merge_mode == MERGE_SMART)
             )