# HG changeset patch # User Leonard Ritter # Date 1525493394 -7200 # Sat May 05 06:09:54 2018 +0200 # Node ID ece1aff350d0380cb7fb0b39b499f72b00c2562a # Parent ad5ec4f5565d4e0ea0ff1cf59231a17e50c37fdb * clang bridge: only print alignment/size mismatch warnings in debug mode diff --git a/src/scopes.cpp b/src/scopes.cpp --- a/src/scopes.cpp +++ b/src/scopes.cpp @@ -7260,6 +7260,7 @@ bool align_ok = (al == needalign); bool size_ok = (sz == needsize); if (!(align_ok && size_ok)) { +#ifdef SCOPES_DEBUG StyledStream ss; auto anchor = anchorFromLocation(rd->getSourceRange().getBegin()); if (al != needalign) { @@ -7272,6 +7273,7 @@ set_active_anchor(anchor); location_error(String::from("clang-bridge: imported record doesn't fit")); #endif +#endif } }