Clear warnings
This commit is contained in:
@@ -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)]])
|
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
|
||||||
BOOST_REQUIRE([1.60])
|
BOOST_REQUIRE([1.60])
|
||||||
AC_SUBST(BOOST_CPPFLAGS)
|
AC_SUBST(BOOST_CPPFLAGS)
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ inline Regex make(StringT &&s,
|
|||||||
template <typename CharT>
|
template <typename CharT>
|
||||||
inline bool search(const std::basic_string<CharT> &s,
|
inline bool search(const std::basic_string<CharT> &s,
|
||||||
const Regex &rx,
|
const Regex &rx,
|
||||||
bool ignore_diacritics)
|
GNUC_UNUSED bool ignore_diacritics)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
#ifdef BOOST_REGEX_ICU
|
#ifdef BOOST_REGEX_ICU
|
||||||
|
|||||||
@@ -336,9 +336,9 @@ void MediaLibrary::update()
|
|||||||
for (const auto &album : albums)
|
for (const auto &album : albums)
|
||||||
{
|
{
|
||||||
auto entry = AlbumEntry(
|
auto entry = AlbumEntry(
|
||||||
Album(std::move(std::get<0>(album.first)),
|
Album(std::get<0>(album.first),
|
||||||
std::move(std::get<1>(album.first)),
|
std::get<1>(album.first),
|
||||||
std::move(std::get<2>(album.first)),
|
std::get<2>(album.first),
|
||||||
album.second));
|
album.second));
|
||||||
if (idx < Albums.size())
|
if (idx < Albums.size())
|
||||||
Albums[idx].value() = std::move(entry);
|
Albums[idx].value() = std::move(entry);
|
||||||
@@ -435,8 +435,8 @@ void MediaLibrary::update()
|
|||||||
{
|
{
|
||||||
auto entry = AlbumEntry(
|
auto entry = AlbumEntry(
|
||||||
Album(primary_tag,
|
Album(primary_tag,
|
||||||
std::move(std::get<0>(album.first)),
|
std::get<0>(album.first),
|
||||||
std::move(std::get<1>(album.first)),
|
std::get<1>(album.first),
|
||||||
album.second));
|
album.second));
|
||||||
if (idx < Albums.size())
|
if (idx < Albums.size())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user