Added __attribute__ ((unused)) on static inline functions declared in
header files.
This commit is contained in:
parent
1bc4c49df7
commit
18052c7727
|
@ -284,7 +284,7 @@ typedef struct tagFLOAT_POINT
|
|||
* transformation process is done in floating point internally. This function
|
||||
* is then used to round these coordinates to integer values.
|
||||
*/
|
||||
static __inline__ INT32 GDI_ROUND(FLOAT val)
|
||||
static __inline__ INT32 WINE_UNUSED GDI_ROUND(FLOAT val)
|
||||
{
|
||||
return (int)floor(val + 0.5);
|
||||
}
|
||||
|
@ -292,7 +292,7 @@ static __inline__ INT32 GDI_ROUND(FLOAT val)
|
|||
/* Performs a viewport-to-world transformation on the specified point (which
|
||||
* is in floating point format). Returns TRUE if successful, else FALSE.
|
||||
*/
|
||||
static __inline__ BOOL32 INTERNAL_DPTOLP_FLOAT(DC *dc, FLOAT_POINT *point)
|
||||
static __inline__ BOOL32 WINE_UNUSED INTERNAL_DPTOLP_FLOAT(DC *dc, FLOAT_POINT *point)
|
||||
{
|
||||
FLOAT x, y;
|
||||
|
||||
|
@ -316,7 +316,7 @@ static __inline__ BOOL32 INTERNAL_DPTOLP_FLOAT(DC *dc, FLOAT_POINT *point)
|
|||
/* Performs a viewport-to-world transformation on the specified point (which
|
||||
* is in integer format). Returns TRUE if successful, else FALSE.
|
||||
*/
|
||||
static __inline__ BOOL32 INTERNAL_DPTOLP(DC *dc, LPPOINT32 point)
|
||||
static __inline__ BOOL32 WINE_UNUSED INTERNAL_DPTOLP(DC *dc, LPPOINT32 point)
|
||||
{
|
||||
FLOAT_POINT floatPoint;
|
||||
|
||||
|
@ -336,7 +336,7 @@ static __inline__ BOOL32 INTERNAL_DPTOLP(DC *dc, LPPOINT32 point)
|
|||
/* Performs a world-to-viewport transformation on the specified point (which
|
||||
* is in floating point format).
|
||||
*/
|
||||
static __inline__ void INTERNAL_LPTODP_FLOAT(DC *dc, FLOAT_POINT *point)
|
||||
static __inline__ void WINE_UNUSED INTERNAL_LPTODP_FLOAT(DC *dc, FLOAT_POINT *point)
|
||||
{
|
||||
FLOAT x, y;
|
||||
|
||||
|
@ -354,7 +354,7 @@ static __inline__ void INTERNAL_LPTODP_FLOAT(DC *dc, FLOAT_POINT *point)
|
|||
/* Performs a world-to-viewport transformation on the specified point (which
|
||||
* is in integer format).
|
||||
*/
|
||||
static __inline__ void INTERNAL_LPTODP(DC *dc, LPPOINT32 point)
|
||||
static __inline__ void WINE_UNUSED INTERNAL_LPTODP(DC *dc, LPPOINT32 point)
|
||||
{
|
||||
FLOAT_POINT floatPoint;
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ extern LPSTR HEAP_strdupWtoA( HANDLE32 heap, DWORD flags, LPCWSTR str );
|
|||
#define SEGPTR_STRDUP_WtoA(str) \
|
||||
(HIWORD(str) ? HEAP_strdupWtoA( SegptrHeap, 0, (str) ) : (LPSTR)(str))
|
||||
/* define an inline function, a macro won't do */
|
||||
static __inline__ SEGPTR SEGPTR_Get(LPCVOID ptr) {
|
||||
static __inline__ SEGPTR WINE_UNUSED SEGPTR_Get(LPCVOID ptr) {
|
||||
return (HIWORD(ptr) ? HEAP_GetSegptr( SegptrHeap, 0, ptr ) : (SEGPTR)ptr);
|
||||
}
|
||||
#define SEGPTR_GET(ptr) SEGPTR_Get(ptr)
|
||||
|
|
|
@ -367,8 +367,10 @@ DECL_WINELIB_TYPE(HWND)
|
|||
|
||||
#ifdef __GNUC__
|
||||
#define WINE_PACKED __attribute__ ((packed))
|
||||
#define WINE_UNUSED __attribute__ ((unused))
|
||||
#else
|
||||
#define WINE_PACKED /* nothing */
|
||||
#define WINE_UNUSED /* nothing */
|
||||
#endif
|
||||
|
||||
/* Macros to split words and longs. */
|
||||
|
|
Loading…
Reference in New Issue