8000 Fixes compiler warnings · oxidation99/matplotlib-cpp@7fa134e · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Lines changed: 2 additions & 2 deletions
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)
0