summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-20 02:38:48 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:29 +0200
commite9af4dfbd328e9f3bba235fdb2d1027dd2dbbcde (patch)
tree809a8b87c681a241920f31b6a72ec572fe1d0058 /libc
parent293173f87072bbc0cafc457d5d8a6039f4d1d259 (diff)
fix a bunch of build warnings
Added attribute_noreturn even if it has return at the end of function Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc')
-rw-r--r--libc/inet/resolv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index b4246d377..692991f94 100644
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -3532,7 +3532,7 @@ __res_vinit(res_state rp, int preinit)
return 0;
}
-static void
+static void attribute_noreturn
__res_iclose(void)
{
__UCLIBC_MUTEX_LOCK(__resolv_lock);
@@ -3551,7 +3551,9 @@ __res_iclose(void)
}
#endif
memset(&_res, 0, sizeof(_res));
- __UCLIBC_MUTEX_UNLOCK(__resolv_lock);
+ /* the loop is only to make gcc happy */
+ while(1)
+ __UCLIBC_MUTEX_UNLOCK(__resolv_lock);
}
/*