Snippets for snapper 0.13.0 from Fedora i686
Sourced from https://kojipkgs.fedoraproject.org/packages/snapper/0.13.0/5.fc46/data/logs/i686/build.log.
-
FileUtils.cc:509:18: warning: ignoring return value of 'int chdir(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 509 | chdir("/"); | ~~~~~^~~~~ -
FileUtils.cc:545:18: warning: ignoring return value of 'int chdir(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 545 | chdir("/"); | ~~~~~^~~~~ -
FileUtils.cc:600:18: warning: ignoring return value of 'int chdir(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 600 | chdir("/"); | ~~~~~^~~~~ -
FileUtils.cc:604:14: warning: ignoring return value of 'int chdir(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 604 | chdir("/"); | ~~~~~^~~~~ -
FileUtils.cc:629:18: warning: ignoring return value of 'int chdir(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 629 | chdir("/"); | ~~~~~^~~~~ -
FileUtils.cc:633:14: warning: ignoring return value of 'int chdir(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 633 | chdir("/"); | ~~~~~^~~~~ -
FileUtils.cc:680:22: warning: ignoring return value of 'int chdir(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 680 | chdir("/"); | ~~~~~^~~~~ -
DBusMainLoop.cc:130:29: warning: ignoring return value of 'ssize_t read(int, void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 130 | read(wakeup_pipe[0], &arbitrary, 1); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
DBusMainLoop.cc:291:14: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 291 | write(s->wakeup_pipe[1], &arbitrary, 1); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
cmd-create.cc:196:23: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 196 | system(command.c_str()); | ~~~~~~^~~~~~~~~~~~~~~~~ -
/usr/include/c++/16/bits/new_allocator.h:183:66: warning: 'operator delete' called on pointer '__result' with nonzero offset 24 [-Wfree-nonheap-object] 183 | _GLIBCXX_OPERATOR_DELETE(_GLIBCXX_SIZED_DEALLOC(__p, __n)); | ^ -
mksubvolume.cc:143:11: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 143 | system("/usr/bin/udevadm settle --timeout 20"); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
installation-helper.cc:122:11: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 122 | system(("/bin/cp " + tmp_mount.getFullname() + "/etc/snapper/configs/root " + ris + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 123 | "/etc/snapper/configs").c_str()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
cmd-transfer-and-delete.cc:100:86: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘std::vector<snapper::BackupConfig>::size_type’ {aka ‘unsigned int’} [-Wformat=] 100 | "Running transfer and delete failed for %d of %ld backup configs.", | ~~^ | | | long int | %d 101 | backup_configs.size()), errors, backup_configs.size()); | ~~~~~~~~~~~~~~~~~~~~~ | | | std::vector<snapper::BackupConfig>::size_type {aka unsigned int} -
cmd-transfer-and-delete.cc:99:86: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘std::vector<snapper::BackupConfig>::size_type’ {aka ‘unsigned int’} [-Wformat=] 99 | string error = sformat(_("Running transfer and delete failed for %d of %ld backup config.", | ~~^ | | | long int | %d 100 | "Running transfer and delete failed for %d of %ld backup configs.", 101 | backup_configs.size()), errors, backup_configs.size()); | ~~~~~~~~~~~~~~~~~~~~~ | | | std::vector<snapper::BackupConfig>::size_type {aka unsigned int} -
cmd-list.cc:283:75: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘std::vector<snapper::BackupConfig>::size_type’ {aka ‘unsigned int’} [-Wformat=] 283 | "Running list failed for %d of %ld backup configs.", | ~~^ | | | long int | %d 284 | backup_configs.size()), errors, backup_configs.size()); | ~~~~~~~~~~~~~~~~~~~~~ | | | std::vector<snapper::BackupConfig>::size_type {aka unsigned int} -
cmd-list.cc:282:75: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘std::vector<snapper::BackupConfig>::size_type’ {aka ‘unsigned int’} [-Wformat=] 282 | string error = sformat(_("Running list failed for %d of %ld backup config.", | ~~^ | | | long int | %d 283 | "Running list failed for %d of %ld backup configs.", 284 | backup_configs.size()), errors, backup_configs.size()); | ~~~~~~~~~~~~~~~~~~~~~ | | | std::vector<snapper::BackupConfig>::size_type {aka unsigned int} -
cmd-delete.cc:126:73: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘std::vector<snapper::BackupConfig>::size_type’ {aka ‘unsigned int’} [-Wformat=] 126 | "Running delete failed for %d of %ld backup configs.", | ~~^ | | | long int | %d 127 | backup_configs.size()), errors, backup_configs.size()); | ~~~~~~~~~~~~~~~~~~~~~ | | | std::vector<snapper::BackupConfig>::size_type {aka unsigned int} -
cmd-delete.cc:125:73: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘std::vector<snapper::BackupConfig>::size_type’ {aka ‘unsigned int’} [-Wformat=] 125 | string error = sformat(_("Running delete failed for %d of %ld backup config.", | ~~^ | | | long int | %d 126 | "Running delete failed for %d of %ld backup configs.", 127 | backup_configs.size()), errors, backup_configs.size()); | ~~~~~~~~~~~~~~~~~~~~~ | | | std::vector<snapper::BackupConfig>::size_type {aka unsigned int} -
cmd-transfer.cc:127:75: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘std::vector<snapper::BackupConfig>::size_type’ {aka ‘unsigned int’} [-Wformat=] 127 | "Running transfer failed for %d of %ld backup configs.", | ~~^ | | | long int | %d 128 | backup_configs.size()), errors, backup_configs.size()); | ~~~~~~~~~~~~~~~~~~~~~ | | | std::vector<snapper::BackupConfig>::size_type {aka unsigned int} -
cmd-transfer.cc:126:75: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘std::vector<snapper::BackupConfig>::size_type’ {aka ‘unsigned int’} [-Wformat=] 126 | string error = sformat(_("Running transfer failed for %d of %ld backup config.", | ~~^ | | | long int | %d 127 | "Running transfer failed for %d of %ld backup configs.", 128 | backup_configs.size()), errors, backup_configs.size()); | ~~~~~~~~~~~~~~~~~~~~~ | | | std::vector<snapper::BackupConfig>::size_type {aka unsigned int} -
common.cc:32:11: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 32 | system("/usr/bin/find " SUBVOLUME " -mindepth 1 -maxdepth 1 -not -path " SUBVOLUME "/.snapshots " | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 33 | "-exec rm -r {} \\;"); | ~~~~~~~~~~~~~~~~~~~~~ -
sysconfig-get1.cc:57:11: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 57 | system("cp sysconfig-set1.txt sysconfig-set1.txt.tmp"); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~