From 2427e35f0e48cb54ca50cdae69206b35f0b98f06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= Date: Fri, 11 Feb 2022 15:15:50 +0100 Subject: [PATCH 1/4] Label: Cosmetics --- src/Label.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Label.cpp b/src/Label.cpp index 221341f4..929475d5 100644 --- a/src/Label.cpp +++ b/src/Label.cpp @@ -124,7 +124,7 @@ std::string Label::triggerName( Triggers trigger, uint32_t ) return "delete_label_fts"; } -std::string Label::index(Label::Indexes index, uint32_t dbModel) +std::string Label::index( Label::Indexes index, uint32_t dbModel ) { switch ( index ) { @@ -136,7 +136,7 @@ std::string Label::index(Label::Indexes index, uint32_t dbModel) return ""; } -std::string Label::indexName(Label::Indexes index, uint32_t dbModel) +std::string Label::indexName( Label::Indexes index, uint32_t dbModel ) { switch ( index ) { -- GitLab From 1ed0429e22794a2fcb09466e09329de7a93177a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= Date: Fri, 11 Feb 2022 15:15:58 +0100 Subject: [PATCH 2/4] Label: Silence unused variable warning in release builds --- src/Label.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Label.cpp b/src/Label.cpp index 929475d5..c7b4bf1a 100644 --- a/src/Label.cpp +++ b/src/Label.cpp @@ -138,6 +138,7 @@ std::string Label::index( Label::Indexes index, uint32_t dbModel ) std::string Label::indexName( Label::Indexes index, uint32_t dbModel ) { + UNUSED_IN_RELEASE( dbModel ); switch ( index ) { case Indexes::MediaId: -- GitLab From af02191be68e208d9dd84d327495cc4daa235557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= Date: Fri, 11 Feb 2022 15:17:10 +0100 Subject: [PATCH 3/4] File: Cosmetics --- src/File.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/File.cpp b/src/File.cpp index 9ad77069..7176be8f 100644 --- a/src/File.cpp +++ b/src/File.cpp @@ -357,7 +357,7 @@ std::string File::indexName( File::Indexes index, uint32_t dbModel ) return ""; } -bool File::checkDbModel(MediaLibraryPtr ml) +bool File::checkDbModel( MediaLibraryPtr ml ) { OPEN_READ_CONTEXT( ctx, ml->getConn() ); -- GitLab From 47c1ac03992baa91accb813b8ffbfe00b336328e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= Date: Fri, 11 Feb 2022 15:17:38 +0100 Subject: [PATCH 4/4] File: Silence unused variable warning in release builds --- src/File.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/File.cpp b/src/File.cpp index 7176be8f..5b479925 100644 --- a/src/File.cpp +++ b/src/File.cpp @@ -344,6 +344,8 @@ std::string File::index( Indexes index, uint32_t dbModel ) std::string File::indexName( File::Indexes index, uint32_t dbModel ) { + UNUSED_IN_RELEASE( dbModel ); + switch ( index ) { case Indexes::MediaId: -- GitLab