From 11897032d4b1c1b70ee28bcc4084b94811eeb4c1 Mon Sep 17 00:00:00 2001 From: Hleb Valoshka <375gnu@gmail.com> Date: Tue, 27 Aug 2019 23:24:14 +0300 Subject: [PATCH] Fix some warnings --- src/celestia/win32/winmain.cpp | 2 +- src/tools/cmod/cmodfix/cmodfix.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/celestia/win32/winmain.cpp b/src/celestia/win32/winmain.cpp index cb31d349..2f63a94a 100644 --- a/src/celestia/win32/winmain.cpp +++ b/src/celestia/win32/winmain.cpp @@ -1876,7 +1876,7 @@ bool SetDCPixelFormat(HDC hDC) PFD_SUPPORT_OPENGL | // Support OpenGL calls in window PFD_DOUBLEBUFFER, // Double buffered mode PFD_TYPE_RGBA, // RGBA Color mode - GetDeviceCaps(hDC, BITSPIXEL),// Want the display bit depth + (BYTE)GetDeviceCaps(hDC, BITSPIXEL),// Want the display bit depth 0,0,0,0,0,0, // Not used to select mode 0,0, // Not used to select mode 0,0,0,0,0, // Not used to select mode diff --git a/src/tools/cmod/cmodfix/cmodfix.cpp b/src/tools/cmod/cmodfix/cmodfix.cpp index 06c271d9..c6bb6d02 100644 --- a/src/tools/cmod/cmodfix/cmodfix.cpp +++ b/src/tools/cmod/cmodfix/cmodfix.cpp @@ -1031,6 +1031,8 @@ generateTangents(Mesh& mesh, } } break; + default: + break; } }