You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @BwanaFr ,
Thank you for contibuting. Part of your PR is already addressed in just merged PR #20.
For the other part, can you explain the interest of the static_cast?
ESP32 compiled with latest core 3.3.2 doesn't show any warning.
Sorry for the late reply.
If I don't type cast the enum, I get this kind of warning. SNMP/src/BER.h:289:66: warning: bitwise operation between different enumeration types 'SNMP::Class::<unnamed enum>' and 'SNMP::Form::<unnamed enum>' is deprecated [-Wdeprecated-enum-enum-conversion]
Hello,
OK.
May be the best way to solve these warnings is to change from uint8_t to uint16_t Form and Class enums?
Can you try and tell me if it works?
I've tested what you propose but I still get the warning message.
Maybe the cast I made (to int32_t) is not appropriate. I think it's more appropriate to cast to uint16_t.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dear Patrick,
This pull request suppress some compilation warnings with ESP32 Arduino toolchain.