summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-12-19 13:06:09 +0100
committerStephan Bergmann <sbergman@redhat.com>2011-12-19 13:08:27 +0100
commitf039057048f850f9b43c297258342fb3bc869a6f (patch)
tree87d0f6591d57462791c99da9dc56fe918ee00305
parentmsvc 2008 express won't link without explicit salhelper (diff)
downloadcore-f039057048f850f9b43c297258342fb3bc869a6f.tar.gz
core-f039057048f850f9b43c297258342fb3bc869a6f.zip
Warning clean-up (Mac OS X).
-rw-r--r--sal/osl/unx/system.c2
-rw-r--r--sal/osl/unx/system.h2
-rw-r--r--solenv/gbuild/platform/macosx.mk2
3 files changed, 3 insertions, 3 deletions
diff --git a/sal/osl/unx/system.c b/sal/osl/unx/system.c
index bf8607ddb18f..b74aff545b48 100644
--- a/sal/osl/unx/system.c
+++ b/sal/osl/unx/system.c
@@ -38,7 +38,7 @@ static pthread_mutex_t getrtl_mutex = PTHREAD_MUTEX_INITIALIZER;
extern int h_errno;
struct hostent *gethostbyname_r(const char *name, struct hostent *result,
- char *buffer, int buflen, int *h_errnop)
+ char *buffer, size_t buflen, int *h_errnop)
{
/* buffer layout: name\0
* array_of_pointer_to_aliases
diff --git a/sal/osl/unx/system.h b/sal/osl/unx/system.h
index 71b9b31f7bf2..3c54785a0475 100644
--- a/sal/osl/unx/system.h
+++ b/sal/osl/unx/system.h
@@ -490,7 +490,7 @@ struct tm *gmtime_r(const time_t *timep, struct tm *buffer);
#endif /* !defined FREEBSD || (__FreeBSD_version < 500112) */
#if !defined(FREEBSD) || (__FreeBSD_version < 601103)
struct hostent *gethostbyname_r(const char *name, struct hostent *result,
- char *buffer, int buflen, int *h_errnop);
+ char *buffer, size_t buflen, int *h_errnop);
#endif /* !defined(FREEBSD) || (__FreeBSD_version < 601103) */
#endif
diff --git a/solenv/gbuild/platform/macosx.mk b/solenv/gbuild/platform/macosx.mk
index cef201584152..fb02a5820528 100644
--- a/solenv/gbuild/platform/macosx.mk
+++ b/solenv/gbuild/platform/macosx.mk
@@ -55,9 +55,9 @@ gb_COMPILERDEFS += \
gb_CFLAGS := \
-isysroot $(gb_SDKDIR) \
$(gb_CFLAGS_COMMON) \
- -Wshadow \
-fPIC \
-fno-strict-aliasing \
+ #-Wshadow \ break in compiler headers already
gb_CXXFLAGS := \
-isysroot $(gb_SDKDIR) \