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