Skip to content

Silence deprecation warnings#58

Open
Count-MHM wants to merge 2 commits intosammycage:mainfrom
Count-MHM:main
Open

Silence deprecation warnings#58
Count-MHM wants to merge 2 commits intosammycage:mainfrom
Count-MHM:main

Conversation

@Count-MHM
Copy link

See: sammycage/plutosvg#35

Silences "deprecation" warnings from MSVC and clang.

Currently, generated warning by clang:

[build] E:/DEV/C++/Projects/Count-Engine-02/Count/vendor/PlutoSVG/plutovg/source/plutovg-font.c:141:16: warning: 'fopen' is deprecated: This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]

Technically MSVC doesn't need _CRT_SECURE_NO_WARNINGS because it is not generating any warnings for PlutoVG, I added it in case a warning is generated in a future version that requires _CRT_SECURE_NO_WARNINGS to silence.

@sammycage
Copy link
Owner

sammycage commented Aug 17, 2025

Nice. What about Meson?

@Count-MHM
Copy link
Author

I wasn't able to test this on my side, though.

Note: CMake considers both clang and clang-cl (clang with msvc style arguments) to be "clang" but meson (apparently) differentiates them

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