summaryrefslogtreecommitdiff
path: root/regen
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-12-22 21:26:33 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-12-24 09:25:17 -0800
commitbeda03184afe46d6702e6e184c42e8fcf5691386 (patch)
tree14dd18d1f5874dd7fde89d9b0e3e49fae46e8021 /regen
parent2846acbffa436a8a6bda1f5b38257b700500bbf0 (diff)
downloadperl-beda03184afe46d6702e6e184c42e8fcf5691386.tar.gz
feature.h: Avoid compiler warning
unsigned >= 0 produces a warning, even if the 0 is actually a macro.
Diffstat (limited to 'regen')
-rwxr-xr-xregen/feature.pl13
1 files changed, 12 insertions, 1 deletions
diff --git a/regen/feature.pl b/regen/feature.pl
index cf3ba35d53..8ccc2d5ec1 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 <<EOI;
+#define FEATURE_$NAME\_IS_ENABLED \\
+ ( \\
+ CURRENT_FEATURE_BUNDLE <= FEATURE_BUNDLE_$last \\
+ || (CURRENT_FEATURE_BUNDLE == FEATURE_BUNDLE_CUSTOM && \\
+ FEATURE_IS_ENABLED$default("$name")) \\
+ )
+
+EOI
+ }
+ elsif ($last) {
print $h <<EOH3;
#define FEATURE_$NAME\_IS_ENABLED \\
( \\