Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2002:
[Freeciv-Dev] gcc poisoning
Home

[Freeciv-Dev] gcc poisoning

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] gcc poisoning
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Thu, 24 Oct 2002 14:51:55 +0000 (GMT)

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

Attachment: gccpoison.diff
Description: Text document


[Prev in Thread] Current Thread [Next in Thread]