Skip to content

ci(3rd-party): drop -Wconversion from omnivoice; widen debug src1_str buffer#23

Merged
lalalune merged 1 commit into
mainfrom
eliza/ci-3rdparty-followup
May 19, 2026
Merged

ci(3rd-party): drop -Wconversion from omnivoice; widen debug src1_str buffer#23
lalalune merged 1 commit into
mainfrom
eliza/ci-3rdparty-followup

Conversation

@lalalune
Copy link
Copy Markdown
Member

Follow-up to PR #21-DLLAMA_FATAL_WARNINGS=ON exposed two more -Werror= failures on ubuntu-24-llguidance:

  1. omnivoice_lib failing on -Werror=conversion:

    src/llama-adapter.h:86:30: error: conversion from std::unordered_map<…>::size_type
      (aka unsigned long) to uint32_t may change value [-Werror=conversion]
    

    The warning is in upstream llama core headers, not omnivoice's code. Drop -Wconversion (and the now-pointless -Wno-sign-conversion) from omnivoice_lib, same rationale as the -Wshadow carve-out from PR fix(omnivoice): drop -Wshadow to unblock LLAMA_FATAL_WARNINGS (CI 3rd-party) #21.

  2. common/debug.cpp:167 failing on -Werror=format-truncation:

    '}' directive output may be truncated writing 1 byte into a region of size between 0 and 127
    

    src1_str was 256 bytes; src1->name is up to GGML_MAX_NAME=128 (omnivoice bumps it from 64 PUBLIC on ggml). Widen the buffer to 512 to give the worst-case name + shape string headroom.

Test plan

  • CI (3rd-party) ubuntu-24-llguidance green

… buffer

Two follow-ups for LLAMA_FATAL_WARNINGS=ON (CI 3rd-party / ubuntu-24-llguidance):

omnivoice_lib still tripped `-Werror=conversion` after PR #21:

  src/llama-adapter.h:86:30: error: conversion from
    std::unordered_map<...>::size_type (aka unsigned long) to uint32_t
    may change value [-Werror=conversion]

Same rationale as the -Wshadow carve-out — the warning is in upstream
llama core headers, not omnivoice code. Drop -Wconversion from
omnivoice_lib's compile options. -Wno-sign-conversion is already
dropped further down so the variable now has no purpose; remove it.

common/debug.cpp tripped -Werror=format-truncation= at line 167:

  '}' directive output may be truncated writing 1 byte into a region
   of size between 0 and 127

The src1_str buffer was 256 bytes for a snprintf of '%s{%s}' where
src1->name can be up to GGML_MAX_NAME=128 (omnivoice bumps the default
64 to 128 PUBLIC on ggml). GCC can't prove the bound and rejects the
write. Widen the buffer to 512 to give the worst-case name + shape
string headroom.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 19, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6cc108f3-4ed4-444a-8777-62a79b70f705

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch eliza/ci-3rdparty-followup

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@lalalune lalalune merged commit a3b5ce7 into main May 19, 2026
44 of 95 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant