Compilation with enabled logger gives warnings (or errors).
Steps to Reproduce the Problem
Similar to run_all_tests_with_docker.md
docker build -t buildelektra-sid \ --build-arg JENKINS_USERID=$(id -u) \ --build-arg JENKINS_GROUPID=$(id -g) \ -f scripts/docker/debian/sid/Dockerfile \ scripts/docker/debian/sid/ docker run -it --rm \ -v "$PWD:/home/jenkins/workspace" \ -w /home/jenkins/workspace \ buildelektra-sid
then in the container
cmake /home/jenkins/workspace \ -DBINDINGS="ALL;-DEPRECATED" \ -DPLUGINS="ALL;-DEPRECATED" \ -DTOOLS="ALL" \ -DENABLE_DEBUG="ON" \ -DKDB_DB_HOME="/home/jenkins/workspace/elektra-build-docker/.config/kdb/home" \ -DKDB_DB_SYSTEM="/home/jenkins/workspace/elektra-build-docker/.config/kdb/system" \ -DKDB_DB_SPEC="/home/jenkins/workspace/elektra-build-docker/.config/kdb/spec" \ -DBUILD_DOCUMENTATION="OFF" \ -DCMAKE_RULE_MESSAGES="OFF" \ -DCMAKE_INSTALL_PREFIX="/home/jenkins/workspace/elektra-install" \ -DCOMMON_FLAGS="-Werror" make -j 7
it works so far, but then
cmake -DENABLE_LOGGER=ON .. make -j 7
Thank you for reporting this problem!
I wonder why the build server does not catch this, I thought we had a build job that builds with logging enabled. Maybe you use a newer compiler as we have on our build server.
The code src/plugins/internalnotification/internalnotification.c is already quite old but the problem is obvious. A valid fix is to remove lines 87-97 as all the code is only about logging.
Could well be. The Docker image that I tested with has