PengZheng opened a new issue, #486: URL: https://github.com/apache/celix/issues/486
``` [2023/02/24 14:17:59:465]celix-master/libs/framework/src/bundle.c: In function ‘bundle_create’: [2023/02/24 14:17:59:468]celix-master/libs/framework/src/bundle.c:65:2: warning: reading through null pointer (argument 8) [-Wformat=] [2023/02/24 14:17:59:470] framework_logIfError(celix_frameworkLogger_globalLogger(), status, NULL, "Failed to create bundle"); ``` Caused by `if(0 == 0)` deadcode. ``` [2023/02/24 14:18:00:962]celix-master/libs/framework/src/framework.c:79:87: warning: format ‘%li’ expects argument of type ‘long int’, but argument 10 has type ‘size_t {aka unsigned int}’ [-Wformat=] [2023/02/24 14:18:00:968] fw_log(celix_frameworkLogger_globalLogger(), CELIX_LOG_LEVEL_WARNING, "Bundle '%s' (bnd id = %li) still in use. Use count is %zu, desired is %li", celix_bundle_getSymbolicName(entry->bnd), entry->bndId, entry->useCount, desiredUseCount); [2023/02/24 14:18:43:631]celix-master/bundles/pubsub/pubsub_admin_websocket/src/pubsub_websocket_topic_sender.c:300:28: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t {aka unsigned int}’ [-Wformat=] [2023/02/24 14:18:43:636] L_WARN("[PSA_WEBSOCKET_TS] Error sending websocket, written %d of total %lu bytes", bytes_written, bytes_to_write); ``` Format string warnings. ``` [2023/02/24 14:18:04:940]celix-master/libs/framework/src/celix_framework_utils.c:108:11: warning: ‘main’ is usually a function [-Wmain] [2023/02/24 14:18:04:942] void* main = dlopen(NULL, RTLD_NOW); ``` ``` [2023/02/24 14:18:11:026]celix-master/libs/utils/include/celix/Properties.h:141:50: warning: ‘nodiscard’ attribute directive ignored [-Wattributes] [2023/02/24 14:18:11:029] [[nodiscard]] const char* getValue() const { ``` `[nodiscard]` is C++17 only attribute. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@celix.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org