Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Merge "Cleanup: warning fixit."
Browse files Browse the repository at this point in the history
  • Loading branch information
Sasha Levitskiy authored and Gerrit Code Review committed Apr 11, 2014
2 parents 2f36550 + cdc1cfb commit 835526f
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 28 deletions.
2 changes: 1 addition & 1 deletion fs_mgr/fs_mgr_fstab.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ void fs_mgr_free_fstab(struct fstab *fstab)
/* Add an entry to the fstab, and return 0 on success or -1 on error */
int fs_mgr_add_entry(struct fstab *fstab,
const char *mount_point, const char *fs_type,
const char *blk_device, long long length)
const char *blk_device)
{
struct fstab_rec *new_fstab_recs;
int n = fstab->num_entries;
Expand Down
8 changes: 4 additions & 4 deletions fs_mgr/fs_mgr_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ int main(int argc, char *argv[])
int a_flag=0;
int u_flag=0;
int n_flag=0;
char *n_name;
char *n_blk_dev;
char *fstab_file;
struct fstab *fstab;
char *n_name=NULL;
char *n_blk_dev=NULL;
char *fstab_file=NULL;
struct fstab *fstab=NULL;

klog_init();
klog_set_level(6);
Expand Down
2 changes: 1 addition & 1 deletion fs_mgr/include/fs_mgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ int fs_mgr_get_crypt_info(struct fstab *fstab, char *key_loc,
char *real_blk_device, int size);
int fs_mgr_add_entry(struct fstab *fstab,
const char *mount_point, const char *fs_type,
const char *blk_device, long long length);
const char *blk_device);
struct fstab_rec *fs_mgr_get_entry_for_mount_point(struct fstab *fstab, const char *path);
int fs_mgr_is_voldmanaged(struct fstab_rec *fstab);
int fs_mgr_is_nonremovable(struct fstab_rec *fstab);
Expand Down
4 changes: 2 additions & 2 deletions healthd/healthd_board_default.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@

#include <healthd.h>

void healthd_board_init(struct healthd_config *config)
void healthd_board_init(struct healthd_config*)
{
// use defaults
}


int healthd_board_battery_update(struct android::BatteryProperties *props)
int healthd_board_battery_update(struct android::BatteryProperties*)
{
// return 0 to log periodic polled battery status to kernel log
return 0;
Expand Down
15 changes: 5 additions & 10 deletions libpixelflinger/codeflinger/disassem.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,19 +301,14 @@ static u_int disassemble_readword(u_int address);
static void disassemble_printaddr(u_int address);

u_int
disasm(const disasm_interface_t *di, u_int loc, int altfmt)
disasm(const disasm_interface_t *di, u_int loc, int __unused altfmt)
{
const struct arm32_insn *i_ptr = &arm32_i[0];

u_int insn;
int matchp;
u_int insn = di->di_readword(loc);
int matchp = 0;
int branch;
char* f_ptr;
int fmt;

fmt = 0;
matchp = 0;
insn = di->di_readword(loc);
int fmt = 0;

/* di->di_printf("loc=%08x insn=%08x : ", loc, insn);*/

Expand Down Expand Up @@ -670,7 +665,7 @@ disasm_insn_ldrhstrh(const disasm_interface_t *di, u_int insn, u_int loc)
}

static void
disasm_insn_ldcstc(const disasm_interface_t *di, u_int insn, u_int loc)
disasm_insn_ldcstc(const disasm_interface_t *di, u_int insn, u_int __unused loc)
{
if (((insn >> 8) & 0xf) == 1)
di->di_printf("f%d, ", (insn >> 12) & 0x07);
Expand Down
4 changes: 2 additions & 2 deletions libpixelflinger/codeflinger/disassem.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ extern "C" {

typedef struct {
u_int (*di_readword)(u_int);
void (*di_printaddr)(u_int);
void (*di_printf)(const char *, ...);
void (*di_printaddr)(u_int);
int (*di_printf)(const char *, ...);
} disasm_interface_t;

/* Prototypes for callable functions */
Expand Down
7 changes: 1 addition & 6 deletions libsuspend/autosuspend_earlysuspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,8 @@ static int wait_for_fb_sleep(void)
return err < 0 ? err : 0;
}

static void *earlysuspend_thread_func(void *arg)
static void *earlysuspend_thread_func(void __unused *arg)
{
char buf[80];
char wakeup_count[20];
int wakeup_count_len;
int ret;

while (1) {
if (wait_for_fb_sleep()) {
ALOGE("Failed reading wait_for_fb_sleep, exiting earlysuspend thread\n");
Expand Down
2 changes: 1 addition & 1 deletion libutils/tests/BasicHashtable_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ TEST_F(BasicHashtableTest, Next_WhenNonEmpty_IteratesOverAllEntries) {
const SimpleEntry& entry = h.entryAt(index);
ASSERT_GE(entry.key, 0);
ASSERT_LT(entry.key, N);
ASSERT_EQ(false, set[entry.key]);
ASSERT_FALSE(set[entry.key]);
ASSERT_EQ(entry.key * 10, entry.value);

set[entry.key] = true;
Expand Down
2 changes: 1 addition & 1 deletion libutils/tests/LruCache_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ TEST_F(LruCacheTest, StressTest) {

for (size_t i = 0; i < kNumKeys; i++) {
strings[i] = (char *)malloc(16);
sprintf(strings[i], "%d", i);
sprintf(strings[i], "%zu", i);
}

srandom(12345);
Expand Down

0 comments on commit 835526f

Please sign in to comment.