[tor-dev] [Patch] common/util_bug.h

teor teor2345 at gmail.com
Tue Sep 13 23:57:32 UTC 2016


> On 13 Sep 2016, at 18:52, Gisle Vanem <gvanem at yahoo.no> wrote:
> 
> The 'IF_BUG_ONCE__' for non-gcc is wrong. A simple patch:
> 
> --- a/util_bug.h 2016-09-13 10:44:59
> +++ b/util_bug.h 2016-09-08 20:24:45
> @@ -117,7 +117,7 @@
> #else
> #define IF_BUG_ONCE__(cond,var)                                         \
>   static int var = 0;                                                   \
> -  if (PREDICT_UNLIKELY(cond)) ?                                         \
> +  if (PREDICT_UNLIKELY(cond) ?                                          \
>       (var ? 1 :                                                        \
>        (var=1,                                                          \
>         tor_bug_occurred_(SHORT_FILE__, __LINE__, __func__,             \
> --
> --gv

Thanks for reporting this.
Logged as https://trac.torproject.org/projects/tor/ticket/20141

Tim

Tim Wilson-Brown (teor)

teor2345 at gmail dot com
PGP C855 6CED 5D90 A0C5 29F6 4D43 450C BA7F 968F 094B
ricochet:ekmygaiu4rzgsk6n
xmpp: teor at torproject dot org






-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.torproject.org/pipermail/tor-dev/attachments/20160914/904ad2fe/attachment.sig>


More information about the tor-dev mailing list