summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2021-01-22 12:50:24 +0100
committer Olivier Galibert <galibert@pobox.com>2021-01-22 13:23:58 +0100
commitaa33ec12734d0789e54ee3ba0024295706af46f0 (patch)
tree34f74bcdd5b31f4b53c0ecb57b831c3802b65e29 /src/osd/modules/render
parent39b4a9817390ded473d0b7026e892225b6f02af9 (diff)
ATTR_UNUSED, do you welcome C++17 in your heart and mind?
Diffstat (limited to 'src/osd/modules/render')
-rw-r--r--src/osd/modules/render/blit13.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osd/modules/render/blit13.h b/src/osd/modules/render/blit13.h
index f3dcea9bf0d..5c9feb64ec2 100644
--- a/src/osd/modules/render/blit13.h
+++ b/src/osd/modules/render/blit13.h
@@ -137,7 +137,7 @@ struct blit_texcopy : public blit_base
blit_texcopy() : blit_base(sizeof(_dest_type) / _len_div, false, false) { }
void texop(const texture_info *texture, const render_texinfo *texsource) const override
{
- ATTR_UNUSED const rgb_t *palbase = texsource->palette;
+ [[maybe_unused]] const rgb_t *palbase = texsource->palette;
int x, y;
/* loop over Y */
for (y = 0; y < texsource->height; y++) {
@@ -164,7 +164,7 @@ struct blit_texrot : public blit_base
blit_texrot() : blit_base(sizeof(_dest_type), true, false) { }
void texop(const texture_info *texture, const render_texinfo *texsource) const override
{
- ATTR_UNUSED const rgb_t *palbase = texsource->palette;
+ [[maybe_unused]] const rgb_t *palbase = texsource->palette;
int x, y;
const quad_setup_data *setup = &texture->m_setup;
int dudx = setup->dudx;