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

Doesn't build with /Wx and /Wall #345

Open
vkocjancic opened this issue Aug 25, 2023 · 0 comments
Open

Doesn't build with /Wx and /Wall #345

vkocjancic opened this issue Aug 25, 2023 · 0 comments

Comments

@vkocjancic
Copy link

vkocjancic commented Aug 25, 2023

Compiling a sample app with included all warnings and treat warnings as errors, doesn't work.

This is visual studio output:

Build started...
1>------ Build started: Project: Memory, Configuration: Debug x64 ------
1>main.cpp
1>D:\work\olcCodeJam\2023\Memory\olcPixelGameEngine.h(573,58): warning C4245: 'initializing': conversion from 'int' to 'const uint32_t', signed/unsigned mismatch
1>D:\work\olcCodeJam\2023\Memory\olcPixelGameEngine.h(586,58): warning C4201: nonstandard extension used: nameless struct/union
1>D:\work\olcCodeJam\2023\Memory\olcPixelGameEngine.h(1813,28): warning C4244: '=': conversion from 'int' to '_Ty', possible loss of data
1>        with
1>        [
1>            _Ty=char
1>        ]
1>D:\work\olcCodeJam\2023\Memory\olcPixelGameEngine.h(1834,23): warning C4244: '=': conversion from 'int' to 'char', possible loss of data
1>D:\work\olcCodeJam\2023\Memory\olcPixelGameEngine.h(2985,121): warning C4100: 'depth': unreferenced formal parameter
1>D:\work\olcCodeJam\2023\Memory\olcPixelGameEngine.h(3542,11): warning C4244: 'initializing': conversion from 'int' to 'char', possible loss of data
1>D:\work\olcCodeJam\2023\Memory\olcPixelGameEngine.h(3986,67): warning C4244: 'argument': conversion from 'int' to 'uint8_t', possible loss of data
1>D:\work\olcCodeJam\2023\Memory\olcPixelGameEngine.h(3986,64): warning C4244: 'argument': conversion from 'int' to 'uint8_t', possible loss of data
1>D:\work\olcCodeJam\2023\Memory\olcPixelGameEngine.h(3986,61): warning C4244: 'argument': conversion from 'int' to 'uint8_t', possible loss of data
1>D:\work\olcCodeJam\2023\Memory\olcPixelGameEngine.h(3986,58): warning C4244: 'argument': conversion from 'int' to 'uint8_t', possible loss of data
1>D:\work\olcCodeJam\2023\Memory\olcPixelGameEngine.h(4041,39): warning C4100: 'fElapsedTime': unreferenced formal parameter
1>D:\work\olcCodeJam\2023\Memory\olcPixelGameEngine.h(4042,37): warning C4100: 'fElapsedTime': unreferenced formal parameter
1>D:\work\olcCodeJam\2023\Memory\olcPixelGameEngine.h(4247,59): warning C4100: 'bFullScreen': unreferenced formal parameter
1>D:\work\olcCodeJam\2023\Memory\olcPixelGameEngine.h(4530,29): warning C4100: 'id': unreferenced formal parameter
1>D:\work\olcCodeJam\2023\Memory\olcPixelGameEngine.h(5212,69): warning C4100: 'sImageFile': unreferenced formal parameter
1>D:\work\olcCodeJam\2023\Memory\olcPixelGameEngine.h(5212,45): warning C4100: 'spr': unreferenced formal parameter
1>D:\work\olcCodeJam\2023\Memory\olcPixelGameEngine.h(5566,15): warning C4189: 'len': local variable is initialized but not referenced
1>D:\work\olcCodeJam\2023\Memory\olcPixelGameEngine.h(4261): warning C4706: assignment within conditional expression
1>D:\work\olcCodeJam\2023\Memory\olcPixelGameEngine.h(4264): warning C4706: assignment within conditional expression
1>Memory.vcxproj -> D:\work\olcCodeJam\2023\Memory\x64\Debug\Memory.exe
1>Done building project "Memory.vcxproj".
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Build started at 10:49 PM and took 03,680 seconds ==========
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

No branches or pull requests

1 participant