-
Notifications
You must be signed in to change notification settings - Fork 210
Open
Description
Describe the bug
I am getting a warning:
warning: passing NULL to non-pointer argument 1 of `'nullable<T>::nullable(T) [with T = long long int]')
Would it be possible to correct this for future versions?
Environment
-
ESP-Matter Commit Id: 46d1af5
-
ESP-IDF Commit Id: 4c2820d377d1375e787bcef612f0c32c1427d183
-
SoC (eg: ESP32 or ESP32-C3): ESP32-C6
-
Device Logs (Please attach the log file):
-
Host Machine OS: Ubuntu 24.04.3 LTS
-
Host Machine Python version:
-
Commissioner app and versions if present:
-
Home hub app and versions if present:
-
Commissioner's logs if present:
Any additional details
/home/user/dev/esp-matter/examples/all_device_types_app/main/esp_matter_console_helpers.cpp: In function 'int esp_matter::data_model::create(uint8_t)':
/home/user/dev/esp-matter/examples/all_device_types_app/main/esp_matter_console_helpers.cpp:476:113: warning: passing NULL to non-pointer argument 1 of 'nullable<T>::nullable(T) [with T = long long int]' [-Wconversion-null]
476 | esp_matter::cluster::electrical_power_measurement::attribute::create_voltage(power_cluster, NULL);
| ^~~~
In file included from /home/user/dev/esp-matter/components/esp_matter/data_model/esp_matter_data_model.h:17,
from /home/user/dev/esp-matter/components/esp_matter/data_model/esp_matter_attribute.h:17,
from /home/user/dev/esp-matter/components/esp_matter/esp_matter.h:24,
from /home/user/dev/esp-matter/examples/all_device_types_app/main/esp_matter_console_helpers.cpp:12:
/home/user/dev/esp-matter/components/esp_matter/data_model/esp_matter_attribute_utils.h:173:16: note: declared here
173 | nullable(T value)
| ~~^~~~~
/home/user/dev/esp-matter/examples/all_device_types_app/main/esp_matter_console_helpers.cpp:477:120: warning: passing NULL to non-pointer argument 1 of 'nullable<T>::nullable(T) [with T = long long int]' [-Wconversion-null]
477 | esp_matter::cluster::electrical_power_measurement::attribute::create_active_current(power_cluster, NULL);
| ^~~~
/home/user/dev/esp-matter/components/esp_matter/data_model/esp_matter_attribute_utils.h:173:16: note: declared here
173 | nullable(T value)
| ~~^~~~~Metadata
Metadata
Assignees
Labels
No labels