Skip to content

Conversation

@ArqTras
Copy link

@ArqTras ArqTras commented Jan 6, 2026

This PR suppresses all compilation warnings during build process for both macOS (Clang) and Linux (GCC) platforms.

Changes

  • Enhanced CMake configuration to suppress compiler warnings without modifying source code
  • Maintained backward compatibility and code style
  • All warnings successfully suppressed for:
    • macOS (Clang): 0 warnings
    • Ubuntu/Linux (GCC): 0 warnings

Technical Details

  • Added conditional compiler flags for Clang and GCC
  • Suppressed deprecated API warnings (OpenSSL, ZeroMQ)
  • Suppressed false positive warnings (stringop-overflow, array-bounds, etc.)
  • Used modern CMake properties (COMPILE_OPTIONS) instead of deprecated COMPILE_FLAGS

…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.
@malbit malbit merged commit 68dc47c into malbit:new_boost Jan 7, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants