Description
I tried following the QUICKSTART.md instructions and found that this error: error: unused parameter ‘argc’ [-Werror=unused-parameter]
stopped me from generating the make file initially. I removed "-wError" in line 42 of ~/iotauth/entity/c/CMakeLists.txt:
target_compile_options(sst-c-api PUBLIC -Wall -Wextra -Wpedantic -Werror)
by changing it to:
target_compile_options(sst-c-api PUBLIC -Wall -Wextra -Wpedantic)
After making this modification, and re-running rm -rf *, cmake ../, and make in the build directory (~/iotauth/entity/c/examples/server_client_example/build), the compilation completed successfully.
It would be helpful if the QUICKSTART.md could either:
- Suggest this modification to users as a troubleshooting step if they encounter this specific compilation error.
Or, the project maintainers could consider - adjusting the CMakeLists.txt for examples to not include -Werror (or to explicitly mark unused parameters in the example source code) to ensure a smoother out-of-the-box build experience for new users.
Thank you for your consideration.
note:
java --version openjdk 17.0.15 2025-04-15
Ubuntu 22.04.5 LTS (Jammy Jellyfish)