region: Enable or disable fatal errors and selfchecks based on version number
authorSøren Sandmann Pedersen <sandmann@redhat.com>
Fri, 11 Dec 2009 16:14:19 +0000 (11:14 -0500)
committerSøren Sandmann Pedersen <sandmann@redhat.com>
Thu, 17 Dec 2009 07:22:00 +0000 (02:22 -0500)
commit54f51c4a7595d685397838006ba67473eee47e7d
tree4767313d8987d74374b8a5f61fab9c93ad8271e5
parent91ec7fecc9b16ec1d18c46d08698e6128baaba1d
region: Enable or disable fatal errors and selfchecks based on version number

There is a couple of bugs in bugzilla where bugs in the X server
triggered asserts in the pixman region code. It is probably better to
let the X server survive this. (In fact, I thought I had disabled them
for 0.16.0, but apparently not).

The patch below uses these rules:

    - In _stable_ pixman releases, assertions and selfchecks are turned
      off. Assertions, so that the X server doesn't die. Selfchecks,
      for performance reasons.

    - In _unstable_ pixman releases, both assertions and selfcheck are
      turned on. These releases are what get added to development
      distributions such as rawhide, so we want as much self-checking
      as possible.

    - In _random git checkouts_, assertions are enabled, so that bugs
      are caught, but selfchecks are disabled so that you can use them
      for performance work without having to fiddle with turning
      selfchecks off.
pixman/pixman-region.c