Skip to content

Commit b8bed82

Browse files
committed
Fixed clang compiler warnings.
1 parent e7aae6e commit b8bed82

File tree

6 files changed

+13
-5
lines changed

6 files changed

+13
-5
lines changed

client_server/Server.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ std::string Server::run_string(const std::string& blk, bool handle_output)
201201
return result;
202202
}
203203

204-
void Server::on_socket_init(websocketpp::connection_hdl, boost::asio::ip::tcp::socket & s)
204+
void Server::on_socket_init(websocketpp::connection_hdl, boost::asio::ip::tcp::socket & /* s */)
205205
{
206206
boost::asio::ip::tcp::no_delay option(true);
207207
// FIXME: this used to work in older websocketpp

client_server/Server.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Server {
3434
Server();
3535
Server(const Server&)=delete;
3636
Server(const std::string& socket);
37-
~Server();
37+
virtual ~Server();
3838

3939
/// The only user-visible part: just instantiate a server object and
4040
/// start it with run(). This will not return until the server has

core/SympyCdb.cc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,17 @@ using namespace cadabra;
1414

1515
// #define DEBUG 1
1616

17+
#ifndef NO_SYMPY
18+
1719
sympy::SympyBridge::SympyBridge(const Kernel& k, std::shared_ptr<Ex> ex)
1820
: DisplaySympy(k, *ex), ex(ex)
1921
{
2022
}
2123

24+
sympy::SympyBridge::~SympyBridge()
25+
{
26+
}
27+
2228
pybind11::object sympy::SympyBridge::export_ex()
2329
{
2430
std::ostringstream str;
@@ -52,6 +58,7 @@ void sympy::SympyBridge::import_ex(const std::string& s)
5258
ex->move_ontop(orig, first);
5359
}
5460

61+
#endif
5562

5663
Ex::iterator sympy::apply(const Kernel& kernel, Ex& ex, Ex::iterator& it, const std::vector<std::string>& wrap, std::vector<std::string> args,
5764
const std::string& method)
@@ -210,7 +217,7 @@ void sympy::invert_matrix(const Kernel& kernel, Ex& ex, Ex& rules, const Ex& toc
210217
if(el->is_zero()==false) {
211218
Ex rule("\\equals");
212219
auto rit = rule.append_child(rule.begin(), tocompute.begin());
213-
auto cvit = rule.append_child(rule.begin(), Ex::iterator(el));
220+
/* auto cvit = */ rule.append_child(rule.begin(), Ex::iterator(el));
214221
auto i = rule.begin(rit);
215222
//std::cerr << c1 << ", " << c2 << std::endl;
216223
i = rule.replace_index(i, prop1->values[c1].begin(), true);

core/SympyCdb.hh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ namespace sympy {
1919
class SympyBridge : public cadabra::DisplaySympy {
2020
public:
2121
SympyBridge(const cadabra::Kernel&, std::shared_ptr<cadabra::Ex>);
22+
virtual ~SympyBridge();
2223

2324
pybind11::object export_ex();
2425
void import_ex(const std::string&);

frontend/gtkmm/DiffViewer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ DiffViewer::DiffViewer(std::istream& a, std::istream& b, Gtk::Window& parent)
143143

144144
void DiffViewer::run_noblock()
145145
{
146-
signal_response().connect([this](int response_id) {
146+
signal_response().connect([this](int /* response_id */) {
147147
hide();
148148
});
149149
show();

frontend/gtkmm/NotebookWindow.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ bool NotebookWindow::cell_toggle_visibility(DTree::iterator it, int )
10361036
return false;
10371037
}
10381038

1039-
bool NotebookWindow::cell_content_changed(DTree::iterator, int i)
1039+
bool NotebookWindow::cell_content_changed(DTree::iterator, int /* i */)
10401040
{
10411041
modified=true;
10421042
unselect_output_cell();

0 commit comments

Comments
 (0)