Skip to content

Fix is_str unused variable under Free-Threading builds #1144

Closed

Description

@sobolevn

During build I noticed this warning:

  src/msgspec/_core.c: In function ‘json_decode_dict_key’:
  src/msgspec/_core.c:17942:10: warning: unused variable ‘is_str’ [-Wunused-variable]
  17942 |     bool is_str = type->types == MS_TYPE_ANY || type->types == MS_TYPE_STR;
        |          ^~~~~~

Link: https://github.com/msgspec/msgspec/actions/runs/31476259980/job/93742042390

Activity

  1. self-assigned this
    on Aug 11, 2026
  2. sobolevn commented on Aug 11, 2026

    @sobolevn
    MemberAuthor

    I removed both the release and the tag, so we can fix the CI.

  3. added a commit that references this issue on Aug 11, 2026
    dcfd447
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions