aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2022-07-30 12:51:23 +0100
committerGitHub <noreply@github.com>2022-07-30 12:51:23 +0100
commita8711158896d993e23d823f41ab086c3915c7d4e (patch)
tree4883ab0310ec344883b8042dea3195cd73717c2e /src/client
parent6a269d58ef28be6428a5fb62c0eb966fc1ff5883 (diff)
downloadminetest-a8711158896d993e23d823f41ab086c3915c7d4e.tar.gz
minetest-a8711158896d993e23d823f41ab086c3915c7d4e.tar.bz2
minetest-a8711158896d993e23d823f41ab086c3915c7d4e.zip
Fix some warnings (#12615)
Diffstat (limited to 'src/client')
-rw-r--r--src/client/game.cpp1
-rw-r--r--src/client/mapblock_mesh.cpp2
-rw-r--r--src/client/particles.h2
3 files changed, 1 insertions, 4 deletions
diff --git a/src/client/game.cpp b/src/client/game.cpp
index 61b957e78..c34e3a415 100644
--- a/src/client/game.cpp
+++ b/src/client/game.cpp
@@ -846,7 +846,6 @@ private:
EventManager *eventmgr = nullptr;
QuicktuneShortcutter *quicktune = nullptr;
- bool registration_confirmation_shown = false;
std::unique_ptr<GameUI> m_game_ui;
GUIChatConsole *gui_chat_console = nullptr; // Free using ->Drop()
diff --git a/src/client/mapblock_mesh.cpp b/src/client/mapblock_mesh.cpp
index d8a8c25eb..c730b9bf9 100644
--- a/src/client/mapblock_mesh.cpp
+++ b/src/client/mapblock_mesh.cpp
@@ -1174,7 +1174,7 @@ void PartialMeshBuffer::beforeDraw() const
void PartialMeshBuffer::afterDraw() const
{
// Take the data back
- m_vertex_indexes = std::move(m_buffer->Indices.steal());
+ m_vertex_indexes = m_buffer->Indices.steal();
}
/*
diff --git a/src/client/particles.h b/src/client/particles.h
index 36be903f1..0818b796b 100644
--- a/src/client/particles.h
+++ b/src/client/particles.h
@@ -39,7 +39,6 @@ struct ClientTexture
video::ITexture *ref = nullptr;
ClientTexture() = default;
- ClientTexture(const ClientTexture&) = default;
ClientTexture(const ServerParticleTexture& p, ITextureSource *t):
tex(p),
ref(t->getTextureForMesh(p.string)) {};
@@ -52,7 +51,6 @@ struct ClientTexRef
ParticleTexture* tex = nullptr;
video::ITexture* ref = nullptr;
ClientTexRef() = default;
- ClientTexRef(const ClientTexRef&) = default;
/* constructor used by particles spawned from a spawner */
ClientTexRef(ClientTexture& t):