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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy