Skip to content

fix: WASMビルド時のコンパイル警告を解消 - #9

Merged
ainyan03 merged 1 commit into
mainfrom
claude/fix-build-warnings
Feb 8, 2026
Merged

fix: WASMビルド時のコンパイル警告を解消#9
ainyan03 merged 1 commit into
mainfrom
claude/fix-build-warnings

Conversation

@ainyan03

@ainyan03 ainyan03 commented Feb 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • ##__VA_ARGS__(GNU拡張)を標準の , __VA_ARGS__ に変更(-Wgnu-zero-variadic-macro-arguments 解消)
  • int系 → size_t の暗黙変換に static_cast<size_t>() を追加(-Wsign-conversion 解消)
  • intint_fast16_t の暗黙変換に static_cast を追加(-Wimplicit-int-conversion 解消)

修正ファイル(8ファイル)

  • core/common.h - デバッグログマクロ
  • image/image_buffer.h - フォーマット変換・ブレンド呼び出し
  • image/pixel_format.h - convertFormat関数
  • image/pixel_format/rgba8_straight.h - blendUnderStraightのポインタ差分
  • image/viewport.h - copyRowDDABilinearのフォーマット変換
  • nodes/distributor_node.h - initPortsの引数
  • nodes/matte_node.h - フォーマット変換呼び出し
  • nodes/sink_node.h - フォーマット変換呼び出し

Test plan

  • pio test -e test_native 全202テストケース PASSED
  • CI WASMビルドで警告が0になること

- ##__VA_ARGS__ (GNU拡張) を標準の , __VA_ARGS__ に変更
- sign-conversion警告: int系→size_tの暗黙変換にstatic_castを追加
- 対象: common.h, image_buffer.h, pixel_format.h, rgba8_straight.h,
  viewport.h, distributor_node.h, matte_node.h, sink_node.h
@ainyan03
ainyan03 merged commit a05e4c2 into main Feb 8, 2026
6 checks passed
@ainyan03
ainyan03 deleted the claude/fix-build-warnings branch February 8, 2026 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant