Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
3165143f
Commit
3165143f
authored
Jun 18, 2015
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arch-wrs: prevent a build warning in pp_printf
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
1aabb5cc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
Makefile
Makefile
+1
-0
Makefile
arch-wrs/Makefile
+2
-0
strnlen.h
arch-wrs/include/strnlen.h
+2
-0
No files found.
Makefile
View file @
3165143f
...
...
@@ -61,6 +61,7 @@ ifndef CONFIG_NO_PRINTF
OBJ-y
+=
pp_printf/pp-printf.o
pp_printf/pp-printf.o
:
$(wildcard pp_printf/*.[ch])
CFLAGS
=
"
$(ARCH_PP_PRINTF_CFLAGS)
"
\
$(MAKE)
-C
pp_printf pp-printf.o
CC
=
"
$(CC)
"
LD
=
"
$(LD)
"
\
CONFIG_PRINTF_64BIT
=
y
endif
...
...
arch-wrs/Makefile
View file @
3165143f
...
...
@@ -2,6 +2,8 @@
A
:=
arch-
$(ARCH)
CFLAGS
+=
-Itools
# Prevent a warning for a missing prototype in pp_printf, bug since ever
ARCH_PP_PRINTF_CFLAGS
+=
-include
../
$A
/include/strnlen.h
OBJ-y
+=
$A
/wrs-startup.o
\
$A
/main-loop.o
\
...
...
arch-wrs/include/strnlen.h
0 → 100644
View file @
3165143f
typedef
unsigned
int
size_t
;
extern
size_t
strnlen
(
const
char
*
s
,
size_t
max
);
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