Clear warnings

This commit is contained in:
Andrzej Rybczak
2024-08-21 17:42:30 +02:00
parent 5238d0f6ed
commit 603735d80e
3 changed files with 9 additions and 6 deletions

View File

@@ -90,6 +90,9 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[auto f = [](auto n) { return n*n; }; f(
AC_MSG_ERROR([[Your compiler doesn't seem to support generic lambda expressions, please upgrade (GCC >= 5)]])
)
# warnings
CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wshadow -Wimplicit-fallthrough"
# boost
BOOST_REQUIRE([1.60])
AC_SUBST(BOOST_CPPFLAGS)

View File

@@ -93,7 +93,7 @@ inline Regex make(StringT &&s,
template <typename CharT>
inline bool search(const std::basic_string<CharT> &s,
const Regex &rx,
bool ignore_diacritics)
GNUC_UNUSED bool ignore_diacritics)
{
try {
#ifdef BOOST_REGEX_ICU

View File

@@ -336,9 +336,9 @@ void MediaLibrary::update()
for (const auto &album : albums)
{
auto entry = AlbumEntry(
Album(std::move(std::get<0>(album.first)),
std::move(std::get<1>(album.first)),
std::move(std::get<2>(album.first)),
Album(std::get<0>(album.first),
std::get<1>(album.first),
std::get<2>(album.first),
album.second));
if (idx < Albums.size())
Albums[idx].value() = std::move(entry);
@@ -435,8 +435,8 @@ void MediaLibrary::update()
{
auto entry = AlbumEntry(
Album(primary_tag,
std::move(std::get<0>(album.first)),
std::move(std::get<1>(album.first)),
std::get<0>(album.first),
std::get<1>(album.first),
album.second));
if (idx < Albums.size())
{