public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] libgloss: bfin: fix various warnings
@ 2022-02-12 6:35 Michael Frysinger
0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2022-02-12 6:35 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=d4fa7379b0de6088b8c6ec68e3260a96d60a89f7
commit d4fa7379b0de6088b8c6ec68e3260a96d60a89f7
Author: Mike Frysinger <vapier@gentoo.org>
Date: Sat Feb 12 01:34:21 2022 -0500
libgloss: bfin: fix various warnings
No functional changes here, just fix warnings the compiler noticed.
bfin/syscalls.c:156:13: warning: conflicting types for built-in function ‘memset’
bfin/syscalls.c: In function ‘_unlink’:
bfin/syscalls.c:193:3: warning: passing argument 2 of ‘do_syscall’ discards qualifiers from pointer target type
bfin/syscalls.c:33:1: note: expected ‘void *’ but argument is of type ‘const char *’
bfin/syscalls.c: In function ‘_exit’:
bfin/syscalls.c:104:1: warning: ‘noreturn’ function does return
Diff:
---
libgloss/bfin/syscalls.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libgloss/bfin/syscalls.c b/libgloss/bfin/syscalls.c
index 2dea8c598..7bd0bede1 100644
--- a/libgloss/bfin/syscalls.c
+++ b/libgloss/bfin/syscalls.c
@@ -101,6 +101,7 @@ void
_exit (int n)
{
do_syscall (SYS_exit, &n);
+ __builtin_unreachable ();
}
int
@@ -153,7 +154,7 @@ _sbrk (int incr)
return (caddr_t) prev_heap_end;
}
-extern void memset (struct stat *, int, unsigned int);
+extern void *memset (void *, int, unsigned int);
int
_fstat (int file, struct stat *st)
@@ -190,7 +191,7 @@ _link (const char *existing, const char *new)
int
_unlink (const char *path)
{
- return do_syscall (SYS_unlink, path);
+ return do_syscall (SYS_unlink, (char *) path);
}
void
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-02-12 6:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-12 6:35 [newlib-cygwin] libgloss: bfin: fix various warnings Michael Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).