Skip to content

Commit

Permalink
Fix Sparse warnings: add "static"
Browse files Browse the repository at this point in the history
Signed-off-by: Blue Swirl <[email protected]>
  • Loading branch information
blueswirl committed Sep 5, 2009
1 parent f2818f2 commit 1e6eec8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion linux-user/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
//#define DEBUG_MMAP

#if defined(CONFIG_USE_NPTL)
pthread_mutex_t mmap_mutex = PTHREAD_MUTEX_INITIALIZER;
static pthread_mutex_t mmap_mutex = PTHREAD_MUTEX_INITIALIZER;
static int __thread mmap_lock_count;

void mmap_lock(void)
Expand Down
2 changes: 1 addition & 1 deletion slirp/slirp.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ static void winsock_cleanup(void)

#else

struct stat dns_addr_stat;
static struct stat dns_addr_stat;

int get_dns_addr(struct in_addr *pdns_addr)
{
Expand Down
2 changes: 1 addition & 1 deletion target-i386/ops_sse.h
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ SSE_HELPER_CMP(cmpnlt, FPU_CMPNLT)
SSE_HELPER_CMP(cmpnle, FPU_CMPNLE)
SSE_HELPER_CMP(cmpord, FPU_CMPORD)

const int comis_eflags[4] = {CC_C, CC_Z, 0, CC_Z | CC_P | CC_C};
static const int comis_eflags[4] = {CC_C, CC_Z, 0, CC_Z | CC_P | CC_C};

void helper_ucomiss(Reg *d, Reg *s)
{
Expand Down

0 comments on commit 1e6eec8

Please sign in to comment.