Enable -Wextra-semi and -Wextra-semi-stmt.
This will prevent users from accidentally making semicolon errors in
the future.
Bug: chromium:926235
Change-Id: I79a6fa376fb1ad8f0fcf1b65b1f572a035d1f4e9
Reviewed-on: https://chromium-review.googlesource.com/c/1446493
Commit-Queue: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
diff --git a/src/libANGLE/validationES1.cpp b/src/libANGLE/validationES1.cpp
index 4102302..57b8b88 100644
--- a/src/libANGLE/validationES1.cpp
+++ b/src/libANGLE/validationES1.cpp
@@ -16,12 +16,15 @@
#include "libANGLE/queryutils.h"
#include "libANGLE/validationES.h"
-#define ANGLE_VALIDATE_IS_GLES1(context) \
- if (context->getClientMajorVersion() > 1) \
- { \
- context->validationError(GL_INVALID_OPERATION, kGLES1Only); \
- return false; \
- }
+#define ANGLE_VALIDATE_IS_GLES1(context) \
+ do \
+ { \
+ if (context->getClientMajorVersion() > 1) \
+ { \
+ context->validationError(GL_INVALID_OPERATION, kGLES1Only); \
+ return false; \
+ } \
+ } while (0)
namespace gl
{