Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
4564e782
Commit
4564e782
authored
Oct 25, 2016
by
Bernhard Nortmann
Browse files
Fix some issues that showed up as compiler warnings with mingw64
Signed-off-by:
Bernhard Nortmann
<
bernhard.nortmann@web.de
>
parent
9a3d62aa
Changes
3
Hide whitespace changes
Inline
Side-by-side
bootinfo.c
View file @
4564e782
...
@@ -198,7 +198,7 @@ void print_boot_file_head(boot_file_head_t *hdr)
...
@@ -198,7 +198,7 @@ void print_boot_file_head(boot_file_head_t *hdr)
void
print_boot_dram_para
(
boot_dram_para_t
*
dram
)
void
print_boot_dram_para
(
boot_dram_para_t
*
dram
)
{
{
pprintf
(
&
dram
->
dram_baseaddr
,
"DRAM base : %p
\n
"
,
(
void
*
)(
long
)
dram
->
dram_baseaddr
);
pprintf
(
&
dram
->
dram_baseaddr
,
"DRAM base : %p
\n
"
,
(
void
*
)(
uintptr_t
)
dram
->
dram_baseaddr
);
pprintf
(
&
dram
->
dram_clk
,
"DRAM clk : %d
\n
"
,
dram
->
dram_clk
);
pprintf
(
&
dram
->
dram_clk
,
"DRAM clk : %d
\n
"
,
dram
->
dram_clk
);
pprintf
(
&
dram
->
dram_type
,
"DRAM type : %d
\n
"
,
dram
->
dram_type
);
pprintf
(
&
dram
->
dram_type
,
"DRAM type : %d
\n
"
,
dram
->
dram_type
);
pprintf
(
&
dram
->
dram_rank_num
,
"DRAM rank : %d
\n
"
,
dram
->
dram_rank_num
);
pprintf
(
&
dram
->
dram_rank_num
,
"DRAM rank : %d
\n
"
,
dram
->
dram_rank_num
);
...
...
fel.c
View file @
4564e782
...
@@ -325,7 +325,7 @@ void hexdump(void *data, uint32_t offset, size_t size)
...
@@ -325,7 +325,7 @@ void hexdump(void *data, uint32_t offset, size_t size)
unsigned
char
*
buf
=
data
;
unsigned
char
*
buf
=
data
;
for
(
j
=
0
;
j
<
size
;
j
+=
16
)
{
for
(
j
=
0
;
j
<
size
;
j
+=
16
)
{
size_t
i
;
size_t
i
;
printf
(
"%08
l
x: "
,
(
long
int
)
offset
+
j
);
printf
(
"%08
z
x: "
,
offset
+
j
);
for
(
i
=
0
;
i
<
16
;
i
++
)
{
for
(
i
=
0
;
i
<
16
;
i
++
)
{
if
(
j
+
i
<
size
)
if
(
j
+
i
<
size
)
printf
(
"%02x "
,
buf
[
j
+
i
]);
printf
(
"%02x "
,
buf
[
j
+
i
]);
...
...
nand-image-builder.c
View file @
4564e782
...
@@ -257,7 +257,7 @@ static void encode_bch(struct bch_control *bch, const uint8_t *data,
...
@@ -257,7 +257,7 @@ static void encode_bch(struct bch_control *bch, const uint8_t *data,
}
}
/* process first unaligned data bytes */
/* process first unaligned data bytes */
m
=
((
u
nsigned
long
)
data
)
&
3
;
m
=
((
u
intptr_t
)
data
)
&
3
;
if
(
m
)
{
if
(
m
)
{
mlen
=
(
len
<
(
4
-
m
))
?
len
:
4
-
m
;
mlen
=
(
len
<
(
4
-
m
))
?
len
:
4
-
m
;
encode_bch_unaligned
(
bch
,
data
,
mlen
,
bch
->
ecc_buf
);
encode_bch_unaligned
(
bch
,
data
,
mlen
,
bch
->
ecc_buf
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment