|
Complete.Org:
Mailing Lists:
Archives:
freeciv-dev:
October 2002: [Freeciv-Dev] gcc poisoning |
|
[Freeciv-Dev] gcc poisoning[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
For gcc > 3 you may "poison" certain non-portable functions so that they are not used. If we want to use this, we must add a check for #pragma gcc poison to autoconf and such, but for now, I've added gcc poisoning in the attached patch, and done the necessary rearrangements for it to work (some basic header sanity, like ensuring we don't call system headers with our defines). All I found of non-portable function use was two strerror(), however. So basically I want you to chime in if you think gcc poisoning is something worth putting in, and then I'll do the required autoconf work. We may want to include the attached header sanitation anyway, maybe. - Per
|