Skip to content

Fix nmsgtool compiler warning when building without rdkafka/json-c#181

Open
regalk13 wants to merge 2 commits intonextfrom
fix-compiler-warn
Open

Fix nmsgtool compiler warning when building without rdkafka/json-c#181
regalk13 wants to merge 2 commits intonextfrom
fix-compiler-warn

Conversation

@regalk13
Copy link

@regalk13 regalk13 commented Feb 4, 2026

  • Removed guards around function calls, which was causing unused function warning.

  • Tests were failing when json-c was disabled because they unconditionally called json-related functions that weren't available. This PR adds conditional test execution by exporting a USE_JSON variable from the build system and wrapping all json-dependent operations in conditionals across all tests. When json-c is disabled, tests now execute no-op commands followed by check calls to properly register as passing rather than failing on unavailable functions.

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