Fix up minimal build.

This commit is contained in:
James Grogan 2023-01-23 12:02:08 +00:00
parent 119ea6f2cc
commit 7b4ba9dd54
5 changed files with 15 additions and 14 deletions

View file

@ -21,6 +21,6 @@ podman build -t ubuntu_22_04_minimal_deps .
# Run containers
```bash
podman run -it -v $LOCAL_SOURCE_DIR:source ubuntu_22_04_minimal_deps:latest /bin/bash
podman run -it -v $LOCAL_SOURCE_DIR:/source ubuntu_22_04_minimal_deps:latest /bin/bash
```

View file

@ -20,12 +20,12 @@ std::unique_ptr<NullAudioInterface> NullAudioInterface::Create()
return std::make_unique<NullAudioInterface>();
}
void NullAudioInterface::openDevice(AudioDevice* device)
void NullAudioInterface::openDevice(AudioDevice*)
{
}
void NullAudioInterface::play(AudioDevice* device, AudioSample* sample, unsigned duration)
void NullAudioInterface::play(AudioDevice*, AudioSample*, unsigned)
{
}

View file

@ -9,7 +9,7 @@ class BasicFontEngine : public IFontEngine
{
virtual void initialize(){};
virtual void loadFontFace(const std::filesystem::path& fontFile, float penSize = 16){};
virtual void loadFontFace(const std::filesystem::path&, float){};
virtual std::unique_ptr<FontGlyph> loadGlyph(unsigned charCode){return nullptr;};
virtual std::unique_ptr<FontGlyph> loadGlyph(unsigned){return nullptr;};
};

View file

@ -42,6 +42,7 @@ std::unique_ptr<AbstractPainter> PainterFactory::Create(DrawingContext* context,
return std::make_unique<RasterPainter>(context);
}
#else
(void)drawMode;
return std::make_unique<RasterPainter>(context);
#endif
#endif