summaryrefslogtreecommitdiffstats
path: root/minui/graphics_fbdev.c
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-03-14 17:39:48 +0100
committerMark Salyzyn <salyzyn@google.com>2014-03-14 21:51:39 +0100
commitf3bb31c32fa879ccce358c15c93b7bd8582d1756 (patch)
tree0ce9c3520be76db70f29a63fca0b895a028934af /minui/graphics_fbdev.c
parentMerge "separate fbdev-specific code out from minui" (diff)
downloadandroid_bootable_recovery-f3bb31c32fa879ccce358c15c93b7bd8582d1756.tar
android_bootable_recovery-f3bb31c32fa879ccce358c15c93b7bd8582d1756.tar.gz
android_bootable_recovery-f3bb31c32fa879ccce358c15c93b7bd8582d1756.tar.bz2
android_bootable_recovery-f3bb31c32fa879ccce358c15c93b7bd8582d1756.tar.lz
android_bootable_recovery-f3bb31c32fa879ccce358c15c93b7bd8582d1756.tar.xz
android_bootable_recovery-f3bb31c32fa879ccce358c15c93b7bd8582d1756.tar.zst
android_bootable_recovery-f3bb31c32fa879ccce358c15c93b7bd8582d1756.zip
Diffstat (limited to 'minui/graphics_fbdev.c')
-rw-r--r--minui/graphics_fbdev.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/minui/graphics_fbdev.c b/minui/graphics_fbdev.c
index 6a6330b22..bb91975a9 100644
--- a/minui/graphics_fbdev.c
+++ b/minui/graphics_fbdev.c
@@ -21,6 +21,7 @@
#include <fcntl.h>
#include <stdio.h>
+#include <sys/cdefs.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/types.h>
@@ -55,7 +56,7 @@ minui_backend* open_fbdev() {
return &my_backend;
}
-static void fbdev_blank(minui_backend* backend, bool blank)
+static void fbdev_blank(minui_backend* backend __unused, bool blank)
{
int ret;
@@ -174,7 +175,7 @@ static gr_surface fbdev_init(minui_backend* backend) {
return gr_draw;
}
-static gr_surface fbdev_flip(minui_backend* backend) {
+static gr_surface fbdev_flip(minui_backend* backend __unused) {
if (double_buffered) {
// Change gr_draw to point to the buffer currently displayed,
// then flip the driver so we're displaying the other buffer
@@ -189,7 +190,7 @@ static gr_surface fbdev_flip(minui_backend* backend) {
return gr_draw;
}
-static void fbdev_exit(minui_backend* backend) {
+static void fbdev_exit(minui_backend* backend __unused) {
close(fb_fd);
fb_fd = -1;