Skip to content

Commit 022cd73

Browse files
committed
rc_copy() does not need to return a value
1 parent 35da94a commit 022cd73

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

gem.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ static inline short appl_init(void) {
9696
gl_ap_version = aes_global[0];
9797
return gl_apid;
9898
}
99+
#else
100+
short appl_init(void);
99101
#endif
100102

101103
/** fast version of appl_yield that does not use the AES arrays */

mt_gem.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2138,7 +2138,7 @@ short mt_wind_set_ptr_int (short WindowHandle, short What, void *v, short W3,
21382138
/** @addtogroup a_util
21392139
* @{
21402140
*/
2141-
short rc_copy (const GRECT *src, GRECT *dst);
2141+
void rc_copy (const GRECT *src, GRECT *dst);
21422142
short rc_equal (const GRECT *r1, const GRECT *r2);
21432143
short rc_intersect (const GRECT *src, GRECT *dst);
21442144
GRECT * array_to_grect (const short *array, GRECT *area);

rc_copy.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,9 @@
55
* @param src
66
* @param dst
77
*
8-
* @return always 1.
9-
*
108
*/
119

12-
short
13-
rc_copy (const GRECT * src, GRECT * dst)
10+
void rc_copy (const GRECT * src, GRECT * dst)
1411
{
1512
*dst = *src;
16-
return 1;
1713
}

0 commit comments

Comments
 (0)