Advertisement
KukuRuzo

psi warnings

May 28th, 2022
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 12.42 KB | None | 0 0
  1. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/stuntypes.cpp: In function 'QString XMPP::StunTypes::attributeValueToString(int, const QByteArray&, const quint8*, const quint8*)':
  2. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/stuntypes.cpp:448:16: warning: enumeration value 'REQUESTED_ADDRESS_FAMILY' not handled in switch [-Wswitch]
  3.   448 |         switch ((Attribute)type) {
  4.       |                ^
  5. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/stuntypes.cpp:448:16: warning: enumeration value 'ACCESS_TOKEN' not handled in switch [-Wswitch]
  6. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/stuntypes.cpp:448:16: warning: enumeration value 'MESSAGE_INTEGRITY_SHA256' not handled in switch [-Wswitch]
  7. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/stuntypes.cpp:448:16: warning: enumeration value 'PASSWORD_ALGORITHM' not handled in switch [-Wswitch]
  8. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/stuntypes.cpp:448:16: warning: enumeration value 'USERHASH' not handled in switch [-Wswitch]
  9. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/stuntypes.cpp:448:16: warning: enumeration value 'RESPONSE_PORT' not handled in switch [-Wswitch]
  10. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/stuntypes.cpp:448:16: warning: enumeration value 'CONNECTION_ID' not handled in switch [-Wswitch]
  11. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/stuntypes.cpp:448:16: warning: enumeration value 'ADDITIONAL_ADDRESS_FAMILY' not handled in switch [-Wswitch]
  12. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/stuntypes.cpp:448:16: warning: enumeration value 'ADDRESS_ERROR_CODE' not handled in switch [-Wswitch]
  13. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/stuntypes.cpp:448:16: warning: enumeration value 'PASSWORD_ALGORITHMS' not handled in switch [-Wswitch]
  14. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/stuntypes.cpp:448:16: warning: enumeration value 'ALTERNATE_DOMAIN' not handled in switch [-Wswitch]
  15. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/stuntypes.cpp:448:16: warning: enumeration value 'ICMP' not handled in switch [-Wswitch]
  16. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/stuntypes.cpp:448:16: warning: enumeration value 'TRANSACTION_TRANSMIT_COUNTER' not handled in switch [-Wswitch]
  17. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/stuntypes.cpp:448:16: warning: enumeration value 'CACHE_TIMEOUT' not handled in switch [-Wswitch]
  18. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/stuntypes.cpp:448:16: warning: enumeration value 'RESPONSE_ORIGIN' not handled in switch [-Wswitch]
  19. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/stuntypes.cpp:448:16: warning: enumeration value 'OTHER_ADDRESS' not handled in switch [-Wswitch]
  20. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/stuntypes.cpp:448:16: warning: enumeration value 'ECN_CHECK' not handled in switch [-Wswitch]
  21. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/stuntypes.cpp:448:16: warning: enumeration value 'THIRD_PARTY_AUTHORIZATION' not handled in switch [-Wswitch]
  22. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/stuntypes.cpp:448:16: warning: enumeration value 'MOBILITY_TICKET' not handled in switch [-Wswitch]
  23. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/dtls.cpp: In member function 'bool XMPP::Dtls::FingerPrint::parse(const QDomElement&)':
  24. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/dtls.cpp:68:51: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
  25.    68 |     setup        = Setup(setupIt == fpRoles.end() ? NotSet : std::distance(fpRoles.begin(), setupIt) + 1);
  26.       |                          ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  27. In file included from /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/SctpAssociation.cpp:6:
  28. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/SctpAssociation.cpp: In member function 'void RTC::SctpAssociation::SendSctpMessage(RTC::DataConsumer*, uint32_t, const uint8_t*, size_t, RTC::SctpAssociation::onQueuedCallback*)':
  29. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/Logger.hpp:22:16: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' {aka 'long long unsigned int'} [-Wformat=]
  30.    22 |         qFatal("(ABORT) " desc, ##__VA_ARGS__);                                                                        \
  31. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/Logger.hpp:22:16: note: in definition of macro 'MS_ABORT'
  32.    22 |         qFatal("(ABORT) " desc, ##__VA_ARGS__);                                                                        \
  33.       |                ^~~~~~~~~~
  34. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/SctpAssociation.cpp:342:5: note: in expansion of macro 'MS_ASSERT'
  35.   342 |     MS_ASSERT(len <= this->maxSctpMessageSize,
  36.       |     ^~~~~~~~~
  37. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/SctpAssociation.cpp:343:79: note: format string is defined here
  38.   343 |               "given message exceeds max allowed message size [message size:%lu, max message size:%lu]", len,
  39.       |                                                                             ~~^
  40.       |                                                                               |
  41.       |                                                                               long unsigned int
  42.       |                                                                             %llu
  43. In file included from /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/SctpAssociation.cpp:6:
  44. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/Logger.hpp:22:16: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t' {aka 'long long unsigned int'} [-Wformat=]
  45.    22 |         qFatal("(ABORT) " desc, ##__VA_ARGS__);                                                                        \
  46. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/Logger.hpp:22:16: note: in definition of macro 'MS_ABORT'
  47.    22 |         qFatal("(ABORT) " desc, ##__VA_ARGS__);                                                                        \
  48.       |                ^~~~~~~~~~
  49. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/SctpAssociation.cpp:342:5: note: in expansion of macro 'MS_ASSERT'
  50.   342 |     MS_ASSERT(len <= this->maxSctpMessageSize,
  51.       |     ^~~~~~~~~
  52. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/SctpAssociation.cpp:343:101: note: format string is defined here
  53.   343 |               "given message exceeds max allowed message size [message size:%lu, max message size:%lu]", len,
  54.       |                                                                                                   ~~^
  55.       |                                                                                                     |
  56.       |                                                                                                     long unsigned int
  57.       |                                                                                                   %llu
  58. In file included from /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/SctpAssociation.cpp:6:
  59. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/SctpAssociation.cpp: In member function 'void RTC::SctpAssociation::OnUsrSctpReceiveSctpData(uint16_t, uint16_t, uint32_t, int, const uint8_t*, size_t)':
  60. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/Logger.hpp:7:40: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'long long unsigned int'} [-Wformat=]
  61.     7 | #define MS_WARN_TAG(tag, ...) qWarning("sctp:" __VA_ARGS__)
  62. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/Logger.hpp:7:40: note: in definition of macro 'MS_WARN_TAG'
  63.     7 | #define MS_WARN_TAG(tag, ...) qWarning("sctp:" __VA_ARGS__)
  64.       |                                        ^~~~~~~
  65. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/SctpAssociation.cpp:575:96: note: format string is defined here
  66.   575 |                     "ongoing received message exceeds max allowed message size [message size:%lu, max message "
  67.       |                                                                                              ~~^
  68.       |                                                                                                |
  69.       |                                                                                                long unsigned int
  70.       |                                                                                              %llu
  71. In file included from /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/SctpAssociation.cpp:6:
  72. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/Logger.hpp:7:40: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' {aka 'long long unsigned int'} [-Wformat=]
  73.     7 | #define MS_WARN_TAG(tag, ...) qWarning("sctp:" __VA_ARGS__)
  74. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/Logger.hpp:7:40: note: in definition of macro 'MS_WARN_TAG'
  75.     7 | #define MS_WARN_TAG(tag, ...) qWarning("sctp:" __VA_ARGS__)
  76.       |                                        ^~~~~~~
  77. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/SctpAssociation.cpp:576:29: note: format string is defined here
  78.   576 |                     "size:%lu, eor:%u]",
  79.       |                           ~~^
  80.       |                             |
  81.       |                             long unsigned int
  82.       |                           %llu
  83. In file included from /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/SctpAssociation.cpp:6:
  84. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/SctpAssociation.cpp: In member function 'void RTC::SctpAssociation::OnUsrSctpReceiveSctpNotification(sctp_notification*, size_t)':
  85. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/Logger.hpp:7:40: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'u_long' {aka 'long unsigned int'} [-Wformat=]
  86.     7 | #define MS_WARN_TAG(tag, ...) qWarning("sctp:" __VA_ARGS__)
  87. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/Logger.hpp:7:40: note: in definition of macro 'MS_WARN_TAG'
  88.     7 | #define MS_WARN_TAG(tag, ...) qWarning("sctp:" __VA_ARGS__)
  89.       |                                        ^~~~~~~
  90. In file included from /home/vitaly/github/psi/btest/iris/usrsctp/src/UsrSCTPProject/usrsctplib/usrsctp.h:44,
  91.                  from /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/SctpAssociation.hpp:8,
  92.                  from /home/vitaly/github/psi/psi-plus-snapshots/iris/src/irisnet/noncore/sctp/DepUsrSCTP.hpp:5,
  93.                  from /home/vitaly/github/psi/btest/iris/src/xmpp/iris_autogen/3GAE3ZWGYF/../../../../../../psi-plus-snapshots/iris/src/xmpp/xmpp-im/jingle-sctp-association_p.h:24,
  94.                  from /home/vitaly/github/psi/btest/iris/src/xmpp/iris_autogen/3GAE3ZWGYF/moc_jingle-sctp-association_p.cpp:10,
  95.                  from /home/vitaly/github/psi/btest/iris/src/xmpp/iris_autogen/mocs_compilation.cpp:16:
  96. /home/vitaly/github/mxe/usr/x86_64-w64-mingw32.shared/include/winsock2.h:15:2: warning: #warning Please include winsock2.h before windows.h [-Wcpp]
  97.    15 | #warning Please include winsock2.h before windows.h
  98.       |  ^~~~~~~
  99. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/xmpp/xmpp-im/xmpp_hash.cpp: In static member function 'static XMPP::Hash XMPP::Hash::fastestHash(const XMPP::Features&)':
  100. /home/vitaly/github/psi/psi-plus-snapshots/iris/src/xmpp/xmpp-im/xmpp_hash.cpp:281:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::array<const char*, 7>::size_type' {aka 'long long unsigned int'} [-Wsign-compare]
  101.   281 |     for (int i = 0; i < qcaAlgos.size(); i++) {
  102.       |                     ~~^~~~~~~~~~~~~~~~~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement