<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en" style='--code-editor-font: var(--default-mono-font, "GitLab Mono"), JetBrains Mono, Menlo, DejaVu Sans Mono, Liberation Mono, Consolas, Ubuntu Mono, Courier New, andale mono, lucida console, monospace;'>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>

<style data-premailer="ignore" type="text/css">
a { color: #1068bf; }
</style>

<style>img {
max-width: 100%; height: auto;
}
body {
font-size: .875rem;
}
body {
-webkit-text-shadow: hsla(0,0%,100%,.01) 0 0 1px;
}
body {
font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; font-size: inherit;
}
</style>
</head>
<body style='font-size: inherit; -webkit-text-shadow: hsla(0,0%,100%,.01) 0 0 1px; font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";'>
<div class="content">

<p class="details" style="font-style: italic; color: #626168;">
Issue created by <a href="https://gitlab.com/cybear">Bjørn Christensen</a>: <a href="https://gitlab.com/gnutls/gnutls/-/work_items/1889">#1889</a>
</p>
<div class="md" style="position: relative; z-index: 1; color: #3a383f; word-wrap: break-word;">
<h2 id="user-content-description-of-problem" dir="auto" style="margin-top: 0px; margin-bottom: 10px;" align="initial">Description of problem:<a href="#description-of-problem" aria-label="Link to heading 'Description of problem:'" data-heading-content="Description of problem:" class="anchor" style="margin-top: 0px;"></a>
</h2>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial">Problems building GnuTLS on mac platform.
The code in crau.h seems to have a logic error, lines 253-261</p>
<h1 id="user-content-ifndef-crau_maybe_unused" dir="auto" style="margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; color: #18171d;" align="initial">ifndef CRAU_MAYBE_UNUSED<a href="#ifndef-crau_maybe_unused" aria-label="Link to heading 'ifndef CRAU_MAYBE_UNUSED'" data-heading-content="ifndef CRAU_MAYBE_UNUSED" class="anchor" style="margin-top: 0px;"></a>
</h1>
<h1 id="user-content-if-defined__has_c_attribute" dir="auto" style="margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; color: #18171d;" align="initial">if defined(__has_c_attribute)<a href="#if-defined__has_c_attribute" aria-label="Link to heading 'if defined(__has_c_attribute)'" data-heading-content="if defined(__has_c_attribute)" class="anchor" style="margin-top: 0px;"></a>
</h1>
<h1 id="user-content-if-__has_c_attribute-maybe_unused" dir="auto" style="margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; color: #18171d;" align="initial">if __has_c_attribute (<strong style="font-weight: 600; margin-top: 0px;">maybe_unused</strong>)<a href="#if-__has_c_attribute-maybe_unused" aria-label="Link to heading 'if __has_c_attribute (maybe_unused)'" data-heading-content="if __has_c_attribute (maybe_unused)" class="anchor"></a>
</h1>
<h1 id="user-content-define-crau_maybe_unused-__maybe_unused__" dir="auto" style="margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; color: #18171d;" align="initial">define CRAU_MAYBE_UNUSED <a href="https://gitlab.com/gnutls/gnutls/-/wikis/__maybe_unused__" data-wikilink="true" class="gfm gfm-gollum-wiki-page" data-canonical-src="__maybe_unused__" data-link="true" data-gollum="true" data-reference-type="wiki_page" data-project="179611" style="margin-top: 0px;">__maybe_unused__</a><a href="#define-crau_maybe_unused-__maybe_unused__" aria-label="Link to heading 'define CRAU_MAYBE_UNUSED __maybe_unused__'" data-heading-content="define CRAU_MAYBE_UNUSED __maybe_unused__" class="anchor"></a>
</h1>
<h1 id="user-content-endif" dir="auto" style="margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; color: #18171d;" align="initial">endif<a href="#endif" aria-label="Link to heading 'endif'" data-heading-content="endif" class="anchor" style="margin-top: 0px;"></a>
</h1>
<h1 id="user-content-elif-definedgnuc" dir="auto" style="margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; color: #18171d;" align="initial">elif defined(<strong style="font-weight: 600; margin-top: 0px;">GNUC</strong>)<a href="#elif-definedgnuc" aria-label="Link to heading 'elif defined(GNUC)'" data-heading-content="elif defined(GNUC)" class="anchor"></a>
</h1>
<h1 id="user-content-define-crau_maybe_unused-attributeunused" dir="auto" style="margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; color: #18171d;" align="initial">define CRAU_MAYBE_UNUSED <strong style="font-weight: 600; margin-top: 0px;">attribute</strong>((<strong style="font-weight: 600;">unused</strong>))<a href="#define-crau_maybe_unused-attributeunused" aria-label="Link to heading 'define CRAU_MAYBE_UNUSED attribute((unused))'" data-heading-content="define CRAU_MAYBE_UNUSED attribute((unused))" class="anchor"></a>
</h1>
<h1 id="user-content-endif-1" dir="auto" style="margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; color: #18171d;" align="initial">endif<a href="#endif-1" aria-label="Link to heading 'endif'" data-heading-content="endif" class="anchor" style="margin-top: 0px;"></a>
</h1>
<h1 id="user-content-endif--crau_maybe_unused-" dir="auto" style="margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; color: #18171d;" align="initial">endif /* CRAU_MAYBE_UNUSED */<a href="#endif--crau_maybe_unused-" aria-label="Link to heading 'endif /* CRAU_MAYBE_UNUSED */'" data-heading-content="endif /* CRAU_MAYBE_UNUSED */" class="anchor" style="margin-top: 0px;"></a>
</h1>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial">In my case when compiling, the code ends up without macro CRAU_MAYBE_UNUSED defined.</p>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial">that generates compiler errors for all the later uses.</p>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial">I have solved the problem by adding -DCRAU_MAYBE_UNUSED= to the compilation but is would be nice that  the code defined an empty macro CRAU_MAYBE_UNUSED if it cannot provide an alternative for it.</p>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial">Could be:</p>
<h1 id="user-content-ifndef-crau_maybe_unused-1" dir="auto" style="margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; color: #18171d;" align="initial">ifndef CRAU_MAYBE_UNUSED<a href="#ifndef-crau_maybe_unused-1" aria-label="Link to heading 'ifndef CRAU_MAYBE_UNUSED'" data-heading-content="ifndef CRAU_MAYBE_UNUSED" class="anchor" style="margin-top: 0px;"></a>
</h1>
<h1 id="user-content-if-defined__has_c_attribute-1" dir="auto" style="margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; color: #18171d;" align="initial">if defined(__has_c_attribute)<a href="#if-defined__has_c_attribute-1" aria-label="Link to heading 'if defined(__has_c_attribute)'" data-heading-content="if defined(__has_c_attribute)" class="anchor" style="margin-top: 0px;"></a>
</h1>
<h1 id="user-content-if-__has_c_attribute-maybe_unused-1" dir="auto" style="margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; color: #18171d;" align="initial">if __has_c_attribute (<strong style="font-weight: 600; margin-top: 0px;">maybe_unused</strong>)<a href="#if-__has_c_attribute-maybe_unused-1" aria-label="Link to heading 'if __has_c_attribute (maybe_unused)'" data-heading-content="if __has_c_attribute (maybe_unused)" class="anchor"></a>
</h1>
<h1 id="user-content-define-crau_maybe_unused-__maybe_unused__-1" dir="auto" style="margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; color: #18171d;" align="initial">define CRAU_MAYBE_UNUSED <a href="https://gitlab.com/gnutls/gnutls/-/wikis/__maybe_unused__" data-wikilink="true" class="gfm gfm-gollum-wiki-page" data-canonical-src="__maybe_unused__" data-link="true" data-gollum="true" data-reference-type="wiki_page" data-project="179611" style="margin-top: 0px;">__maybe_unused__</a><a href="#define-crau_maybe_unused-__maybe_unused__-1" aria-label="Link to heading 'define CRAU_MAYBE_UNUSED __maybe_unused__'" data-heading-content="define CRAU_MAYBE_UNUSED __maybe_unused__" class="anchor"></a>
</h1>
<h1 id="user-content-else" dir="auto" style="margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; color: #18171d;" align="initial">else<a href="#else" aria-label="Link to heading 'else'" data-heading-content="else" class="anchor" style="margin-top: 0px;"></a>
</h1>
<h1 id="user-content-define-crau_maybe_unused" dir="auto" style="margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; color: #18171d;" align="initial">define CRAU_MAYBE_UNUSED<a href="#define-crau_maybe_unused" aria-label="Link to heading 'define CRAU_MAYBE_UNUSED'" data-heading-content="define CRAU_MAYBE_UNUSED" class="anchor" style="margin-top: 0px;"></a>
</h1>
<h1 id="user-content-endif-2" dir="auto" style="margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; color: #18171d;" align="initial">endif<a href="#endif-2" aria-label="Link to heading 'endif'" data-heading-content="endif" class="anchor" style="margin-top: 0px;"></a>
</h1>
<h1 id="user-content-elif-definedgnuc-1" dir="auto" style="margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; color: #18171d;" align="initial">elif defined(<strong style="font-weight: 600; margin-top: 0px;">GNUC</strong>)<a href="#elif-definedgnuc-1" aria-label="Link to heading 'elif defined(GNUC)'" data-heading-content="elif defined(GNUC)" class="anchor"></a>
</h1>
<h1 id="user-content-define-crau_maybe_unused-attributeunused-1" dir="auto" style="margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; color: #18171d;" align="initial">define CRAU_MAYBE_UNUSED <strong style="font-weight: 600; margin-top: 0px;">attribute</strong>((<strong style="font-weight: 600;">unused</strong>))<a href="#define-crau_maybe_unused-attributeunused-1" aria-label="Link to heading 'define CRAU_MAYBE_UNUSED attribute((unused))'" data-heading-content="define CRAU_MAYBE_UNUSED attribute((unused))" class="anchor"></a>
</h1>
<h1 id="user-content-else-1" dir="auto" style="margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; color: #18171d;" align="initial">else<a href="#else-1" aria-label="Link to heading 'else'" data-heading-content="else" class="anchor" style="margin-top: 0px;"></a>
</h1>
<h1 id="user-content-define-crau_maybe_unused-1" dir="auto" style="margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; color: #18171d;" align="initial">define CRAU_MAYBE_UNUSED<a href="#define-crau_maybe_unused-1" aria-label="Link to heading 'define CRAU_MAYBE_UNUSED'" data-heading-content="define CRAU_MAYBE_UNUSED" class="anchor" style="margin-top: 0px;"></a>
</h1>
<h1 id="user-content-endif-3" dir="auto" style="margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; color: #18171d;" align="initial">endif<a href="#endif-3" aria-label="Link to heading 'endif'" data-heading-content="endif" class="anchor" style="margin-top: 0px;"></a>
</h1>
<h1 id="user-content-endif--crau_maybe_unused--1" dir="auto" style="margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.25; color: #18171d;" align="initial">endif /* CRAU_MAYBE_UNUSED */<a href="#endif--crau_maybe_unused--1" aria-label="Link to heading 'endif /* CRAU_MAYBE_UNUSED */'" data-heading-content="endif /* CRAU_MAYBE_UNUSED */" class="anchor" style="margin-top: 0px;"></a>
</h1>
<h2 id="user-content-version-of-gnutls-used" dir="auto" style="margin-top: 20px; margin-bottom: 10px;" align="initial">Version of gnutls used:<a href="#version-of-gnutls-used" aria-label="Link to heading 'Version of gnutls used:'" data-heading-content="Version of gnutls used:" class="anchor" style="margin-top: 0px;"></a>
</h2>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial">3.8.13</p>
<h2 id="user-content-distributor-of-gnutls-eg-ubuntu-fedora-rhel" dir="auto" style="margin-top: 20px; margin-bottom: 10px;" align="initial">Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)<a href="#distributor-of-gnutls-eg-ubuntu-fedora-rhel" aria-label="Link to heading 'Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)'" data-heading-content="Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)" class="anchor" style="margin-top: 0px;"></a>
</h2>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial">sourcecode</p>
<h2 id="user-content-how-reproducible" dir="auto" style="margin-top: 20px; margin-bottom: 10px;" align="initial">How reproducible:<a href="#how-reproducible" aria-label="Link to heading 'How reproducible:'" data-heading-content="How reproducible:" class="anchor" style="margin-top: 0px;"></a>
</h2>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial">everytime</p>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial">Steps to Reproduce:</p>
<ul dir="auto" style="text-align: initial; list-style-type: disc; margin: 0px 0px 1rem; padding: 0;">
<li style="margin-top: 0px; line-height: 1.6em; margin-left: 25px; padding-left: 3px;">one</li>
<li style="line-height: 1.6em; margin-left: 25px; padding-left: 3px;">two</li>
<li style="line-height: 1.6em; margin-left: 25px; padding-left: 3px;">three</li>
</ul>
<h2 id="user-content-actual-results" dir="auto" style="margin-top: 20px; margin-bottom: 10px;" align="initial">Actual results:<a href="#actual-results" aria-label="Link to heading 'Actual results:'" data-heading-content="Actual results:" class="anchor" style="margin-top: 0px;"></a>
</h2>
<h2 id="user-content-expected-results" dir="auto" style="margin-top: 20px; margin-bottom: 0px;" align="initial">Expected results:<a href="#expected-results" aria-label="Link to heading 'Expected results:'" data-heading-content="Expected results:" class="anchor" style="margin-top: 0px;"></a>
</h2>
</div>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #626168;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/work_items/1889">view it on GitLab</a>.
<br>
You're receiving this email because of your account on <a target="_blank" rel="noopener noreferrer" href="https://gitlab.com">gitlab.com</a>. <a href="https://gitlab.com/-/sent_notifications/4-5wx2n22mn9a4p6wp25kwc9i7y-a84t7/unsubscribe" target="_blank" rel="noopener noreferrer">Unsubscribe</a> from this thread · <a href="https://gitlab.com/-/profile/notifications" target="_blank" rel="noopener noreferrer" class="mng-notif-link">Manage all notifications</a> · <a href="https://gitlab.com/help" target="_blank" rel="noopener noreferrer" class="help-link">Help</a>
<span style="color: transparent; font-size: 0; display: none; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0;">
Notification message regarding https://gitlab.com/gnutls/gnutls/-/work_items/1889 at 1779184785
</span>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Work item","url":"https://gitlab.com/gnutls/gnutls/-/work_items/1889"}}</script>


</p>
</div>
</body>
</html>