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

Fix some more clang warnings #349

Merged
merged 4 commits into from
May 20, 2024
Merged

Conversation

Lgt2x
Copy link
Collaborator

@Lgt2x Lgt2x commented May 14, 2024

Pull Request Type

  • GitHub Workflow changes
  • Documentation or Wiki changes
  • Build and Dependency changes
  • Runtime changes
    • Render changes
    • Audio changes
    • Input changes
    • Network changes
    • Other changes

Description

  • Fix -Wnull-conversion using explicit false
  • Fix -Wnon-c-typedef-for-linkage warning using C++ struct declaration syntax
  • Fix double extern qualifier warning in idmfc.h. Functions declared in idmfc.h were prefixed by both macros EXTERN and DLLEXPORT. EXTERN expands to extern "C" for C++ code, and DLLEXPORT expands to extern "C" for C++ or extern for C code, making up two extern qualifiers for C++ code. We now only use DLLEXPORT macro.
  • Fix compiler warning -Wimplicit-const-int-float-conversion using explicit casts

Lgt2x added 4 commits May 14, 2024 23:33
Functions declared in idmfc.h were prefixed by both macros `EXTERN` and `DLLEXPORT`. `EXTERN` expands to `extern "C"` for C++ code, and `DLLEXPORT` expands to `extern "C"` for C++ or `extern` for C code, making up two `extern` qualifiers for C++ code. We now only use DLLEXPORT macro.
@Lgt2x Lgt2x added the cleanup Code cleanup label May 14, 2024
@Lgt2x Lgt2x requested review from Arcnor and winterheart May 15, 2024 14:18
@winterheart
Copy link
Collaborator

Runs fine on Linux.

@JeodC JeodC merged commit 3436d04 into DescentDevelopers:main May 20, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants