Build: Set missing override as error

I couldn't find a similar flag for MSVC
This commit is contained in:
SirLynix 2023-05-09 17:18:56 +02:00
parent bbbd3f88c1
commit 31da36991d
3 changed files with 6 additions and 4 deletions

View File

@ -38,7 +38,7 @@ namespace Nz
Time GetDuration() const override;
AudioFormat GetFormat() const;
Time GetPlayingOffset() const;
Time GetPlayingOffset() const override;
UInt64 GetSampleCount() const;
UInt64 GetSampleOffset() const override;
UInt32 GetSampleRate() const override;
@ -53,7 +53,7 @@ namespace Nz
void Pause() override;
void Play() override;
void SeekToSampleOffset(UInt64 offset);
void SeekToSampleOffset(UInt64 offset) override;
void Stop() override;

View File

@ -918,7 +918,7 @@ namespace
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";
}

View File

@ -378,7 +378,9 @@ if is_plat("windows") then
else
-- GCC-compatible (GCC, Clang, ...)
add_cxflags("-Wtrampolines")
add_cxflags("-Werror=inconsistent-missing-override", {tools = "clang"})
add_cxflags("-Werror=reorder")
add_cxflags("-Werror=suggest-override", {tools = "gcc"})
add_cxflags("-Werror=switch")
end