Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sturnclaw committed Sep 9, 2023
1 parent 510630b commit bc650f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/StringUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ struct SplitString {
using reference = std::string_view;

// "end" iterator
iter() : m_str(), m_parent(nullptr) {};
iter() : m_parent(nullptr), m_str() {};
// "live" iterator
iter(SplitString *parent) :
m_parent(parent),
Expand Down
1 change: 1 addition & 0 deletions src/pigui/PerfInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ PerfInfo::CounterInfo &PerfInfo::GetCounter(CounterType ct)
case COUNTER_FPS: return m_fpsCounter;
case COUNTER_PHYS: return m_physCounter;
case COUNTER_PIGUI: return m_piguiCounter;
default: assert(0);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/pigui/PiGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ void Instance::BakeFont(PiFont &font)

// Set the ImGui font name for debugging purposes
std::string name = fmt::format("{}:{}", font.name(), font.pixelsize());
strncpy(config.Name, name.c_str(), 40);
strncpy(config.Name, name.c_str(), 39);

// The main face of the font should go first in the list, because:
//
Expand Down

0 comments on commit bc650f9

Please sign in to comment.