s4:torture/raw: avoid compiler warnings
[samba.git] / source4 / torture / raw / search.c
index 0736c41d0cca38dc76d53c2e28928e3d63326c5d..924c7f2bf6be1109be62382c672a36f802734228 100644 (file)
                        NT_STATUS_NOT_SUPPORTED) ||                     \
                    NT_STATUS_EQUAL(__status,                           \
                        NT_STATUS_NOT_IMPLEMENTED)) {                   \
-                       torture_warning(__tctx, "(%s) Info "            \
-                           "level "#__level" is %s",                   \
-                           __location__, nt_errstr(__status));         \
                        __supp = false;                                 \
                } else {                                                \
+                       __supp = true;                                  \
+               }                                                       \
+               if (__supp) {                                           \
                        torture_assert_ntstatus_ok_goto(__tctx,         \
                            __status, ret, done, #__level" failed");    \
-                       __supp = true;                                  \
+               } else {                                                \
+                       torture_warning(__tctx, "(%s) Info "            \
+                           "level "#__level" is %s",                   \
+                           __location__, nt_errstr(__status));         \
                }                                                       \
        } while (0)