lib: fixes to make clang not error
This commit is contained in:
parent
b7eb096088
commit
23311d9819
2 changed files with 4 additions and 5 deletions
|
@ -16,8 +16,7 @@ int gcov_flush_svr(char *buff, int buff_sz, int server_nr)
|
||||||
* buffer the stdio requests, and copy the buffer to this user
|
* buffer the stdio requests, and copy the buffer to this user
|
||||||
* space
|
* space
|
||||||
*/
|
*/
|
||||||
_syscall(VFS_PROC_NR, GCOV_FLUSH, &msg);
|
return _syscall(VFS_PROC_NR, GCOV_FLUSH, &msg);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ static void add_int(int value)
|
||||||
|
|
||||||
FILE *_gcov_fopen(char *name, char *mode)
|
FILE *_gcov_fopen(char *name, char *mode)
|
||||||
{
|
{
|
||||||
if(!gcov_enable) return;
|
if(!gcov_enable) return NULL;
|
||||||
|
|
||||||
assert(!gcov_opened);
|
assert(!gcov_opened);
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ size_t _gcov_fwrite(void *ptr, size_t itemsize, size_t nitems, FILE *stream)
|
||||||
{
|
{
|
||||||
int size = itemsize * nitems;
|
int size = itemsize * nitems;
|
||||||
|
|
||||||
if(!gcov_enable) return;
|
if(!gcov_enable) return NULL;
|
||||||
|
|
||||||
/* only have one file open at a time to ensure writes go
|
/* only have one file open at a time to ensure writes go
|
||||||
* to the right place.
|
* to the right place.
|
||||||
|
@ -98,7 +98,7 @@ size_t _gcov_fwrite(void *ptr, size_t itemsize, size_t nitems, FILE *stream)
|
||||||
|
|
||||||
int _gcov_fclose(FILE *stream)
|
int _gcov_fclose(FILE *stream)
|
||||||
{
|
{
|
||||||
if(!gcov_enable) return;
|
if(!gcov_enable) return EOF;
|
||||||
|
|
||||||
add_int(GCOVOP_CLOSE);
|
add_int(GCOVOP_CLOSE);
|
||||||
assert(gcov_opened);
|
assert(gcov_opened);
|
||||||
|
|
Loading…
Reference in a new issue