[rdtk,warnings] fix -Wunused-parameter

This commit is contained in:
akallabeth 2025-02-13 15:33:28 +01:00
parent 3454194ea4
commit fbd3a2bef2
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5
2 changed files with 4 additions and 3 deletions

View File

@ -240,7 +240,8 @@ static int rdtk_font_convert_descriptor_code_to_utf8(const char* str, uint8_t* u
return 1;
}
static int rdtk_font_parse_descriptor_buffer(rdtkFont* font, char* buffer, size_t size)
static int rdtk_font_parse_descriptor_buffer(rdtkFont* font, char* buffer,
WINPR_ATTR_UNUSED size_t size)
{
int rc = -1;

View File

@ -25,8 +25,8 @@
#include "rdtk_label.h"
int rdtk_label_draw(rdtkSurface* surface, uint16_t nXDst, uint16_t nYDst, uint16_t nWidth,
uint16_t nHeight, rdtkLabel* label, const char* text, uint16_t hAlign,
uint16_t vAlign)
uint16_t nHeight, WINPR_ATTR_UNUSED rdtkLabel* label, const char* text,
WINPR_ATTR_UNUSED uint16_t hAlign, WINPR_ATTR_UNUSED uint16_t vAlign)
{
uint16_t offsetX = 0;
uint16_t offsetY = 0;