diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2025-08-27 20:43:20 +0200 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-09-03 23:38:37 +0900 |
| commit | 794e4a3a26e33bdc0338a1302f68cfc6fb252eae (patch) | |
| tree | 57dec6610e5a2a7f6ce273b3324c0bcac403a27d /ext/json | |
| parent | 94ddf47624ad6f1288ca721e880be99aee838485 (diff) | |
[ruby/json] Fix a -Wreturn-type warning
Fix: https://github.com/ruby/json/pull/843
https://github.com/ruby/json/commit/d3f7f0452b
Co-Authored-By: Takashi Kokubun <takashikkbn@gmail.com>
Diffstat (limited to 'ext/json')
| -rw-r--r-- | ext/json/generator/generator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/generator/generator.c b/ext/json/generator/generator.c index d810927c58..8fcc980d47 100644 --- a/ext/json/generator/generator.c +++ b/ext/json/generator/generator.c @@ -1846,7 +1846,7 @@ static VALUE cState_allow_duplicate_key_p(VALUE self) return Qtrue; case JSON_DEPRECATED: return Qnil; - case JSON_RAISE: + default: return Qfalse; } } |
