Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7fa134e

Browse files
cdbrkfxrptlava
authored andcommitted
Fixes compiler warnings
1 parent 2772217 commit 7fa134e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

matplotlibcpp.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -677,12 +677,12 @@ bool scatter(const std::vector<NumericX>& x,
677677

678678
template< typename Numeric>
679679
bool bar(const std::vector<Numeric>& y, std::string ec = "black", std::string ls = "-", double lw = 1.0,
680-
const std::map<std::string, std::string>& keywords = {})
680+
__attribute__((unused)) const std::map<std::string, std::string>& keywords = {})
681681
{
682682
PyObject* yarray = get_array(y);
683683

684684
std::vector<int> x;
685-
for (int i = 0; i < y.size(); i++)
685+
for (std::size_t i = 0; i < y.size(); i++)
686686
x.push_back(i);
687687

688688
PyObject* xarray = get_array(x);

0 commit comments

Comments
 (0)