Skip to content

Commit

Permalink
Silence warnings for !Kobo/!Kindle builds
Browse files Browse the repository at this point in the history
  • Loading branch information
NiLuJe committed Sep 24, 2023
1 parent 528ae4e commit d4801c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion fbink.c
Original file line number Diff line number Diff line change
Expand Up @@ -3436,7 +3436,7 @@ static int
#endif // FBINK_FOR_LINUX

// Same thing for WAIT_FOR_UPDATE_SUBMISSION requests...
#ifndef FBINK_FOR_LINUX
#if defined(FBINK_FOR_KINDLE) || defined(FBINK_FOR_KOBO)
static int
wait_for_submission(int fbfd, uint32_t marker)
{
Expand All @@ -3456,8 +3456,10 @@ static int
}
# endif
}
#endif // FBINK_FOR_KINDLE || FBINK_FOR_KOBO

// Same thing for WAIT_FOR_UPDATE_COMPLETE requests...
#ifndef FBINK_FOR_LINUX
static int
wait_for_complete(int fbfd, uint32_t marker)
{
Expand Down
4 changes: 3 additions & 1 deletion fbink_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -743,8 +743,10 @@ static inline void compute_update_marker(void);
#endif // !FBINK_FOR_LINUX
static int refresh_compat(int, const struct mxcfb_rect, bool, const FBInkConfig*);
static int refresh(int, const struct mxcfb_rect, const FBInkConfig*);
#ifndef FBINK_FOR_LINUX
#if defined(FBINK_FOR_KINDLE) || defined(FBINK_FOR_KOBO)
static int wait_for_submission(int, uint32_t);
#endif
#ifndef FBINK_FOR_LINUX
static int wait_for_complete(int, uint32_t);
#endif
#ifdef FBINK_FOR_KOBO
Expand Down

0 comments on commit d4801c0

Please sign in to comment.