HomeClusterLabs Projects

Low: controller: address format-overflow warnings

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Low: controller: address format-overflow warnings

When using -O3 to build pacemaker, gcc (14) will throw format-overflow
warnings for some possibly null '%s' directive arguments. While we could
address the current instance of such warning by introducing checks for
null pointers, let's just remove this log entry here since it is not
meaningful.

alerts.c:153:19: error: '%s' directive argument is null [-Werror=format-overflow=]
153 | crm_trace("Inserting alert key %s = '%s'", *key, value);

|                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

alerts.c:153:46: note: format string is defined here
153 | crm_trace("Inserting alert key %s = '%s'", *key, value);

|

Signed-off-by: Athos Ribeiro <athos.ribeiro@canonical.com>

Details

Provenance
Athos Ribeiro <athos.ribeiro@canonical.com>Authored on Jan 9 2025, 9:37 AM

Event Timeline

Athos Ribeiro <athos.ribeiro@canonical.com> committed rP961be70139c0: Low: controller: address format-overflow warnings (authored by Athos Ribeiro <athos.ribeiro@canonical.com>).Jan 9 2025, 1:03 PM

Commit No Longer Exists

This commit no longer exists in the repository.