summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-17 15:36:26 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-17 15:51:54 +0200
commita15715c34309416e76ebd2007a51ff6c42f28817 (patch)
tree8794c25b33abbcd8b050fe71dbd6576949741f0e /sal
parent6fcc7efad066d6f3804196f3d3fbddd6a0a485cb (diff)
-Wstrict-prototypes
...no reason to not have it enabled for URE C include files and what little real C code is still left. (But note that Clang ignores that warning.) Change-Id: Ia6940f9f940a0c226e9b724331d65c9862ce32e6
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/pipe.c2
-rw-r--r--sal/osl/unx/saltime.h2
-rw-r--r--sal/osl/unx/signal.c6
-rw-r--r--sal/osl/unx/socket.c2
-rw-r--r--sal/osl/unx/time.c2
5 files changed, 7 insertions, 7 deletions
diff --git a/sal/osl/unx/pipe.c b/sal/osl/unx/pipe.c
index 10ac93238413..b0ee4324baff 100644
--- a/sal/osl/unx/pipe.c
+++ b/sal/osl/unx/pipe.c
@@ -89,7 +89,7 @@ static oslPipeError osl_PipeErrorFromNative(int nativeType)
/* macros */
#define ERROR_FROM_NATIVE(y) osl_PipeErrorFromNative(y)
-oslPipe __osl_createPipeImpl()
+oslPipe __osl_createPipeImpl(void)
{
oslPipe pPipeImpl;
diff --git a/sal/osl/unx/saltime.h b/sal/osl/unx/saltime.h
index 001944f53904..735be7868d4b 100644
--- a/sal/osl/unx/saltime.h
+++ b/sal/osl/unx/saltime.h
@@ -26,7 +26,7 @@
extern "C" {
#endif
-void sal_initGlobalTimer();
+void sal_initGlobalTimer(void);
#if defined __cplusplus
}
diff --git a/sal/osl/unx/signal.c b/sal/osl/unx/signal.c
index 93da6c67c6ab..d8d2190efdb0 100644
--- a/sal/osl/unx/signal.c
+++ b/sal/osl/unx/signal.c
@@ -199,7 +199,7 @@ static sal_Bool is_soffice_Impl (void)
return (idx != -1);
}
-static sal_Bool InitSignal()
+static sal_Bool InitSignal(void)
{
int i;
struct sigaction act;
@@ -288,7 +288,7 @@ static sal_Bool InitSignal()
return sal_True;
}
-static sal_Bool DeInitSignal()
+static sal_Bool DeInitSignal(void)
{
int i;
struct sigaction act;
@@ -889,7 +889,7 @@ void CallSystemHandler(int Signal)
}
#if defined HAVE_VALGRIND_HEADERS
-static void DUMPCURRENTALLOCS()
+static void DUMPCURRENTALLOCS(void)
{
VALGRIND_PRINTF( "=== start memcheck dump of active allocations ===\n" );
diff --git a/sal/osl/unx/socket.c b/sal/osl/unx/socket.c
index d11297f6268b..fb6ced2ce77c 100644
--- a/sal/osl/unx/socket.c
+++ b/sal/osl/unx/socket.c
@@ -466,7 +466,7 @@ void __osl_destroySocketImpl(oslSocket Socket)
#endif
}
-static oslSocketAddr __osl_createSocketAddr( )
+static oslSocketAddr __osl_createSocketAddr(void)
{
oslSocketAddr pAddr = (oslSocketAddr) rtl_allocateZeroMemory( sizeof( struct oslSocketAddrImpl ));
#if OSL_DEBUG_LEVEL > 1
diff --git a/sal/osl/unx/time.c b/sal/osl/unx/time.c
index e80fd41aaab6..c474af6c1dd8 100644
--- a/sal/osl/unx/time.c
+++ b/sal/osl/unx/time.c
@@ -260,7 +260,7 @@ sal_Bool SAL_CALL osl_getSystemTimeFromLocalTime( const TimeValue* pLocalTimeVal
return sal_False;
}
-void sal_initGlobalTimer()
+void sal_initGlobalTimer(void)
{
#ifdef __MACH__
clock_serv_t cclock;