remove warnings clang generates
This commit is contained in:
@@ -39,7 +39,7 @@ template <typename T> struct Menu : public Window
|
|||||||
{
|
{
|
||||||
struct Item
|
struct Item
|
||||||
{
|
{
|
||||||
friend class Menu<T>;
|
friend struct Menu<T>;
|
||||||
|
|
||||||
Item()
|
Item()
|
||||||
: m_is_bold(false), m_is_selected(false), m_is_inactive(false), m_is_separator(false) { }
|
: m_is_bold(false), m_is_selected(false), m_is_inactive(false), m_is_separator(false) { }
|
||||||
@@ -77,7 +77,7 @@ template <typename T> struct Menu : public Window
|
|||||||
template <typename ValueT, typename BaseIterator> class ItemIterator
|
template <typename ValueT, typename BaseIterator> class ItemIterator
|
||||||
: public std::iterator<std::random_access_iterator_tag, ValueT>
|
: public std::iterator<std::random_access_iterator_tag, ValueT>
|
||||||
{
|
{
|
||||||
friend class Menu<T>;
|
friend struct Menu<T>;
|
||||||
|
|
||||||
BaseIterator m_it;
|
BaseIterator m_it;
|
||||||
explicit ItemIterator(BaseIterator it) : m_it(it) { }
|
explicit ItemIterator(BaseIterator it) : m_it(it) { }
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ int main(int argc, char **argv)
|
|||||||
cerr_buffer = std::cerr.rdbuf();
|
cerr_buffer = std::cerr.rdbuf();
|
||||||
std::cerr.rdbuf(errorlog.rdbuf());
|
std::cerr.rdbuf(errorlog.rdbuf());
|
||||||
|
|
||||||
NC::InitScreen("ncmpcpp ver. "VERSION, Config.colors_enabled);
|
NC::InitScreen("ncmpcpp ver. " VERSION, Config.colors_enabled);
|
||||||
|
|
||||||
Action::OriginalStatusbarVisibility = Config.statusbar_visibility;
|
Action::OriginalStatusbarVisibility = Config.statusbar_visibility;
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,8 @@ struct Song
|
|||||||
typedef std::string (Song::*GetFunction)(unsigned) const;
|
typedef std::string (Song::*GetFunction)(unsigned) const;
|
||||||
|
|
||||||
Song() { }
|
Song() { }
|
||||||
|
virtual ~Song() { }
|
||||||
|
|
||||||
Song(mpd_song *s);
|
Song(mpd_song *s);
|
||||||
|
|
||||||
virtual std::string getURI(unsigned idx = 0) const;
|
virtual std::string getURI(unsigned idx = 0) const;
|
||||||
|
|||||||
@@ -339,7 +339,7 @@ void NcmpcppStatusChanged(MPD::Connection *, MPD::StatusChanges changed, void *)
|
|||||||
}
|
}
|
||||||
case MPD::psStop:
|
case MPD::psStop:
|
||||||
{
|
{
|
||||||
WindowTitle("ncmpcpp ver. "VERSION);
|
WindowTitle("ncmpcpp ver. " VERSION);
|
||||||
if (!block_progressbar_update)
|
if (!block_progressbar_update)
|
||||||
DrawProgressbar(0, 0);
|
DrawProgressbar(0, 0);
|
||||||
Playlist::ReloadRemaining = true;
|
Playlist::ReloadRemaining = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user