<div dir="ltr">Hi,<div><br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">


is there a way to suppress specific undefined sanitizer warnings, in particular for unsigned integer overflow? Either with a suppression file (similar to TSan) or even better with some in source annotation?</div></div></blockquote>


<div><br></div><div>You can do so globally by selecting individual checks. Instead of -fsanitize=undefined, you can use -fsanitize=alignment,bool,bounds,enum,... (see <a href="http://clang.llvm.org/docs/UsersManual.html" target="_blank">the manual</a> for a list).</div>


<div><br></div><div>I'm not aware of a possibility to do this with blacklist files or at finer granularity, though.</div><div><br></div><div>Best,</div><div>Jonas</div></div></div></div>