Skip to content

Commit 864fb91

Browse files
committed
Chore: silence some warnings
1 parent 2197cfb commit 864fb91

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/detection/brightness/brightness_linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ double ddca_set_default_sleep_multiplier(double multiplier); // ddcutil 1.4
9999
DDCA_Status ddca_init(const char *libopts, int syslog_level, int opts);
100100
#endif
101101

102-
static const char* detectWithDdcci(FFBrightnessOptions* options, FFlist* result)
102+
static const char* detectWithDdcci(FF_MAYBE_UNUSED FFBrightnessOptions* options, FFlist* result)
103103
{
104104
FF_LIBRARY_LOAD(libddcutil, "dlopen ddcutil failed", "libddcutil" FF_LIBRARY_EXTENSION, 5);
105105
FF_LIBRARY_LOAD_SYMBOL_MESSAGE(libddcutil, ddca_get_display_info_list2)

src/detection/terminalfont/terminalfont_linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ static void detectFootTerminal(FFTerminalFontResult* terminalFont)
250250
ffFontInitValues(&terminalFont->font, font.chars, "8");
251251
return;
252252
}
253-
uint32_t size = equal + strlen("size=");
253+
uint32_t size = equal + (uint32_t) strlen("size=");
254254
uint32_t comma = ffStrbufNextIndexC(&font, size, ',');
255255
if (comma < font.length)
256256
font.chars[comma] = '\0';

src/detection/wifi/wifi.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static inline uint16_t ffWifiFreqToChannel(uint16_t frequency)
3737
if (frequency == 2484)
3838
return 14;
3939
else if (frequency < 2484)
40-
return (uint16_t) (frequency - 2407) / 5;
40+
return (uint16_t) ((frequency - 2407) / 5);
4141
else
42-
return (frequency / 5) - 1000;
42+
return (uint16_t) ((frequency / 5) - 1000);
4343
}

src/util/edidHelper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void ffEdidGetSerialAndManufactureDate(const uint8_t edid[128], uint32_t* serial
7373
{
7474
if (edid[17] > 0 && edid[17] < 0xFF)
7575
{
76-
*year = (uint16_t) edid[17] + 1990;
76+
*year = (uint16_t) (edid[17] + 1990);
7777
*week = (uint16_t) edid[16];
7878
if (*week == 0xFF) *week = 0;
7979
}

0 commit comments

Comments
 (0)