summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Meyering <christophe.meyering@gmail.com>2020-01-31 21:14:06 -0800
committerAmadeusz Sławiński <amade@asmblr.net>2020-02-02 00:39:34 +0100
commit2703529ade1e52428bf87d4839bd73674e79ffd8 (patch)
tree1c7d479e24852d924933f53c22cdeded4a01e990
parent33d9a92d04007914f834ffca7cd697fae2550e24 (diff)
downloadscreen-2703529ade1e52428bf87d4839bd73674e79ffd8.tar.gz
build: test-winmsgbuf.c: add const to avoid GCC 10 warning
* src/tests/test-winmsgbuf.c:45: make char * const This avoids the following warning: tests/test-winmsgbuf.c:45:17: warning: initialization of\ ‘char *[...]'from incompatible pointer type ‘const char *[...]'
-rw-r--r--src/tests/test-winmsgbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/test-winmsgbuf.c b/src/tests/test-winmsgbuf.c
index c752899..681d81c 100644
--- a/src/tests/test-winmsgbuf.c
+++ b/src/tests/test-winmsgbuf.c
@@ -42,7 +42,7 @@ SIGNATURE_CHECK(wmbc_strcpy, const char *, (WinMsgBufContext *, const char *));
SIGNATURE_CHECK(wmbc_printf, int, (WinMsgBufContext *, const char *, ...));
SIGNATURE_CHECK(wmbc_offset, size_t, (WinMsgBufContext *));
SIGNATURE_CHECK(wmbc_bytesleft, size_t, (WinMsgBufContext *));
-SIGNATURE_CHECK(wmbc_mergewmb, char *, (WinMsgBufContext *, WinMsgBuf *));
+SIGNATURE_CHECK(wmbc_mergewmb, const char *, (WinMsgBufContext *, WinMsgBuf *));
SIGNATURE_CHECK(wmbc_finish, const char *, (WinMsgBufContext *));
SIGNATURE_CHECK(wmbc_free, void, (WinMsgBufContext *));