Apple's gcc can't handle deprecated attribute
MK-MacPorts at techno.ms
MK-MacPorts at techno.ms
Thu Oct 4 05:46:16 PDT 2012
Hi,
while trying to build a new port I ran into this compiler issue:
---
:info:build ../inc/csvdb.h:163: error: wrong number of arguments specified for 'deprecated' attribute
---
The corresponding line of code is this:
---
void result_free(result_t *r) __attribute__ ((deprecated ("use csvdb_free_result")));
---
Looks like i686-apple-darwin10-gcc-4.2.1 can't handle this for some reason.
For now I've simply removed the whole attribute using a patch, but I wonder what would be a better way to deal with this...
Greets,
Marko
More information about the macports-dev
mailing list