diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2022-12-16 04:04:41 +0900 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2022-12-16 12:15:50 +0100 |
commit | ee7a338d2b21a84d194015c3680bd2a95c0dd23f (patch) | |
tree | f99be0249bbc7f06a9a29fadecb5062e7121dcd2 /pack.c | |
parent | b9ea83fc1c95dba0f5548e6bd1b2fa40c6e65e2d (diff) |
Unconditionally warn "unknown pack/unpack directive"
[Bug #19150]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6948
Diffstat (limited to 'pack.c')
-rw-r--r-- | pack.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |