Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler warnings elimination #713

Open
5 of 25 tasks
Xottab-DUTY opened this issue Jan 8, 2021 · 1 comment · Fixed by #766, #1040, #1022, #1275 or #1486
Open
5 of 25 tasks

Compiler warnings elimination #713

Xottab-DUTY opened this issue Jan 8, 2021 · 1 comment · Fixed by #766, #1040, #1022, #1275 or #1486

Comments

@Xottab-DUTY
Copy link
Member

Xottab-DUTY commented Jan 8, 2021

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/

@Xottab-DUTY
Copy link
Member Author

Some work:
64ab9ce
5460f48

@Xottab-DUTY Xottab-DUTY moved this from Done to In Progress in Roadmap Nov 15, 2023
@Xottab-DUTY Xottab-DUTY linked a pull request Nov 15, 2023 that will close this issue
@Xottab-DUTY Xottab-DUTY linked a pull request Nov 15, 2023 that will close this issue
alsed added a commit to alsed/xray-16 that referenced this issue Dec 21, 2024
…ness (2)

- advances OpenXRay#713 and eliminates all warnings concerning this operation:
- in R_dsgraph_structure::load() / r__dsgraph_build.cpp
- var 'vcnt' converted to u32 in R_Backend_DBG.cpp
- several for loops in light.cpp
- several for loops in in DetailManager_CACHE.cpp
- var 'filled_blocks' converted from int to i32, in SoundRender_Emitter.cpp
- in CSoundRender_Core::create() / SoundRender_Core.cpp,
explicit convertion of var 'sg_SourceType' to int
- for loop in CollectorPacked::CollectorPacked() / xrCDB_Collector.cpp
- several for loops in Frustum.cpp
@Xottab-DUTY Xottab-DUTY moved this from In Progress to To do in Roadmap Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment