fix compiler warnings

This commit is contained in:
oltolm 2024-01-23 00:19:16 +01:00 committed by Megamouse
parent 6f665da016
commit 59410b9d62
3 changed files with 5 additions and 3 deletions

View File

@ -798,12 +798,12 @@ namespace rpcn
addr_rpcn.sin_port = std::bit_cast<u16, be_t<u16>>(port); // htons addr_rpcn.sin_port = std::bit_cast<u16, be_t<u16>>(port); // htons
addr_rpcn.sin_family = AF_INET; addr_rpcn.sin_family = AF_INET;
#ifdef WIN32 #ifdef _MSC_VER
#pragma warning(push) #pragma warning(push)
#pragma warning(disable : 4996) #pragma warning(disable : 4996)
#endif #endif
hostent* host_addr = gethostbyname(splithost[0].c_str()); hostent* host_addr = gethostbyname(splithost[0].c_str());
#ifdef WIN32 #ifdef _MSC_VER
#pragma warning(pop) #pragma warning(pop)
#endif #endif
if (!host_addr) if (!host_addr)

View File

@ -161,7 +161,7 @@ namespace glsl
void insert_rop(std::ostream& OS, const shader_properties& /*props*/) void insert_rop(std::ostream& OS, const shader_properties& /*props*/)
{ {
OS << OS <<
#include "GLSLSnippets//RSXProg/RSXROPEpilogue.glsl" #include "GLSLSnippets/RSXProg/RSXROPEpilogue.glsl"
; ;
} }

View File

@ -1,5 +1,7 @@
#pragma once #pragma once
#include "util/atomic.hpp"
#include "util/types.hpp"
#include <QVideoFrame> #include <QVideoFrame>
#include <QVideoSink> #include <QVideoSink>
#include <QImage> #include <QImage>