Snippets for mstflint 4.36.0 from Fedora ppc64le
Sourced from https://kojipkgs.fedoraproject.org/packages/mstflint/4.36.0/3.fc46/data/logs/ppc64le/build.log.
-
yaml/Yaml.cpp:1379:29: warning: catching polymorphic type 'class Yaml::Exception' by value [-Wcatch-value=] 1379 | catch(Exception e) | ^ -
yaml/Yaml.cpp:2254:32: warning: catching polymorphic type 'const class Yaml::Exception' by value [-Wcatch-value=] 2254 | catch (const Exception e) | ^ -
tools_md5.c:39:5: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 39 | return MD5((const unsigned char*)src, src_len, (unsigned char*)dst); | ^~~~~~ -
mlxsign_lib.cpp:111:21: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 111 | rc = SHA256_Init(&ctx); | ~~~~~~~~~~~^~~~~~ -
mlxsign_lib.cpp:113:23: warning: 'int SHA256_Update(SHA256_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 113 | rc = SHA256_Update(&ctx, (void*)(&_buff[0]), _buff.size()); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mlxsign_lib.cpp:115:22: warning: 'int SHA256_Final(unsigned char*, SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 115 | rc = SHA256_Final(&digest[0], &ctx); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ -
mlxsign_lib.cpp:132:21: warning: 'int SHA512_Init(SHA512_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 132 | rc = SHA512_Init(&ctx); | ~~~~~~~~~~~^~~~~~ -
mlxsign_lib.cpp:134:23: warning: 'int SHA512_Update(SHA512_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 134 | rc = SHA512_Update(&ctx, (void*)(&_buff[0]), _buff.size()); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mlxsign_lib.cpp:136:22: warning: 'int SHA512_Final(unsigned char*, SHA512_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 136 | rc = SHA512_Final(&digest[0], &ctx); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ -
mlxsign_lib.cpp:147:17: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 147 | RSA_free((RSA*)_privCtx); | ~~~~~~~~^~~~~~~~~~~~~~~~ -
mlxsign_lib.cpp:152:17: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 152 | RSA_free((RSA*)_pubCtx); | ~~~~~~~~^~~~~~~~~~~~~~~ -
mlxsign_lib.cpp:169:24: warning: 'int RSA_size(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 169 | return RSA_size((RSA*)_privCtx); | ~~~~~~~~^~~~~~~~~~~~~~~~ -
mlxsign_lib.cpp:200:26: warning: 'int RSA_size(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 200 | maxMsgSize = RSA_size((RSA*)_privCtx); | ~~~~~~~~^~~~~~~~~~~~~~~~ -
mlxsign_lib.cpp:223:18: warning: 'int RSA_sign(int, const unsigned char*, unsigned int, unsigned char*, unsigned int*, RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 223 | if (!RSA_sign(type, msg.data(), msg.size(), encryptedMsgTemp.data(), &signLen, (RSA*)_privCtx)) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mlxsign_lib.cpp:258:24: warning: 'int RSA_verify(int, const unsigned char*, unsigned int, const unsigned char*, unsigned int, RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 258 | result = RSA_verify(type, digest.data(), digest.size(), sig.data(), sig.size(), (RSA*)_pubCtx); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mlxsign_lib.cpp:308:37: warning: 'RSA* PEM_read_RSAPrivateKey(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 308 | rsa = PEM_read_RSAPrivateKey(fp, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ -
mlxsign_lib.cpp:292:25: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 292 | RSA_free((RSA*)(ctx)); \ | ~~~~~~~~^~~~~~~~~~~~~ -
mlxsign_lib.cpp:313:34: warning: 'RSA* PEM_read_RSA_PUBKEY(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 313 | rsa = PEM_read_RSA_PUBKEY(fp, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ -
mlxsign_lib.cpp:337:41: warning: 'RSA* PEM_read_bio_RSAPrivateKey(BIO*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 337 | rsa = PEM_read_bio_RSAPrivateKey(keybio, &rsa, NULL, NULL); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ -
mlxsign_lib.cpp:342:38: warning: 'RSA* PEM_read_bio_RSA_PUBKEY(BIO*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 342 | rsa = PEM_read_bio_RSA_PUBKEY(keybio, &rsa, NULL, NULL); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ -
mlxsign_lib.cpp:359:23: warning: 'HMAC_CTX* HMAC_CTX_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 359 | ctx = HMAC_CTX_new(); | ~~~~~~~~~~~~^~ -
mlxsign_lib.cpp:365:21: warning: 'int HMAC_Init_ex(HMAC_CTX*, const void*, int, const EVP_MD*, ENGINE*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 365 | if (HMAC_Init_ex((HMAC_CTX*)ctx, (char*)key.data(), key.size(), EVP_sha512(), NULL) == 0) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mlxsign_lib.cpp:387:20: warning: 'int HMAC_Update(HMAC_CTX*, const unsigned char*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 387 | if (HMAC_Update((HMAC_CTX*)ctx, (unsigned char*)data.data(), data.size()) == 0) | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mlxsign_lib.cpp:396:15: warning: 'int HMAC_Final(HMAC_CTX*, unsigned char*, unsigned int*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 396 | HMAC_Final((HMAC_CTX*)ctx, digest.data(), &len); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mlxsign_lib.cpp:406:18: warning: 'void HMAC_CTX_free(HMAC_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 406 | HMAC_CTX_free((HMAC_CTX*)ctx); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ -
fwctrl.c:144:22: warning: unused variable 'mnvda_reg_id' [-Wunused-variable] 144 | int mnvda_reg_id = 0x9024; | ^~~~~~~~~~~~ -
../include/mtcr_ul/fwctrl_ioctl.h:47:16: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type '__u64' {aka 'long unsigned int'} [-Wformat=] 47 | printf("%s: %s %d: " format, FWCTL_ENV_VAR_DEBUG, __func__, __LINE__, ## arg); \ | ^~~~~~~~~~~~~ -
mtcr_ul_com.c:2385:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2385 | if (((p = strstr(name, "ibdr-")) != 0) || ((p = strstr(name, "iblid-")) != 0) || ((p = strstr(name, "lid-")) != 0)) | ^ -
mtcr_ul_com.c:2385:51: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2385 | if (((p = strstr(name, "ibdr-")) != 0) || ((p = strstr(name, "iblid-")) != 0) || ((p = strstr(name, "lid-")) != 0)) | ^ -
mtcr_ul_com.c:2385:90: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2385 | if (((p = strstr(name, "ibdr-")) != 0) || ((p = strstr(name, "iblid-")) != 0) || ((p = strstr(name, "lid-")) != 0)) | ^ -
mtcr_ul_com.c:4906:17: warning: variable 'cmdif_size' set but not used [-Wunused-but-set-variable=] 4906 | int mad_rc, cmdif_size = 0; | ^~~~~~~~~~ -
fw_comps_mgr_dma_access.cpp:272:13: warning: variable 'nIteration' set but not used [-Wunused-but-set-variable=] 272 | int nIteration = 0; | ^~~~~~~~~~ -
my_getopt.c:796:22: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 796 | char* temp = my_index(optstring, c); | ^~~~~~~~ -
mlxcfg_ui.cpp:184:21: warning: ‘MEM[(ParamType *)&o + 64B]’ may be used uninitialized [-Wmaybe-uninitialized] 184 | o.paramType = p.type; | ~~^~~~ -
fs3_ops.h:306:18: warning: ‘virtual bool Fs3Operations::ParseDevData(bool, bool, VerifyCallBack)’ was hidden [-Woverloaded-virtual=] 306 | virtual bool ParseDevData(bool quickQuery = true, bool verbose = false, VerifyCallBack verifyCallBackFunc = (VerifyCallBack)NULL); | ^~~~~~~~~~~~ -
fw_ops.cpp:1217:15: warning: variable ‘CurrentIteration’ set but not used [-Wunused-but-set-variable=] 1217 | u_int32_t CurrentIteration = 0; | ^~~~~~~~~~~~~~~~ -
fs3_ops.h:69:66: warning: enum constant in boolean context [-Wint-in-bool-context] 69 | chip_type == CT_BLUEFIELD2 || chip_type == CT_BLUEFIELD3 || CT_CONNECTX9_PURE_PCIE_SWITCH || \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
fs3_ops.cpp:366:89: warning: ‘%s’ directive output may be truncated writing up to 128 bytes into a region of size 97 [-Wformat-truncation=] 366 | snprintf(_fs3ImgInfo.ext_info.prs_name, sizeof(_fs3ImgInfo.ext_info.prs_name), "%s", image_info.prs_name); | ^~ ~~~~~~~~~~~~~~~~~~~ -
server_request.cpp:503:33: warning: ‘CURLOPT_PROGRESSFUNCTION’ is deprecated: since 7.32.0. Use CURLOPT_XFERINFOFUNCTION [-Wdeprecated-declarations] 503 | curl_easy_setopt(_curl, CURLOPT_PROGRESSFUNCTION, progress_func); | ^~~~~~~~~~~~~~~~~~~~~~~~ -
mlxfwmanager.cpp:2083:9: warning: variable ‘res’ set but not used [-Wunused-but-set-variable=] 2083 | int res = 0; | ^~~ -
../mlxfwops/lib/aux_tlv_ops.cpp:147:28: warning: 'fsize' may be used uninitialized [-Wmaybe-uninitialized] 147 | _rawFileBuff.resize(fsize); | ^ -
subcommands.cpp:1421:19: warning: argument 1 null where non-null expected [-Wnonnull] 1421 | fclose(out); | ~~~~~~^~~~~ -
mstfwctrl.c:84:9: warning: ignoring return value of ‘fchdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 84 | fchdir(curfd); | ^~~~~~~~~~~~~ -
mstfwctrl.c:133:64: warning: ‘%s’ directive output may be truncated writing up to 4078 bytes into a region of size 53 [-Wformat-truncation=] 133 | snprintf(dev->ctldev, sizeof(dev->ctldev), "/dev/fwctl/%s", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ 134 | sysfs_path + strlen("/sys/class/fwctl/")); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mstfwctrl.c:135:49: warning: ‘%s’ directive output may be truncated writing up to 4082 bytes into a region of size 64 [-Wformat-truncation=] 135 | snprintf(dev->mdev, sizeof(dev->mdev), "%s", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ 136 | tmp + strlen("/sys/devices/")); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mdevices_info.c:459:13: warning: unused variable ‘done’ [-Wunused-variable] 459 | int done = 0; | ^~~~ -
mdevices_info.c:856:13: warning: the comparison will always evaluate as ‘true’ for the address of ‘dev_name’ will never be NULL [-Waddress] 856 | if (devs[i].dev_name && (strstr(devs[i].dev_name, "cable_") != NULL)) | ^~~~ -
mlxlink_enums.h:1798:49: warning: bitwise operation between different enumeration types 'IB_LINK_SPEED' and 'ETH_LINK_SPEED_EXT' is deprecated [-Wdeprecated-enum-enum-conversion] 1798 | #define LINK_SPEED_200G_LANE (IB_LINK_SPEED_XDR | ETH_LINK_SPEED_EXT_200GAUI_1 | ETH_LINK_SPEED_EXT_400GAUI_2 | ETH_LINK_SPEED_EXT_800GAUI_4 | ETH_LINK_SPEED_EXT_1_6TAUI_8) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~