power: Compile with -Wall -Wextra -Werror

* And fix the build errors

Change-Id: I183203edfd92d4672893d74aa7428bc9f5e17772
This commit is contained in:
Michael Bestas
2018-03-26 01:00:20 +03:00
parent 0c54d07956
commit 39e18570bf
5 changed files with 8 additions and 13 deletions

View File

@@ -53,10 +53,8 @@
static int display_hint_sent;
static int video_encode_hint_sent;
static int cam_preview_hint_sent;
static void process_video_encode_hint(void *metadata);
//static void process_cam_preview_hint(void *metadata);
/* Returns true is target is SDM630/SDM455 else false*/
static bool is_target_SDM630()
@@ -91,6 +89,8 @@ int power_hint_override(power_hint_t hint, void *data)
process_video_encode_hint(data);
return HINT_HANDLED;
}
default:
break;
}
return HINT_NONE;
}
@@ -98,11 +98,8 @@ int power_hint_override(power_hint_t hint, void *data)
int set_interactive_override(int on)
{
char governor[80];
char tmp_str[NODE_MAX];
int resource_values[20];
int num_resources;
struct video_encode_metadata_t video_encode_metadata;
int rc;
ALOGI("Got set_interactive hint");