Mailing List Archive

Strange definition in gcrypt.h, bug?
Hi,
I was having a look at libgcrypt source code. I found what could be a
bug, or maybe something meant to. I'd just like to report it:

#if _GCRY_GCC_VERSION >= 300200
#define _GCRY_GCC_ATTR_MALLOC __attribute__ ((__malloc__))
#endif

since _GCRY_GCC_VERSION is computed using:


#define _GCRY_GCC_VERSION (__GNUC__ * 10000 \
+ __GNUC_MINOR__ * 100 \
+ __GNUC_PATCHLEVEL__)

It will never be greater than 300200, maybe you meant 30200, or maybe
the code is there but attribute __malloc__ is not used yet?

Bye!

_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
Re: Strange definition in gcrypt.h, bug? [ In reply to ]
On Mon, 12 Nov 2007 09:39, psicus78@gmail.com said:

> It will never be greater than 300200, maybe you meant 30200, or maybe
> the code is there but attribute __malloc__ is not used yet?

Right, it should be 30200. I fixed that in decel and stable.


Thanks,

Werner

--
Die Gedanken sind frei. Auschnahme regelt ein Bundeschgesetz.


_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel