Snippets for acpitool 0.5.1 from Nix aarch64-darwin
Sourced from https://hydra.nixos.org/log/06rvbhrizxi2diwrnzgvy4zwghjs04bx-acpitool-0.5.1.drv.
-
./acpitool.h:27:9: warning: 'ACPITOOL_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard] 27 | #ifndef ACPITOOL_H | ^~~~~~~~~~ -
acpitool.cpp:69:16: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 69 | filename = "/proc/acpi/info"; | ^ -
acpitool.cpp:70:17: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 70 | filename2 = "/sys/module/acpi/parameters/acpica_version"; | ^ -
acpitool.cpp:107:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 107 | } | ^ -
acpitool.cpp:142:16: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 142 | filename = "/proc/sys/kernel/osrelease"; | ^ -
acpitool.cpp:190:16: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 190 | filename = "/proc/sys/kernel/osrelease"; | ^ -
acpitool.cpp:231:15: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 231 | dirname = "/proc/acpi/thermal_zone/"; | ^ -
acpitool.cpp:365:12: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 365 | dirname = "/proc/acpi/fan/"; | ^ -
acpitool.cpp:374:4: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] 374 | sprintf(filename[fan_count], "/proc/acpi/fan/%s/state", name); | ^ -
acpitool.cpp:422:16: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 422 | filename = "/proc/acpi/wakeup"; | ^ -
acpitool.cpp:467:16: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 467 | filename = "/proc/acpi/wakeup"; | ^ -
acpitool.cpp:534:16: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 534 | filename = "/proc/acpi/sleep"; // nice default values // | ^ -
acpitool.cpp:535:11: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 535 | str = "3"; | ^ -
acpitool.cpp:541:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 541 | filename = "/sys/power/state"; | ^ -
acpitool.cpp:542:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 542 | str = "mem"; | ^ -
acpitool.cpp:545:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 545 | case 4 : if(Kernel_24) str = "4"; | ^ -
acpitool.cpp:548:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 548 | filename = "/sys/power/state"; | ^ -
acpitool.cpp:549:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 549 | str = "disk"; | ^ -
ac_adapter.cpp:62:15: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 62 | dirname = "/proc/acpi/ac_adapter/"; | ^ -
ac_adapter.cpp:71:13: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] 71 | sprintf(filename[ac_count], "/proc/acpi/ac_adapter/%s/state", name); | ^ -
ac_adapter.cpp:99:15: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 99 | dirname = "/proc/acpi/ac_adapter/"; | ^ -
ac_adapter.cpp:108:13: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] 108 | sprintf(filename[ac_count], "/proc/acpi/ac_adapter/%s/state", name); | ^ -
ac_adapter.cpp:157:15: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 157 | dirname = "/sys/class/power_supply/"; //find all entries in this dir | ^ -
ac_adapter.cpp:176:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] 176 | sprintf(temp, "/sys/class/power_supply/%s/type", name); | ^ -
ac_adapter.cpp:189:5: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] 189 | sprintf(filename[findex], "/sys/class/power_supply/%s/uevent", name); | ^ -
ac_adapter.cpp:225:29: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] 225 | sscanf(str, "%[^=]s %*s %[^\n]", attr); | ~^~~ -
ac_adapter.cpp:226:36: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] 226 | sscanf(str, "%*[^=] %*c %s %[^\n]",temp); | ~^~~ -
toshiba.cpp:50:16: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 50 | filename = "/proc/acpi/toshiba"; | ^ -
toshiba.cpp:87:16: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 87 | filename = "/proc/acpi/toshiba/fan"; | ^ -
toshiba.cpp:137:16: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 137 | filename = "/proc/acpi/toshiba/lcd"; | ^ -
toshiba.cpp:171:16: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 171 | filename = "/proc/acpi/toshiba/fan"; | ^ -
toshiba.cpp:185:5: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] 185 | sprintf(str, "force_on:%d", s); | ^ -
toshiba.cpp:205:16: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 205 | filename = "/proc/acpi/toshiba/lcd"; | ^ -
toshiba.cpp:219:5: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] 219 | sprintf(str, "brightness:%d", l); | ^ -
toshiba.cpp:236:16: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 236 | filename = "/proc/acpi/toshiba/video"; | ^ -
asus.cpp:50:16: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 50 | filename = "/proc/acpi/asus"; | ^ -
asus.cpp:87:16: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 87 | filename = "/proc/acpi/asus/brn"; | ^ -
asus.cpp:121:16: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 121 | filename = "/proc/acpi/asus/brn"; | ^ -
asus.cpp:149:16: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 149 | filename = "/proc/acpi/asus/disp"; | ^ -
asus.cpp:204:16: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 204 | filename = "/proc/acpi/asus/info"; | ^ -
asus.cpp:268:16: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 268 | filename = "/proc/acpi/asus/lcd"; | ^ -
asus.cpp:293:16: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 293 | filename = "/proc/acpi/asus/mled"; | ^ -
asus.cpp:318:16: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 318 | filename = "/proc/acpi/asus/wled"; | ^ -
thinkpad.cpp:17:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 17 | filename = "/proc/acpi/ibm"; | ^ -
thinkpad.cpp:38:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 38 | filename = "/proc/acpi/ibm/bay"; | ^ -
thinkpad.cpp:59:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 59 | filename = "/proc/acpi/ibm/brightness"; | ^ -
thinkpad.cpp:85:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 85 | filename = "/proc/acpi/ibm/fan"; | ^ -
cpu.cpp:107:12: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 107 | dirname = "/proc/acpi/processor/"; //find all entries in this dir // | ^ -
cpu.cpp:130:9: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] 130 | sprintf(filename[findex], "/proc/acpi/processor/%s/info", name); | ^ -
cpu.cpp:134:9: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] 134 | sprintf(filename[findex], "/proc/acpi/processor/%s/power", name); | ^ -
cpu.cpp:138:9: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] 138 | sprintf(filename[findex], "/proc/acpi/processor/%s/throttling", name); | ^ -
battery.cpp:360:15: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 360 | dirname = "/proc/acpi/battery/"; //find all entries in this dir | ^ -
battery.cpp:385:7: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] 385 | sprintf(filename[findex], "/proc/acpi/battery/%s/info", name); | ^ -
battery.cpp:389:7: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] 389 | sprintf(filename[findex], "/proc/acpi/battery/%s/state", name); | ^ -
battery.cpp:543:15: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 543 | dirname = "/sys/class/power_supply/"; //find all entries in this dir | ^ -
battery.cpp:567:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] 567 | sprintf(temp, "/sys/class/power_supply/%s/type", name); | ^ -
battery.cpp:582:5: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] 582 | sprintf(filename[findex], "/sys/class/power_supply/%s/uevent", name); | ^ -
battery.cpp:749:15: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 749 | dirname = "/proc/acpi/battery/"; | ^ -
battery.cpp:798:15: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] 798 | dirname = "/sys/class/power_supply/"; | ^ -
battery.cpp:817:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] 817 | sprintf(filename[findex], "/sys/class/power_supply/%s/type", name); | ^