OpenXRay/xray-16

Compiler warnings elimination

Open

#713 opened on Jan 8, 2021

View on GitHub
 (1 comment) (0 reactions) (1 assignee)C++ (519 forks)auto 404
Code QualityHelp wantedPortability

Repository metrics

Stars
 (3,524 stars)
PR merge metrics
 (PR metrics pending)

Description

Starting from the creation of this task, #116 is a subtask of this task.

MSVC:

  • MSBuild
    • Enable "warnings are errors" mode (is it possible?)
  • Compiler
    • Enable conformance mode
    • Enable "warnings are errors" mode
    • Raise the warning level to 4
      • Level 1
      • Level 2
      • Level 3
      • Level 4
  • Linker
    • Enable "warnings are errors" mode

GCC:

  • CMake and make
    • Enable "warnings are errors" mode (is it possible?)
  • Compiler
    • Disable permissive mode
    • Maybe enable pedantic mode
    • Enable "warnings are errors" mode
    • Raise the warning level to 4
      • Level 1
      • Level 2
      • Level 3
      • Level 4
  • Linker
    • Enable "warnings are errors" mode

For history:

  • List all warnings elimination commits in this issue

Tools: PVS-Studio CppDepend (includes cppcheck, Clang-Tidy, Vera++) ReSharper C++ (includes Clang and Clang-Tidy check plus it's own analysis) Visual Assist (has it's own code inspection)

https://habr.com/ru/articles/75123/ https://habr.com/ru/companies/pvs-studio/articles/303664/

Contributor guide