rjancewicz / python-kadmin

Python module for kerberos admin (kadm5)
MIT License
35 stars 40 forks source link

Use of -O0 in CFLAGS causes warning in distributions that enable FORTIFY_SOURCE by default #22

Closed danielkza closed 9 years ago

danielkza commented 9 years ago

I get a bunch of these warnings in Fedora 20:

    In file included from /usr/include/stdlib.h:24:0,
                     from /usr/include/krb5/krb5.h:101,
                     from /usr/include/krb5.h:8,
                     from ./PyKAdminXDR.h:5,
                     from ./PyKAdminXDR.c:2:
    /usr/include/features.h:327:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
     #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)

Is there a particular reason for forcing -O0?

rjancewicz commented 9 years ago

Nope, I had added it as a way to resolve some object which was getting optimized out while debugging. I will remove the flag from the default setup.py script.