server icon indicating copy to clipboard operation
server copied to clipboard

🐛 Getting warnings when compiling

Open Gradius2 opened this issue 10 months ago • 4 comments

I affirm:

  • [x] I understand that if I do not agree to the following points by completing the checkboxes my issue will be ignored.
  • [X] I have read and understood the Contributing Guide and the Code of Conduct.
  • [X] I have searched existing issues to see if the issue has already been opened, and I have checked the commit log to see if the issue has been resolved since my server was last updated.

OS / platform the server is running (if known)

OS: Windows11

Branch affected by issue

base

While compiling, I'm getting those warnings:

C:\server\build\x64-Release\_deps\efsw-src\src\efsw\Log.cpp(45): warning C4834: discarding return value of function with [[nodiscard]] attribute

C:\server\build\x64-Release\_deps\bcrypt-src\include\bcrypt\bcrypt.h(17): warning C4005: 'BCRYPT_HASHSIZE': macro redefinition

C:\server\build\x64-Release\_deps\bcrypt-src\src\bcrypt.c(32): note: see previous definition of 'BCRYPT_HASHSIZE'

C:\server\build\x64-Release\_deps\bcrypt-src\src\bcrypt.c(158): warning C4047: '=': 'char *' differs in levels of indirection from 'int'

C:\server\build\x64-Release\_deps\bcrypt-src\src\bcrypt.c(166): warning C4047: '=': 'char *' differs in levels of indirection from 'int'

C:\server\build\x64-Release\_deps\efsw-src\src\efsw\Log.cpp(45): warning C4834: discarding return value of function with [[nodiscard]] attribute

Microsoft Visual Studio Professional 2022 (64-bit) - Current version 17.9.6

All fully up to date.

Gradius2 avatar Apr 22 '24 02:04 Gradius2

✨ Thanks for the report! ✨

This is a friendly automated reminder that the maintainers won't look at your report until you've properly completed all of the checkboxes in the pre-filled template.

github-actions[bot] avatar Apr 22 '24 02:04 github-actions[bot]

Similar issue here but errors rather than warnings. Running Visual Studio 2022 17.10.0 Preview 4.0 on Windows 11.

This started after I performed a from scratch rebuilt a week ago. First built 3 weeks ago. A commit in that period appears to have broken the build.

Screenshot 2024-04-21 204236

DCS78 avatar Apr 22 '24 03:04 DCS78

The warnings in the build are from external libraries we use (efsw, bcrypt and maraidbcpp), so we don't have much control over them.

@DCS78 if you have a problem with the build, please make an issue for your specific issue instead of piggybacking on this issue - which is about newly introduced warnings, not a broken build

zach2good avatar Apr 30 '24 18:04 zach2good

Thank you for the information. I ended up formatting the drive and starting from ground zero and it works again. Couldn't say where the error was introduced.

DCS78 avatar May 03 '24 08:05 DCS78

Not our issue, seemingly

Xaver-DaRed avatar Aug 09 '24 11:08 Xaver-DaRed