freefunc - name clash with Python.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I get a blizzard of shadow warnings if Pyhton.h is included along with evp.h.
No problems on 1.1.1g from Fedora.

They go away if I include evp.h first.

/usr/local/ssl/include/openssl/safestack.h:124:72: warning: declaration of 
â??freefuncâ?? shadows a global declaration [-Wshadow]
  124 |                                          sk_##t1##_freefunc freefunc) \
      |                                          ~~~~~~~~~~~~~~~~~~~^~~~~~~~

I don't know anything about that area.  Is Python's freefunc the same as 
OpenSSL's?  Is this really a warning or a disaster waiting to happen?

Trivial test program attached.
/* hack to demonstrate freefunc name clash */

/* Build with:
 * cc -Wall -Wshadow -I/usr/include/python3.8 \
 *     -I/usr/local/ssl/include -o freefunc-shadow freefunc-shadow.c
 */

#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <openssl/evp.h>

int main(int argc, char *argv[])
{
        return 0;
}

-- 
These are my opinions.  I hate spam.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux