Fix compiler warnings
This commit is contained in:
@@ -34,9 +34,15 @@
|
||||
#define VIBRATOR_TIMEOUT_FILE "/sys/class/timed_output/vibrator/enable"
|
||||
#define VIBRATOR_TIME_MS 50
|
||||
|
||||
#ifndef SYN_REPORT
|
||||
#define SYN_REPORT 0x00
|
||||
#endif
|
||||
#ifndef SYN_CONFIG
|
||||
#define SYN_CONFIG 0x01
|
||||
#endif
|
||||
#ifndef SYN_MT_REPORT
|
||||
#define SYN_MT_REPORT 0x02
|
||||
#endif
|
||||
|
||||
#define ABS_MT_POSITION 0x2a /* Group a set of X and Y */
|
||||
#define ABS_MT_AMPLITUDE 0x2b /* Group a set of Z and W */
|
||||
|
||||
@@ -402,7 +402,7 @@ int gr_textExWH(int x, int y, const char *s, void* pFont, int max_width, int max
|
||||
rect_x = x + cwidth;
|
||||
else
|
||||
rect_x = max_width;
|
||||
if (y + font->cheight < max_height)
|
||||
if (y + font->cheight < (unsigned int)(max_height))
|
||||
rect_y = y + font->cheight;
|
||||
else
|
||||
rect_y = max_height;
|
||||
@@ -423,7 +423,7 @@ int twgr_text(int x, int y, const char *s)
|
||||
GGLContext *gl = gr_context;
|
||||
GRFont *font = gr_font;
|
||||
unsigned off;
|
||||
unsigned cwidth;
|
||||
unsigned cwidth = 0;
|
||||
|
||||
y -= font->ascent;
|
||||
|
||||
|
||||
@@ -394,7 +394,7 @@ void TWFunc::Output_Version(void) {
|
||||
|
||||
Path = DataManager::GetSettingsStoragePath();
|
||||
if (!PartitionManager.Mount_By_Path(Path, false)) {
|
||||
LOGI("Unable to mount '%s' to write version number.\n");
|
||||
LOGI("Unable to mount '%s' to write version number.\n", Path.c_str());
|
||||
return;
|
||||
}
|
||||
Path += "/TWRP/.version";
|
||||
|
||||
Reference in New Issue
Block a user