libfimg5x: resolve compilation errors
authorJan Altensen <info@stricted.net>
Sun, 5 Apr 2020 00:03:51 +0000 (02:03 +0200)
committerJan Altensen <info@stricted.net>
Sun, 5 Apr 2020 10:24:59 +0000 (12:24 +0200)
Change-Id: Ife0e677bdf12c018b72c2d1d5dc9adea3d512ca8

include/FimgApi.h
libfimg5x/FimgApi.cpp
libfimg5x/FimgExynos5.cpp

index a8e3a8080f98c1ef50e6b09e98454c25d6ad1211..e3c4b7fbb64a5d4f749b88de1d257cb9a4531330 100644 (file)
@@ -124,7 +124,7 @@ private :
 
 protected :
     FimgApi();
-    FimgApi(const FimgApi& rhs) {}
+    FimgApi(const FimgApi& rhs __unused) {}
     virtual ~FimgApi();
 
 public:
@@ -154,7 +154,7 @@ protected:
 #ifdef __cplusplus
 extern "C"
 #endif
-struct FimgApi *createFimgApi();
+FimgApi *createFimgApi();
 
 #ifdef __cplusplus
 extern "C"
index cc7670f34091dd9ebe7dfbcb76e397febe1a3511..c8a1a5b701336713df8a4f5e1db150eff5354ccf 100644 (file)
@@ -715,7 +715,7 @@ void printDataBlit(char *title, const char *called, struct fimg2d_blit *cmd)
     SLOGI("%s (From %s)\n", title, called);
     SLOGI("    sequence_no. = %u\n", cmd->seq_no);
     SLOGI("    blit_op      = %d(%s)\n", srcImage->op, optbl[srcImage->op].str);
-    SLOGI("    fill_color   = %X\n", srcParam->solid_color);
+    SLOGI("    fill_color   = %lu\n", srcParam->solid_color);
     SLOGI("    global_alpha = %u\n", (unsigned int)srcParam->g_alpha);
     SLOGI("    PREMULT      = %s\n", srcParam->premult == PREMULTIPLIED ? "PREMULTIPLIED" : "NON-PREMULTIPLIED");
     SLOGI("    do_dither    = %s\n", cmd->dither == true ? "dither" : "no-dither");
index 6fa8350550dceaa0d092f6a9d774e188520f506e..4dda956eca930e282675422284c72f1cf3f10d51 100644 (file)
@@ -241,7 +241,6 @@ bool FimgV4x::t_UnLock(void)
 
 bool FimgV4x::m_CreateG2D(void)
 {
-    void * mmap_base;
     int val = 0;
 
     if (m_g2dFd != 0) {
@@ -343,7 +342,7 @@ inline bool FimgV4x::m_PollG2D(struct pollfd * events)
 //---------------------------------------------------------------------------//
 // extern function
 //---------------------------------------------------------------------------//
-extern "C" struct FimgApi * createFimgApi()
+extern "C" FimgApi * createFimgApi()
 {
     if (fimgApiAutoFreeThread == 0)
         fimgApiAutoFreeThread = new FimgApiAutoFreeThread();