summaryrefslogtreecommitdiff
path: root/pack.c
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2022-12-16 04:04:41 +0900
committerBenoit Daloze <eregontp@gmail.com>2022-12-16 12:15:50 +0100
commitee7a338d2b21a84d194015c3680bd2a95c0dd23f (patch)
treef99be0249bbc7f06a9a29fadecb5062e7121dcd2 /pack.c
parentb9ea83fc1c95dba0f5548e6bd1b2fa40c6e65e2d (diff)
downloadruby-ee7a338d2b21a84d194015c3680bd2a95c0dd23f.tar.gz
Unconditionally warn "unknown pack/unpack directive"
[Bug #19150]
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pack.c b/pack.c
index cb9cbb3794..3bdae01362 100644
--- a/pack.c
+++ b/pack.c
@@ -167,8 +167,8 @@ unknown_directive(const char *mode, char type, VALUE fmt)
snprintf(unknown, sizeof(unknown), "\\x%.2x", type & 0xff);
}
fmt = rb_str_quote_unprintable(fmt);
- rb_warning("unknown %s directive '%s' in '%"PRIsVALUE"'",
- mode, unknown, fmt);
+ rb_warn("unknown %s directive '%s' in '%"PRIsVALUE"'",
+ mode, unknown, fmt);
}
static float