OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfd04c5
)
macOS: avoid unused variable warning when compiled with -DNDEBUG.
author
Eric Branlund
<ebranlund@fastmail.com>
Sat, 31 Jul 2021 04:25:02 +0000
(21:25 -0700)
committer
Eric Branlund
<ebranlund@fastmail.com>
Sat, 31 Jul 2021 05:09:57 +0000
(22:09 -0700)
src/main-cocoa.m
patch
|
blob
|
history
diff --git
a/src/main-cocoa.m
b/src/main-cocoa.m
index
338821d
..
0623721
100644
(file)
--- a/
src/main-cocoa.m
+++ b/
src/main-cocoa.m
@@
-1203,6
+1203,7
@@
static int isCharNoPartial(const struct TerminalCell *c)
- (void)assertInvariants
{
+#ifndef NDEBUG
const struct TerminalCell *cellsRow = self->cells;
/*
@@
-1351,6
+1352,7
@@
static int isCharNoPartial(const struct TerminalCell *c)
}
cellsRow += self.columnCount;
}
+#endif
}
+ (wchar_t)getBlankChar