commit | 3e441226cde8ee1d29c9db11bd74e93e4a2e10b1 | [log] [tgz] |
---|---|---|
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | Wed Dec 01 08:20:05 2021 +0200 |
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | Wed Dec 01 08:20:05 2021 +0200 |
tree | 593b044364fe8fb96a75d5cd3ebdd9b7d2f6a6a8 | |
parent | 426a60efaf6a2fa0183875d2f31aefe98575306f [diff] |
Fix compiler warning on MSVC (#717)
diff --git a/pb_encode.c b/pb_encode.c index 2ad9925..6fcbfa6 100644 --- a/pb_encode.c +++ b/pb_encode.c
@@ -68,7 +68,7 @@ /* In PB_BUFFER_ONLY configuration the callback pointer is just int*. * NULL pointer marks a sizing field, so put a non-NULL value to mark a buffer stream. */ - static const int marker; + static const int marker = 0; stream.callback = ▮ #else stream.callback = &buf_write;