Build: Set missing override as error
I couldn't find a similar flag for MSVC
This commit is contained in:
parent
bbbd3f88c1
commit
31da36991d
|
|
@ -38,7 +38,7 @@ namespace Nz
|
||||||
|
|
||||||
Time GetDuration() const override;
|
Time GetDuration() const override;
|
||||||
AudioFormat GetFormat() const;
|
AudioFormat GetFormat() const;
|
||||||
Time GetPlayingOffset() const;
|
Time GetPlayingOffset() const override;
|
||||||
UInt64 GetSampleCount() const;
|
UInt64 GetSampleCount() const;
|
||||||
UInt64 GetSampleOffset() const override;
|
UInt64 GetSampleOffset() const override;
|
||||||
UInt32 GetSampleRate() const override;
|
UInt32 GetSampleRate() const override;
|
||||||
|
|
@ -53,7 +53,7 @@ namespace Nz
|
||||||
void Pause() override;
|
void Pause() override;
|
||||||
void Play() override;
|
void Play() override;
|
||||||
|
|
||||||
void SeekToSampleOffset(UInt64 offset);
|
void SeekToSampleOffset(UInt64 offset) override;
|
||||||
|
|
||||||
void Stop() override;
|
void Stop() override;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -918,7 +918,7 @@ namespace
|
||||||
meshLoader.UnregisterLoader(m_meshLoaderEntry);
|
meshLoader.UnregisterLoader(m_meshLoaderEntry);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string_view GetDescription() const
|
std::string_view GetDescription() const override
|
||||||
{
|
{
|
||||||
return "Adds supports to load meshes and animations using Assimp";
|
return "Adds supports to load meshes and animations using Assimp";
|
||||||
}
|
}
|
||||||
|
|
@ -963,4 +963,4 @@ extern "C"
|
||||||
return plugin.release();
|
return plugin.release();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -378,7 +378,9 @@ if is_plat("windows") then
|
||||||
else
|
else
|
||||||
-- GCC-compatible (GCC, Clang, ...)
|
-- GCC-compatible (GCC, Clang, ...)
|
||||||
add_cxflags("-Wtrampolines")
|
add_cxflags("-Wtrampolines")
|
||||||
|
add_cxflags("-Werror=inconsistent-missing-override", {tools = "clang"})
|
||||||
add_cxflags("-Werror=reorder")
|
add_cxflags("-Werror=reorder")
|
||||||
|
add_cxflags("-Werror=suggest-override", {tools = "gcc"})
|
||||||
add_cxflags("-Werror=switch")
|
add_cxflags("-Werror=switch")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue