Suppress compilation warnings - #12
Merged
Merged
Conversation
…atibility with OpenSSL 3.0. This change ensures that necessary deprecated functions remain functional without generating warnings during compilation.
- Updated CMakeLists.txt to conditionally include Clang-specific warning flags for unused private fields. - Added a [[fallthrough]] attribute in net_ssl.cpp to improve code clarity in SSL context creation. - Refactored error logging in blockchain.cpp to enhance readability and maintainability by properly scoping the conditional block for verification failure.
- Updated CMakeLists.txt to suppress Clang and GCC-specific warnings related to deprecated declarations and unknown warning options. - Added additional warning suppression for C and C++ files to improve compatibility and reduce unnecessary compiler warnings. - Deleted the ZEROMQ_MIGRATION_REPORT.md file as it is no longer needed following the successful migration to the new ZeroMQ API.
- Updated CMakeLists.txt to include additional suppression for Clang and GCC-specific warnings, particularly for stringop-overflow and array-bounds. - Added specific warning suppression for the easylogging++ library and tree-hash.c to address false positives in GCC. - Improved compatibility and reduced unnecessary compiler warnings across the project.
- Updated CMakeLists.txt files to replace COMPILE_FLAGS with COMPILE_OPTIONS for better compatibility and clarity in warning suppression. - Adjusted warning suppression for net_ssl.cpp, memwipe.c, and tree-hash.c to address specific compiler warnings without affecting other compilation settings. - Enhanced overall project maintainability by standardizing warning suppression methods across different components.
- Added additional suppression for Clang warnings related to unused variables and private fields in CMakeLists.txt. - Updated C_WARNINGS to include suppression for variable-length arrays (VLA) for Clang. - Improved compatibility and reduced unnecessary compiler warnings across the project.
- Updated various CMakeLists.txt files to improve warning suppression across the project, ensuring better compatibility with Clang and GCC. - Added specific warning suppressions for unused variables and private fields, enhancing code clarity and maintainability. - Cleaned up and standardized warning suppression methods in multiple components, reducing unnecessary compiler warnings.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR suppresses all compilation warnings during build process for both macOS (Clang) and Linux (GCC) platforms.
Changes
Technical Details