Skip to content

Commit

Permalink
Silence "may be used uninitialized" warnings
Browse files Browse the repository at this point in the history
Possibly can be fixed upstream:

```
INFO: From Compiling third_party/zstd-jni/src/main/native/jni_zdict.c:
third_party/zstd-jni/src/main/native/jni_zdict.c: In function 'Java_com_github_luben_zstd_Zstd_trainFromBuffer':
third_party/zstd-jni/src/main/native/jni_zdict.c:55:12: warning: 'size' may be used uninitialized in this function [-Wmaybe-uninitialized]
 E1: return size;
            ^
third_party/zstd-jni/src/main/native/jni_zdict.c: In function 'Java_com_github_luben_zstd_Zstd_trainFromBufferDirect':
third_party/zstd-jni/src/main/native/jni_zdict.c:89:12: warning: 'size' may be used uninitialized in this function [-Wmaybe-uninitialized]
 E1: return size;
            ^
```
  • Loading branch information
glukasiknuro committed Aug 19, 2020
1 parent b0390b6 commit fe720d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions third_party/zstd-jni/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ cc_binary(
"-Wstrict-prototypes",
"-Wno-unused-variable",
"-Wpointer-arith",
"-Wno-maybe-uninitialized",
],
includes = [
"src/main/native",
Expand Down

0 comments on commit fe720d8

Please sign in to comment.