mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	Merge pull request #10022 from liamwhite/gcc-13
general: fixes for gcc 13
This commit is contained in:
		@@ -16,9 +16,6 @@ namespace Network {
 | 
			
		||||
 | 
			
		||||
class ProxySocket : public SocketBase {
 | 
			
		||||
public:
 | 
			
		||||
    YUZU_NON_COPYABLE(ProxySocket);
 | 
			
		||||
    YUZU_NON_MOVEABLE(ProxySocket);
 | 
			
		||||
 | 
			
		||||
    explicit ProxySocket(RoomNetwork& room_network_) noexcept;
 | 
			
		||||
    ~ProxySocket() override;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -36,13 +36,10 @@ public:
 | 
			
		||||
 | 
			
		||||
    SocketBase() = default;
 | 
			
		||||
    explicit SocketBase(SOCKET fd_) : fd{fd_} {}
 | 
			
		||||
 | 
			
		||||
    virtual ~SocketBase() = default;
 | 
			
		||||
 | 
			
		||||
    virtual SocketBase& operator=(const SocketBase&) = delete;
 | 
			
		||||
 | 
			
		||||
    // Avoid closing sockets implicitly
 | 
			
		||||
    virtual SocketBase& operator=(SocketBase&&) noexcept = delete;
 | 
			
		||||
    YUZU_NON_COPYABLE(SocketBase);
 | 
			
		||||
    YUZU_NON_MOVEABLE(SocketBase);
 | 
			
		||||
 | 
			
		||||
    virtual Errno Initialize(Domain domain, Type type, Protocol protocol) = 0;
 | 
			
		||||
 | 
			
		||||
@@ -109,14 +106,8 @@ public:
 | 
			
		||||
 | 
			
		||||
    ~Socket() override;
 | 
			
		||||
 | 
			
		||||
    Socket(const Socket&) = delete;
 | 
			
		||||
    Socket& operator=(const Socket&) = delete;
 | 
			
		||||
 | 
			
		||||
    Socket(Socket&& rhs) noexcept;
 | 
			
		||||
 | 
			
		||||
    // Avoid closing sockets implicitly
 | 
			
		||||
    Socket& operator=(Socket&&) noexcept = delete;
 | 
			
		||||
 | 
			
		||||
    Errno Initialize(Domain domain, Type type, Protocol protocol) override;
 | 
			
		||||
 | 
			
		||||
    Errno Close() override;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user