Snippets for megacmd 2.7.1 from Nix aarch64-linux
Sourced from https://hydra.nixos.org/log/c1hpxdnbc3x2yx4nsacr3lyp5zrqf31z-megacmd-2.7.1.drv.
-
/build/source/src/megacmdcommonutils.cpp:751:54: warning: '%6.2f' directive output may be truncated writing between 6 and 313 bytes into a region of size between 5 and 30 [-Wformat-truncation=] 751 | snprintf(aux, sizeof(aux), "||(%lld/%lld MB: %6.2f %%) ", completed / 1024 / 1024, total / 1024 / 1024, percentDowloaded); | ^~~~~ -
/build/source/src/megacmdcommonutils.cpp:747:49: warning: ' KB: ' directive output may be truncated writing 5 bytes into a region of size between 3 and 35 [-Wformat-truncation=] 747 | snprintf(aux, sizeof(aux), "||(%lld/%lld KB: %6.2f %%) ", completed / 1024, total / 1024, percentDowloaded); | ^~~~~ -
/build/source/src/megacmdshell/megacmdshellcommunications.cpp:172:24: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 172 | freopen(std::string(pathtolog).append(".out").c_str(),"w",stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/megacmdshell/megacmdshellcommunications.cpp:173:24: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 173 | freopen(std::string(pathtolog).append(".err").c_str(),"w",stderr); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/megacmd.cpp:6094:33: warning: 'void mega::MegaApi::getLastAvailableVersion(const char*, mega::MegaRequestListener*)' is deprecated [-Wdeprecated-declarations] 6094 | api->getLastAvailableVersion("BdARkQSQ", megaCmdListener.get()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/megacmdshell/megacmdshell.cpp:820:10: warning: ignoring return value of 'int chdir(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 820 | chdir(where.c_str()); | ~~~~~^~~~~~~~~~~~~~~ -
/build/source/src/megacmdshell/megacmdshell.cpp:2140:15: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 2140 | system("reset -I"); | ~~~~~~^~~~~~~~~~~~ -
/build/source/src/megacmdexecuter.cpp:2337:92: warning: 'virtual char* mega::MegaAccountDetails::getSubscriptionMethod()' is deprecated [-Wdeprecated-declarations] 2337 | std::unique_ptr<char[]> subscriptionMethod(extAccountDetails->getSubscriptionMethod()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ -
/build/source/src/megacmdexecuter.cpp:3409:21: warning: 'void mega::MegaApi::startUpload(const char*, mega::MegaNode*, const char*, int64_t, const char*, bool, bool, mega::MegaCancelToken*, mega::MegaTransferListener*)' is deprecated [-Wdeprecated-declarations] 3409 | api->startUpload( | ~~~~~~~~~~~~~~~~^ 3410 | removeTrailingSeparators(path).c_str(),//const char *localPath, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3411 | node,//MegaNode *parent, | ~~~~~~~~~~~~~~~~~~~~~~~~ 3412 | newname.size() ? newname.c_str() : nullptr,//const char *fileName, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3413 | MegaApi::INVALID_CUSTOM_MOD_TIME,//int64_t mtime, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3414 | nullptr,//const char *appData, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3415 | false, //bool isSourceTemporary, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3416 | false, //bool startFirst, | ~~~~~~~~~~~~~~~~~~~~~~~~~ 3417 | nullptr,//MegaCancelToken *cancelToken, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3418 | thelistener); | ~~~~~~~~~~~~ -
/build/source/src/megacmdexecuter.cpp:4211:24: warning: 'void mega::MegaApi::confirmAccount(const char*, const char*, mega::MegaRequestListener*)' is deprecated [-Wdeprecated-declarations] 4211 | api->confirmAccount(link.c_str(), passwd.c_str(), megaCmdListener2); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/megacmdexecuter.cpp:10194:37: warning: 'void mega::MegaApi::getLastAvailableVersion(const char*, mega::MegaRequestListener*)' is deprecated [-Wdeprecated-declarations]
-
/build/source/src/updater/UpdateTask.cpp:781:11: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 781 | system(dlcommand.c_str()); | ~~~~~~^~~~~~~~~~~~~~~~~~~ -
/build/source/src/megacmdlogger.cpp:34:84: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] 34 | constexpr const char* sLogTimestampFormat = "%04d-%02d-%02d_%02d-%02d-%02d.%06d"; | ^ -
/build/source/src/configurationmanager.cpp:294:37: warning: 'void mega::MegaApi::copySyncDataToCache(const char*, mega::MegaHandle, const char*, long long int, bool, bool, mega::MegaRequestListener*)' is deprecated [-Wdeprecated-declarations] 294 | api->copySyncDataToCache(thesync->localpath.c_str(), thesync->handle, nullptr, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 295 | thesync->fingerprint, thesync->active, false, newListenerPair.first->second.get()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/source/src/configurationmanager.cpp:503:31: warning: 'void mega::MegaApi::setLegacyExcludedNames(std::vector<std::__cxx11::basic_string<char> >*)' is deprecated [-Wdeprecated-declarations] 503 | api.setLegacyExcludedNames(&excludePatterns); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ -
/build/source/src/listeners.cpp:762:56: warning: '%.2f' directive output may be truncated writing between 3 and 313 bytes into a region of size between 3 and 29 [-Wformat-truncation=] 762 | snprintf(aux, sizeof(aux), "||(%lld/%lld MB: %.2f %%) ", | ^~~~ -
/build/source/src/listeners.cpp:758:51: warning: ' KB: ' directive output may be truncated writing 5 bytes into a region of size between 2 and 34 [-Wformat-truncation=] 758 | snprintf(aux, sizeof(aux), "||(%lld/%lld KB: %.2f %%) ", | ^~~~~ -
/build/source/src/listeners.cpp:896:54: warning: '%.2f' directive output may be truncated writing between 3 and 313 bytes into a region of size between 3 and 29 [-Wformat-truncation=] 896 | snprintf(aux, sizeof(aux), "||(%lld/%lld MB: %.2f %%) ", (long long)(transfer->getTransferredBytes() / 1024 / 1024), (long long)(transfer->getTotalBytes() / 1024 / 1024), (float)percentDownloaded); | ^~~~ -
/build/source/src/listeners.cpp:891:49: warning: ' KB: ' directive output may be truncated writing 5 bytes into a region of size between 2 and 34 [-Wformat-truncation=] 891 | snprintf(aux, sizeof(aux), "||(%lld/%lld KB: %.2f %%) ", (long long)(transfer->getTransferredBytes() / 1024), (long long)(transfer->getTotalBytes() / 1024), (float)percentDownloaded); | ^~~~~ -
/build/source/src/listeners.cpp:1095:54: warning: '%.2f' directive output may be truncated writing between 3 and 313 bytes into a region of size between 3 and 29 [-Wformat-truncation=] 1095 | snprintf(aux, sizeof(aux), "||(%lld/%lld MB: %.2f %%) ", (transferredbytes + getOngoingTransferredBytes()) / 1024 / 1024, (totalbytes + getOngoingTotalBytes() ) / 1024 / 1024, percentDownloaded); | ^~~~ -
/build/source/src/listeners.cpp:1091:49: warning: ' KB: ' directive output may be truncated writing 5 bytes into a region of size between 2 and 34 [-Wformat-truncation=] 1091 | snprintf(aux, sizeof(aux), "||(%lld/%lld KB: %.2f %%) ", (transferredbytes + getOngoingTransferredBytes()) / 1024, (totalbytes + getOngoingTotalBytes() ) / 1024, percentDownloaded); | ^~~~~