From beda03184afe46d6702e6e184c42e8fcf5691386 Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Thu, 22 Dec 2011 21:26:33 -0800 Subject: [PATCH] feature.h: Avoid compiler warning unsigned >= 0 produces a warning, even if the 0 is actually a macro. --- feature.h | 3 +-- regen/feature.pl | 13 ++++++++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/feature.h b/feature.h index a56ac8b..6c99c2a 100644 --- a/feature.h +++ b/feature.h @@ -52,8 +52,7 @@ #define FEATURE_ARYBASE_IS_ENABLED \ ( \ - (CURRENT_FEATURE_BUNDLE >= FEATURE_BUNDLE_DEFAULT && \ - CURRENT_FEATURE_BUNDLE <= FEATURE_BUNDLE_511) \ + CURRENT_FEATURE_BUNDLE <= FEATURE_BUNDLE_511 \ || (CURRENT_FEATURE_BUNDLE == FEATURE_BUNDLE_CUSTOM && \ FEATURE_IS_ENABLED_d("arybase")) \ ) diff --git a/regen/feature.pl b/regen/feature.pl index cf3ba35..8ccc2d5 100755 --- a/regen/feature.pl +++ b/regen/feature.pl @@ -239,7 +239,18 @@ for ( my $name = $feature{$_} # skip "no" || ($default = '_d', substr $default_feature{$_}, 2); my $NAME = uc $name; - if ($last) { + if ($last && $first eq 'DEFAULT') { # ‘>= DEFAULT’ warns + print $h <