xo-imgui: clang compiler nits

This commit is contained in:
Roland Conybeare 2025-08-29 19:33:09 -04:00
commit 5959fae81c
4 changed files with 6 additions and 2 deletions

View file

@ -119,6 +119,8 @@ namespace xo {
**/
class GcCopyCallback {
public:
virtual ~GcCopyCallback() = default;
virtual void notify_gc_copy(std::size_t z, const void * src_addr, const void * dest_addr,
generation src_gen, generation dest_gen) = 0;
/** invoked when added to callback set (i.e. @ref GC::GcCopyCallbackSet) **/

View file

@ -56,7 +56,8 @@ namespace xo {
*
* Passed to @ref Object::deep_move for example
**/
struct ObjectStatistics {
class ObjectStatistics {
public:
void display(std::ostream & os) const;
/** per-object-type statistics, indexed by TypeId **/

View file

@ -9,6 +9,7 @@
#include "xo/indentlog/scope.hpp"
#include "xo/indentlog/print/tag.hpp"
#include <sys/mman.h>
#include <unistd.h> // for getpagesize() on OSX
#include <cassert>
namespace xo {

View file

@ -508,7 +508,7 @@ namespace xo {
&& Q1::always_constexpr_unit
&& Q2::always_constexpr_unit)
constexpr auto
with_units_from(const Q1 & x, const Q2 & y)
with_units_from(const Q1 & x, const Q2 & /*y*/)
{
return x.template rescale_ext<Unit>();
}