diff --git a/source/gui/notifier.cpp b/source/gui/notifier.cpp index ddecc68d..7db75217 100644 --- a/source/gui/notifier.cpp +++ b/source/gui/notifier.cpp @@ -331,6 +331,8 @@ namespace nana impl_->set_icon(image_ico); impl_->icon = image_ico; } +#else + static_cast(icon_file); //eliminate unused parameter warning #endif } @@ -341,6 +343,8 @@ namespace nana auto icon_handle = paint::image_accessor::icon(image_ico); if (icon_handle) impl_->icons.emplace_back(static_cast(image_ico)); +#else + static_cast(icon_file); //eliminate unused parameter warning #endif } diff --git a/source/gui/place.cpp b/source/gui/place.cpp index b1d26889..30053a00 100644 --- a/source/gui/place.cpp +++ b/source/gui/place.cpp @@ -472,8 +472,6 @@ namespace nana if (depth < 0 || start_pos >= div.length()) return{}; - const char* p = div.c_str() + start_pos; - while (depth >= 0) { auto pos = div.find_last_of("<>", start_pos); diff --git a/source/paint/detail/image_ico_ex.hpp b/source/paint/detail/image_ico_ex.hpp index 33f1d96c..9beef0c8 100644 --- a/source/paint/detail/image_ico_ex.hpp +++ b/source/paint/detail/image_ico_ex.hpp @@ -57,7 +57,7 @@ typedef struct class image_ico_ex : public basic_image_pixbuf { - bool _m_read_ico(const void* data, std::size_t size) + bool _m_read_ico(const void* data, std::size_t /*size*/) { auto width = 0; auto height = 0; @@ -94,7 +94,7 @@ class image_ico_ex cursor += offset; auto icon = reinterpret_cast(cursor); auto realBitsCount = static_cast(icon->icHeader.biBitCount); - auto hasAndMask = (realBitsCount < 32) && (height != icon->icHeader.biHeight); + auto hasAndMask = (realBitsCount < 32) && (height != static_cast(icon->icHeader.biHeight)); cursor += 40; pixbuf_.open(width, height); @@ -259,4 +259,4 @@ public: }//end namespace paint }//end namespace nana -#endif \ No newline at end of file +#endif diff --git a/source/paint/image.cpp b/source/paint/image.cpp index 65ad6ba2..6875a198 100644 --- a/source/paint/image.cpp +++ b/source/paint/image.cpp @@ -363,8 +363,9 @@ namespace paint if (!ptr && bytes > 40 /* sizeof(BITMAPINFOHEADER) */ && (40 == *reinterpret_cast(data))) { ptr = std::make_shared(true); } + else #endif - else if (!ptr && bytes > 40 && (0x00010000 == *reinterpret_cast(data))) + if (!ptr && bytes > 40 && (0x00010000 == *reinterpret_cast(data))) ptr = std::make_shared(); } }