fix cppcheck

This commit is contained in:
tkl
2016-07-23 11:27:35 +02:00
parent 161abd76cf
commit 77102723f8
4 changed files with 2 additions and 17 deletions

View File

@@ -79,41 +79,29 @@ caddr_t _sbrk(int incr)
int _close(int file)
{
file = file; /* avoid warning */
return -1;
}
int _fstat(int file, struct stat *st)
{
file = file; /* avoid warning */
st->st_mode = S_IFCHR;
return 0;
}
int _isatty(int file)
{
file = file; /* avoid warning */
return 1;
}
int _lseek(int file, int ptr, int dir) {
file = file; /* avoid warning */
ptr = ptr; /* avoid warning */
dir = dir; /* avoid warning */
return 0;
}
int _read(int file, char *ptr, int len)
{
file = file; /* avoid warning */
ptr = ptr; /* avoid warning */
len = len; /* avoid warning */
return 0;
}
int _write(int file, char *ptr, int len) {
int todo = todo;
file = file; /* avoid warning */
// USB_VCOM_Send(ptr, len);
return len;
}