Fix clang/GCC warnings

This commit is contained in:
Corentin Wallez
2017-07-07 14:39:38 -04:00
committed by Corentin Wallez
parent f30dffa75f
commit 98c90d4faa
18 changed files with 38 additions and 28 deletions

View File

@@ -123,7 +123,7 @@ namespace opengl {
case Command::CopyTextureToBuffer:
{
CopyTextureToBufferCmd* copy = commands.NextCommand<CopyTextureToBufferCmd>();
commands.NextCommand<CopyTextureToBufferCmd>();
// TODO(cwallez@chromium.org): implement using a temporary FBO and ReadPixels
}
break;

View File

@@ -130,7 +130,7 @@ namespace opengl {
glBufferSubData(GL_ARRAY_BUFFER, start * sizeof(uint32_t), count * sizeof(uint32_t), data);
}
void Buffer::MapReadAsyncImpl(uint32_t serial, uint32_t start, uint32_t count) {
void Buffer::MapReadAsyncImpl(uint32_t, uint32_t, uint32_t) {
// TODO(cwallez@chromium.org): Implement Map Read for the GL backend
}
@@ -138,7 +138,7 @@ namespace opengl {
// TODO(cwallez@chromium.org): Implement Map Read for the GL backend
}
void Buffer::TransitionUsageImpl(nxt::BufferUsageBit currentUsage, nxt::BufferUsageBit targetUsage) {
void Buffer::TransitionUsageImpl(nxt::BufferUsageBit, nxt::BufferUsageBit) {
}
// BufferView

View File

@@ -76,7 +76,7 @@ namespace opengl {
return GetGLFormatInfo(GetFormat());
}
void Texture::TransitionUsageImpl(nxt::TextureUsageBit currentUsage, nxt::TextureUsageBit targetUsage) {
void Texture::TransitionUsageImpl(nxt::TextureUsageBit, nxt::TextureUsageBit) {
}
// TextureView