Commit 44a0e734 by Jamie Madill Committed by Commit Bot

Re-enable -Wextra-semi-stmt.

Now that the DEPS roller is fixed this should not be able to break the CQ. Bug: angleproject:3128 Change-Id: I0f51b5d8a7b71859cced335ca9bd6ad155637ec5 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1781619 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 04d3de54
......@@ -123,14 +123,12 @@ config("extra_warnings") {
}
if (is_clang) {
cflags += [
# Enable after anglebug.com/3128 is fixed.
# "-Wextra-semi-stmt",
"-Wexit-time-destructors",
"-Wextra-semi-stmt",
"-Wfloat-conversion",
"-Wglobal-constructors",
"-Wnon-virtual-dtor",
"-Wunneeded-internal-declaration",
"-Wglobal-constructors",
"-Wexit-time-destructors",
# The below warnings are used by WebKit. We enable them to make rolling
# ANGLE in WebKit easier.
......
......@@ -94,7 +94,6 @@ egl::Error ImageVk::initialize(const egl::Display *display)
ASSERT(mContext != nullptr);
renderer = vk::GetImpl(mContext)->getRenderer();
;
}
else if (egl::IsExternalImageTarget(mState.target))
{
......
......@@ -475,17 +475,20 @@
// Implementation detail: internal macro to create static category and add begin
// event if the category is enabled. Also adds the end event when the scope
// ends.
#define INTERNAL_TRACE_EVENT_ADD_SCOPED(platform, category, name, ...) \
INTERNAL_TRACE_EVENT_GET_CATEGORY_INFO(platform, category); \
gl::TraceEvent::TraceEndOnScopeClose INTERNALTRACEEVENTUID(profileScope); \
if (*INTERNALTRACEEVENTUID(catstatic)) \
{ \
gl::TraceEvent::addTraceEvent( \
platform, TRACE_EVENT_PHASE_BEGIN, INTERNALTRACEEVENTUID(catstatic), name, \
gl::TraceEvent::noEventId, TRACE_EVENT_FLAG_NONE, ##__VA_ARGS__); \
INTERNALTRACEEVENTUID(profileScope) \
.initialize(platform, INTERNALTRACEEVENTUID(catstatic), name); \
}
#define INTERNAL_TRACE_EVENT_ADD_SCOPED(platform, category, name, ...) \
INTERNAL_TRACE_EVENT_GET_CATEGORY_INFO(platform, category); \
gl::TraceEvent::TraceEndOnScopeClose INTERNALTRACEEVENTUID(profileScope); \
do \
{ \
if (*INTERNALTRACEEVENTUID(catstatic)) \
{ \
gl::TraceEvent::addTraceEvent( \
platform, TRACE_EVENT_PHASE_BEGIN, INTERNALTRACEEVENTUID(catstatic), name, \
gl::TraceEvent::noEventId, TRACE_EVENT_FLAG_NONE, ##__VA_ARGS__); \
INTERNALTRACEEVENTUID(profileScope) \
.initialize(platform, INTERNALTRACEEVENTUID(catstatic), name); \
} \
} while (0)
// Implementation detail: internal macro to create static category and add
// event if the category is enabled.
......
......@@ -247,7 +247,7 @@ protected:
memset(&c, 0, sizeof(CONTEXT)); \
c.ContextFlags = contextFlags; \
RtlCaptureContext(&c); \
} while (0);
} while (0)
#endif
#endif //defined(_MSC_VER)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment