Browse Source

Fixed avr warnings.

pull/1/head
gkostka 11 years ago
parent
commit
116deff32e
  1. 5
      CMakeLists.txt
  2. 4
      lwext4/ext4_hash.c
  3. 2
      lwext4/ext4_types.h

5
CMakeLists.txt

@ -29,7 +29,10 @@ elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL cortex-m4)
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL bf518)
#bf518 demos
#...
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL generic)
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL avrxmega7)
#avrxmega7 demos
#...
else()
#Generic example target
add_subdirectory(blockdev)
add_subdirectory(fs_test)

4
lwext4/ext4_hash.c

@ -194,7 +194,7 @@ ext2_legacy_hash(const char *name, int len, int unsigned_char)
}
static void
ext2_prep_hashbuf(const char *src, int slen, uint32_t *dst, int dlen,
ext2_prep_hashbuf(const char *src, uint32_t slen, uint32_t *dst, int dlen,
int unsigned_char)
{
uint32_t padding = slen | (slen << 8) | (slen << 16) | (slen << 24);
@ -204,7 +204,7 @@ ext2_prep_hashbuf(const char *src, int slen, uint32_t *dst, int dlen,
const unsigned char *ubuf = (const unsigned char *)src;
const signed char *sbuf = (const signed char *)src;
if (slen > dlen)
if (slen > (uint32_t)dlen)
len = dlen;
else
len = slen;

2
lwext4/ext4_types.h

@ -485,7 +485,7 @@ struct ext4_directory_dx_block {
struct ext4_directory_dx_entry *position;
} ;
#define EXT4_ERR_BAD_DX_DIR (-75000)
#define EXT4_ERR_BAD_DX_DIR (-25000)
/*

Loading…
Cancel
Save