summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/SDBM_File/sdbm/sdbm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/SDBM_File/sdbm/sdbm.c b/ext/SDBM_File/sdbm/sdbm.c
index f2c213ca2d..f5f893cb18 100644
--- a/ext/SDBM_File/sdbm/sdbm.c
+++ b/ext/SDBM_File/sdbm/sdbm.c
@@ -301,6 +301,9 @@ makroom(DBM *db, long int hash, int need)
char *pag = db->pagbuf;
char *New = twin;
int smax = SPLTMAX;
+#ifdef BADMESS
+ int rc;
+#endif
do {
/*
@@ -375,7 +378,9 @@ makroom(DBM *db, long int hash, int need)
* we still cannot fit the key. say goodnight.
*/
#ifdef BADMESS
- (void) write(2, "sdbm: cannot insert after SPLTMAX attempts.\n", 44);
+ rc = write(2, "sdbm: cannot insert after SPLTMAX attempts.\n", 44);
+ (void)rc;
+
#endif
return 0;