libimobiledevice / libplist

A library to handle Apple Property List format in binary or XML
https://libimobiledevice.org
GNU Lesser General Public License v2.1
546 stars 305 forks source link

Compatibility for old gcc #37

Closed yegle closed 10 years ago

yegle commented 10 years ago

From GCC 4.5 changelog https://gcc.gnu.org/gcc-4.5/changes.html

The deprecated attribute now takes an optional string argument, for example, attribute((deprecated("text string"))), that will be printed together with the deprecation warning.

I'm still using the GCC that released by Apple http://www.opensource.apple.com/source/gcc/gcc-5666.3/ which is version 4.2.1, and unfortunately this caused error message like this:

/Users/yegle/.gentoo/var/tmp/portage/app-pda/libplist-1.11/work/libplist-1.11/include/plist/plist.h:339: error: wrong number of arguments specified for 'deprecated' attribute

yegle commented 10 years ago

Apparently I'm using the old version of libplist too as I see this has been fixed in the master. Sorry for the mistake.