blob: 24554217d512e499cb47950b1b3cb830013e09f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
$NetBSD: patch-ac,v 1.1 2006/07/15 20:05:18 rillig Exp $
SunPro treats incompatible types in the ?: operator as error.
--- client/helpdata.c.orig 2005-10-13 09:45:45.000000000 +0200
+++ client/helpdata.c 2006-07-15 21:58:31.317408915 +0200
@@ -553,10 +553,10 @@ char *helptext_building(char *buf, size_
#define req_append(s) \
(req_buf[0] != '\0' \
- ? my_snprintf(req_buf + strlen(req_buf), \
+ ? (void)my_snprintf(req_buf + strlen(req_buf), \
sizeof(req_buf) - strlen(req_buf), \
", %s", (s)) \
- : sz_strlcpy(req_buf, (s)))
+ : (void)sz_strlcpy(req_buf, (s)))
if (b->tech_req != A_NONE) {
req_append(get_tech_name(game.player_ptr, b->tech_req));
|