From 3191369ece05fdb4c8ca855dd78a5e415ef9ed1a Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Wed, 17 Feb 2021 18:06:00 +0100 Subject: [PATCH] added 'using PT::FileLog::init' to FileLog to suppress clang warning: warning: 'Winix::FileLog::init' hides overloaded virtual function [-Woverloaded-virtual] --- winixd/core/filelog.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/winixd/core/filelog.h b/winixd/core/filelog.h index 6460caf..ecac425 100644 --- a/winixd/core/filelog.h +++ b/winixd/core/filelog.h @@ -5,7 +5,7 @@ */ /* - * Copyright (c) 2018, Tomasz Sowa + * Copyright (c) 2018-2021, Tomasz Sowa * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -58,6 +58,10 @@ public: void set_synchro(Synchro * synchro); + // using PT::FileLog::init to suppress clang warning: + // warning: 'Winix::FileLog::init' hides overloaded virtual function [-Woverloaded-virtual] + using PT::FileLog::init; + void init(const std::wstring & log_file, bool log_stdout, int log_level, bool save_each_line, size_t log_time_zone_id); void set_time_zones(TimeZones * time_zones);