Skip to content

Commit

Permalink
Fix some compiler warnings (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam4813 authored Feb 16, 2021
1 parent e33a4c0 commit 16fcf29
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion client/os.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ namespace tec {
glGetIntegerv(GL_NUM_EXTENSIONS, &num_exts);
l->info("Extensions {} : ", num_exts);
std::string ext("");
for (GLuint e = 0; e < num_exts; e++) {
for (GLint e = 0; e < num_exts; e++) {
ext += "[" + std::string((const char*)glGetStringi(GL_EXTENSIONS, e)) + "] ";
if (e != 0 && e % 5 == 0) {
l->debug(ext);
Expand Down
20 changes: 11 additions & 9 deletions common/simulation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,17 @@ namespace tec {
using EventQueue<ClientCommandsEvent>::On;
using EventQueue<ControllerAddedEvent>::On;
using EventQueue<ControllerRemovedEvent>::On;
void On(std::shared_ptr<KeyboardEvent> data) override;
void On(std::shared_ptr<MouseBtnEvent> data) override;
void On(std::shared_ptr<MouseMoveEvent> data) override;
void On(std::shared_ptr<MouseClickEvent> data) override;
void On(std::shared_ptr<ClientCommandsEvent> data) override;
void On(std::shared_ptr<ControllerAddedEvent> data) override;
void On(std::shared_ptr<ControllerRemovedEvent> data) override;
void On(std::shared_ptr<FocusCapturedEvent> data) override;
void On(std::shared_ptr<FocusBlurEvent> data) override;
using EventQueue<FocusCapturedEvent>::On;
using EventQueue<FocusBlurEvent>::On;
void On(std::shared_ptr<KeyboardEvent> data);
void On(std::shared_ptr<MouseBtnEvent> data);
void On(std::shared_ptr<MouseMoveEvent> data);
void On(std::shared_ptr<MouseClickEvent> data);
void On(std::shared_ptr<ClientCommandsEvent> data);
void On(std::shared_ptr<ControllerAddedEvent> data);
void On(std::shared_ptr<ControllerRemovedEvent> data);
void On(std::shared_ptr<FocusCapturedEvent> data);
void On(std::shared_ptr<FocusBlurEvent> data);
private:
PhysicsSystem phys_sys;
VComputerSystem vcomp_sys;
Expand Down

0 comments on commit 16fcf29

Please sign in to comment.