Skip to content

RDKCOM-5665: RDKBDEV-3520,RDKBACCL-2161 rbuscli fails to build with “too many arguments” on the session commands - #461

Merged
karuna2git merged 1 commit into
rdkcentral:developfrom
ap934:wrynose-build-failure
Oct 21, 2026
Merged

karuna2git merged 1 commit into
rdkcentral:developfrom
ap934:wrynose-build-failure

Conversation

@ap934

@ap934 ap934 commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Reason for change: validate_and_execute_create_session_cmd() and validate_and_execute_get_session_cmd() are called as (argc, argv) but declared (). Under C23 (GCC 15) that is an error, declare them to match
Test Procedure: bitbake rdk-generic-broadband-image and the dependent packages
Risk : None

…too many arguments” on the session commands

Reason for change: validate_and_execute_create_session_cmd() and validate_and_execute_get_session_cmd() are called as (argc, argv) but declared (). Under C23 (GCC 15) that is an error, declare them to match
Test Procedure: bitbake rdk-generic-broadband-image and the dependent packages
Risk : None

Signed-off-by: ap934 <Akhil_P@comcast.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The narrowly scoped signature changes match existing callers and introduce no identified issues.

No open issues 🎉

What changed in this PR

Fixes the rbuscli session-command build errors under C23/GCC 15 by matching handler signatures to their existing callers.

Changes:

  • Adds argc and argv parameters to both session-command handlers.
  • Explicitly marks those parameters unused without changing runtime behavior.
File Description
utils/​rbuscli/​rbuscli.c Updates session-handler signatures for C23 compatibility.

Review effort: Balanced

@AkhilaReddyK7 AkhilaReddyK7 added the community-contribution Contribution from community label Oct 21, 2026
@karuna2git
karuna2git merged commit 1cd3abd into rdkcentral:develop Oct 21, 2026
10 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

community-contribution Contribution from community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants