Skip to content

Commit

Permalink
Compiler complains that __ret may be uninitialized
Browse files Browse the repository at this point in the history
It's because it doesn't know Throw never returns
  • Loading branch information
luhenry committed May 2, 2021
1 parent 006f21c commit 1cc5e62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ information or have any questions.
<arg line="OUTPUT='${project.build.directory}/native/Linux-amd64/libnetlib${project.artifactId}jni.so'"/>
<arg line="OBJDIR='${project.build.directory}/objs/Linux-amd64'"/>
<arg line="CC='x86_64-linux-gnu-gcc'"/>
<arg line="CCFLAGS='-c -Werror -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-unused-label -fPIC -I${project.build.directory}/include -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux'"/>
<arg line="CCFLAGS='-c -Werror -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-unused-label -Wno-maybe-uninitialized -O2 -fPIC -I${project.build.directory}/include -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux'"/>
<arg line="LD='x86_64-linux-gnu-gcc'"/>
<arg line="LDFLAGS='-shared'"/>
<arg line="all"/>
Expand All @@ -252,7 +252,7 @@ information or have any questions.
<arg line="OUTPUT='${project.build.directory}/native/Linux-aarch64/libnetlib${project.artifactId}jni.so'"/>
<arg line="OBJDIR='${project.build.directory}/objs/Linux-aarch64'"/>
<arg line="CC='aarch64-linux-gnu-gcc'"/>
<arg line="CCFLAGS='-c -Werror -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-unused-label -fPIC -I${project.build.directory}/include -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux'"/>
<arg line="CCFLAGS='-c -Werror -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-unused-label -Wno-maybe-uninitialized -O2 -fPIC -I${project.build.directory}/include -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux'"/>
<arg line="LD='aarch64-linux-gnu-gcc'"/>
<arg line="LDFLAGS='-shared'"/>
<arg line="all"/>
Expand Down

0 comments on commit 1cc5e62

Please sign in to comment.