summaryrefslogtreecommitdiff
path: root/tools/workben
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 12:56:56 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 12:56:56 +0000
commitc6be51842859238f389779d9fdd594ca950f298e (patch)
treee9fb0106a377df98b50388b104e1ed013d35bda1 /tools/workben
parent05b914ce3bb830783fcbb28290332068cdbf334e (diff)
INTEGRATION: CWS warnings01 (1.3.8); FILE MERGED
2005/10/14 11:19:44 sb 1.3.8.1: #i53898# Made code warning-free; cleanup.
Diffstat (limited to 'tools/workben')
-rw-r--r--tools/workben/solar.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/tools/workben/solar.c b/tools/workben/solar.c
index 540a79f888da..0cd22e3cbe8f 100644
--- a/tools/workben/solar.c
+++ b/tools/workben/solar.c
@@ -4,9 +4,9 @@
*
* $RCSfile: solar.c,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 14:53:42 $
+ * last change: $Author: hr $ $Date: 2006-06-19 13:56:56 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -169,7 +169,7 @@ void __cdecl SignalHandler( int sig )
/*
fprintf( stderr, "Signal %d caught\n", sig );
signal( sig, SignalHandler );
- /**/
+ */
longjmp( check_env, sig );
}
#endif
@@ -316,9 +316,9 @@ struct Description
int bStackGrowsDown;
int nStackAlignment;
int nAlignment[3]; /* 2,4,8 */
-}
+};
-Description_Ctor( struct Description* pThis )
+void Description_Ctor( struct Description* pThis )
{
pThis->bBigEndian = IsBigEndian();
pThis->bStackGrowsDown = IsStackGrowingDown();
@@ -335,7 +335,7 @@ Description_Ctor( struct Description* pThis )
pThis->nAlignment[2] = GetAlignment( t_double );
}
-Description_Print( struct Description* pThis, char* name )
+void Description_Print( struct Description* pThis, char* name )
{
int i;
FILE* f = fopen( name, "w" );
@@ -343,7 +343,7 @@ Description_Print( struct Description* pThis, char* name )
pThis->bBigEndian ? "BIGENDIAN" : "LITTLEENDIAN" );
for ( i = 0; i < 3; i++ )
fprintf( f, "#define __ALIGNMENT%d\t%d\n",
- 1 << i+1, pThis->nAlignment[i] );
+ 1 << (i+1), pThis->nAlignment[i] );
fprintf( f, "#define __STACKALIGNMENT wird nicht benutzt\t%d\n", pThis->nStackAlignment );
fprintf( f, "#define __STACKDIRECTION\t%d\n",
pThis->bStackGrowsDown ? -1 : 1 );
@@ -357,6 +357,7 @@ Description_Print( struct Description* pThis, char* name )
fprintf( f, "#define _SOLAR_NODESCRIPTION\n" );
}
+int
#ifdef WNT
__cdecl
#endif