Skip to content

Commit 8ab8a5a

Browse files
authored
Merge pull request #398 from hsbt/claude/vigilant-chebyshev-63ce11
Fix build failure on mswin due to empty UNREACHABLE_RETURN()
2 parents b136b7f + d2e1c88 commit 8ab8a5a

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

ext/msgpack/packer.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@
2525
#define MSGPACK_PACKER_IO_FLUSH_THRESHOLD_TO_WRITE_STRING_BODY (1024)
2626
#endif
2727

28-
#ifndef UNREACHABLE_RETURN
29-
// Ruby 2.5
30-
#define UNREACHABLE_RETURN() return
31-
#endif
32-
3328
struct msgpack_packer_t;
3429
typedef struct msgpack_packer_t msgpack_packer_t;
3530

@@ -418,7 +413,6 @@ static inline void msgpack_packer_write_string_value(msgpack_packer_t* pk, VALUE
418413

419414
if(RB_UNLIKELY(len > 0xffffffffL)) {
420415
rb_raise(rb_eArgError, "size of string is too long to pack: %lu bytes should be <= %ld", len, 0xffffffffL);
421-
UNREACHABLE_RETURN();
422416
}
423417

424418
if (RB_UNLIKELY(pk->compatibility_mode)) {

0 commit comments

Comments
 (0)