misc: fix warnings
This commit is contained in:
@@ -98,6 +98,7 @@ static int keyboard_height_denominator(int32_t width, int32_t height) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void sigaction_handler(int signum) {
|
static void sigaction_handler(int signum) {
|
||||||
|
LV_UNUSED(signum);
|
||||||
if (resize_terminals) {
|
if (resize_terminals) {
|
||||||
bb_terminal_reset_all();
|
bb_terminal_reset_all();
|
||||||
}
|
}
|
||||||
@@ -105,6 +106,7 @@ static void sigaction_handler(int signum) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void terminal_resize_timer_cb(lv_timer_t *timer) {
|
static void terminal_resize_timer_cb(lv_timer_t *timer) {
|
||||||
|
LV_UNUSED(timer);
|
||||||
if (resize_terminals) {
|
if (resize_terminals) {
|
||||||
bb_terminal_shrink_current();
|
bb_terminal_shrink_current();
|
||||||
}
|
}
|
||||||
|
@@ -216,7 +216,7 @@ int *sq2lv_get_modifier_indexes(lv_obj_t *keyboard, int *num_modifiers) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if SQ2LV_SCANCODES_ENABLED
|
#if SQ2LV_SCANCODES_ENABLED
|
||||||
const int * const sq2lv_get_scancodes(lv_obj_t *keyboard, uint16_t btn_id, int *num_scancodes) {
|
const int *sq2lv_get_scancodes(lv_obj_t *keyboard, uint16_t btn_id, int *num_scancodes) {
|
||||||
if (current_layout_id < 0 || current_layout_id >= sq2lv_num_layouts) {
|
if (current_layout_id < 0 || current_layout_id >= sq2lv_num_layouts) {
|
||||||
*num_scancodes = 0;
|
*num_scancodes = 0;
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@@ -75,7 +75,7 @@ int *sq2lv_get_modifier_indexes(lv_obj_t *keyboard, int *num_modifiers);
|
|||||||
* @param num_scancodes pointer to an integer into which the number of scancodes will be written
|
* @param num_scancodes pointer to an integer into which the number of scancodes will be written
|
||||||
* @return pointer into an array of scancodes at the appropriate index
|
* @return pointer into an array of scancodes at the appropriate index
|
||||||
*/
|
*/
|
||||||
const int * const sq2lv_get_scancodes(lv_obj_t *keyboard, uint16_t btn_id, int *num_scancodes);
|
const int *sq2lv_get_scancodes(lv_obj_t *keyboard, uint16_t btn_id, int *num_scancodes);
|
||||||
#endif /* SQ2LV_SCANCODES_ENABLED */
|
#endif /* SQ2LV_SCANCODES_ENABLED */
|
||||||
|
|
||||||
#endif /* SQ2LV_H */
|
#endif /* SQ2LV_H */
|
||||||
|
@@ -557,7 +557,7 @@ int main(int argc, char *argv[]) {
|
|||||||
int32_t content_pad_row = 10;
|
int32_t content_pad_row = 10;
|
||||||
|
|
||||||
/* Message for a user */
|
/* Message for a user */
|
||||||
lv_obj_t *message_label;
|
lv_obj_t *message_label = NULL;
|
||||||
if (cli_opts.message) {
|
if (cli_opts.message) {
|
||||||
lv_obj_set_style_pad_row(container, content_pad_row, LV_PART_MAIN);
|
lv_obj_set_style_pad_row(container, content_pad_row, LV_PART_MAIN);
|
||||||
|
|
||||||
|
@@ -22,6 +22,8 @@
|
|||||||
|
|
||||||
#include <ini.h>
|
#include <ini.h>
|
||||||
|
|
||||||
|
#define UNUSED(x) ((void)x)
|
||||||
|
|
||||||
struct Request
|
struct Request
|
||||||
{
|
{
|
||||||
uint64_t not_after;
|
uint64_t not_after;
|
||||||
@@ -238,6 +240,7 @@ int process_inotify_events()
|
|||||||
|
|
||||||
assert(ievent1->mask & IN_DELETE_SELF);
|
assert(ievent1->mask & IN_DELETE_SELF);
|
||||||
assert(ievent2->mask & IN_IGNORED);
|
assert(ievent2->mask & IN_IGNORED);
|
||||||
|
UNUSED(ievent2);
|
||||||
|
|
||||||
assert(read(fd_inotify, buffer, buffer_size) == -1 && errno == EAGAIN); // no more events
|
assert(read(fd_inotify, buffer, buffer_size) == -1 && errno == EAGAIN); // no more events
|
||||||
return 0;
|
return 0;
|
||||||
@@ -246,7 +249,8 @@ int process_inotify_events()
|
|||||||
void sigalarm(int signo, siginfo_t *info, void *context)
|
void sigalarm(int signo, siginfo_t *info, void *context)
|
||||||
{
|
{
|
||||||
assert(signo == SIGALRM);
|
assert(signo == SIGALRM);
|
||||||
(void)(context);
|
UNUSED(signo);
|
||||||
|
UNUSED(context);
|
||||||
|
|
||||||
if (info->si_code == SI_TIMER) {
|
if (info->si_code == SI_TIMER) {
|
||||||
assert(info->si_value.sival_ptr == &id_timer);
|
assert(info->si_value.sival_ptr == &id_timer);
|
||||||
@@ -276,7 +280,8 @@ void sigalarm(int signo, siginfo_t *info, void *context)
|
|||||||
void sigchild(int signo, siginfo_t *info, void *context)
|
void sigchild(int signo, siginfo_t *info, void *context)
|
||||||
{
|
{
|
||||||
assert(signo == SIGCHLD);
|
assert(signo == SIGCHLD);
|
||||||
(void)(context);
|
UNUSED(signo);
|
||||||
|
UNUSED(context);
|
||||||
|
|
||||||
if (pid_unl0kr == 0)
|
if (pid_unl0kr == 0)
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user