Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
18052c77
Commit
18052c77
authored
Feb 25, 1999
by
David Luyer
Committed by
Alexandre Julliard
Feb 25, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added __attribute__ ((unused)) on static inline functions declared in
header files.
parent
1bc4c49d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
gdi.h
include/gdi.h
+5
-5
heap.h
include/heap.h
+1
-1
wintypes.h
include/wintypes.h
+2
-0
No files found.
include/gdi.h
View file @
18052c77
...
...
@@ -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
;
...
...
include/heap.h
View file @
18052c77
...
...
@@ -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)
...
...
include/wintypes.h
View file @
18052c77
...
...
@@ -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. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment