<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<div dir="ltr" style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
When compiling a Release build (without assert) these come up as unused. </div>
<div dir="ltr" style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Alternative approach would be to Error the compile when test is part of the build but assert is not part of the build due to the build being Release.</div>
<div id="ms-outlook-mobile-body-separator-line" data-applydefaultfontstyles="true" style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt;" dir="ltr">
<div dir="ltr" style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
</div>
<div style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt;" id="ms-outlook-mobile-signature" dir="ltr">
</div>
<div id="mail-editor-reference-message-container" class="ms-outlook-mobile-reference-message">
<div id="mail-editor-reference-message-container">
<hr style="display: inline-block; width: 98%;">
<div id="divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif;"><b>From:</b> Jacob Bachmeyer <jcb62281@gmail.com><br>
<b>Sent:</b> Saturday, January 31, 2026 15:06<br>
<b>To:</b> Rudi Heitbaum <rudi@heitbaum.com>; gnupg-devel@gnupg.org <gnupg-devel@gnupg.org><br>
<b>Subject:</b> Re: [PATCH 1/3] tests: Cast to void to suppress warnings about unused variables</span>
<div style="font-family: Calibri, sans-serif;"> </div>
</div>
<meta name="Generator" content="Microsoft Exchange Server">
<div class="PlainText" style="font-size: 11pt;">On 1/30/26 19:26, Rudi Heitbaum via Gnupg-devel wrote:<br>
> Address compiler warning when variable is unused because it’s used only in assert.<br>
<br>
Does this mean that the assertions are not actually being checked?  If<br>
so, that could be a bit of a problem, given that these are in testsuite<br>
code.<br>
<br>
In other words, does this patch "paper over" actual bugs that GCC has<br>
uncovered?<br>
<br>
<br>
-- Jacob<br>
<br>
<br>
</div>
</div>
</div>
</body>
</html>