[
https://issues.apache.org/jira/browse/HADOOP-12560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14999526#comment-14999526
]
Allen Wittenauer commented on HADOOP-12560:
-------------------------------------------
FYI, it doesn't reflect it in the final report, but Yetus did confirm this
lowered the warnings:
{code}
cd /testptch/hadoop
mvn -Dmaven.repo.local=/home/jenkins/yetus-m2/hadoop-trunk-1 -DskipTests
-Pnative -Drequire.snappy -Drequire.openssl -Drequire.fuse
-Drequire.test.libhadoop clean test-compile -DskipTests=true >
/testptch/hadoop/patchprocess/patch-compile-root-jdk1.8.0_60.txt 2>&1
Elapsed: 4m 54s
root/cc: 0 new issues (was 29, now 13).
{code}
We've got an open JIRA to expose these numbers so that you can see it drop. :)
> Fix sprintf warnings in {{DomainSocket.c}} introduced by HADOOP-12344
> ---------------------------------------------------------------------
>
> Key: HADOOP-12560
> URL: https://issues.apache.org/jira/browse/HADOOP-12560
> Project: Hadoop Common
> Issue Type: Bug
> Components: native
> Affects Versions: 2.8.0
> Reporter: Colin Patrick McCabe
> Assignee: Mingliang Liu
> Fix For: 2.8.0
>
> Attachments: HADOOP-12560.000.patch
>
>
> Fix sprintf warnings in {{DomainSocket.c}} introduced by HADOOP-12344
> {code}
> [exec]
> op/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/net/unix/DomainSocket.c:488:10:
> warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6
> has type ‘long long int’ [-Wformat=]
> [exec] check, path, mode, (long long)st.st_uid, (long
> long)st.st_gid, check);
> [exec] ^
> [exec]
> /pool/home/alanbur/bigdata/hadoop/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/net/unix/DomainSocket.c:488:10:
> warning: format ‘%ld’ expects argument of type ‘long int’, but argument 7
> has type ‘long long int’ [-Wformat=]
> [exec]
> /pool/home/alanbur/bigdata/hadoop/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/net/unix/DomainSocket.c:500:10:
> warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6
> has type ‘long long int’ [-Wformat=]
> [exec] check, check);
> [exec] ^
> [exec]
> /pool/home/alanbur/bigdata/hadoop/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/net/unix/DomainSocket.c:500:10:
> warning: format ‘%ld’ expects argument of type ‘long int’, but argument 7
> has type ‘long long int’ [-Wformat=]
> [exec]
> /pool/home/alanbur/bigdata/hadoop/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/net/unix/DomainSocket.c:513:10:
> warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6
> has type ‘long long int’ [-Wformat=]
> [exec] (long long)uid, check, (long long)uid, check);
> [exec] ^
> [exec]
> /pool/home/alanbur/bigdata/hadoop/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/net/unix/DomainSocket.c:513:10:
> warning: format ‘%ld’ expects argument of type ‘long int’, but argument 7
> has type ‘long long int’ [-Wformat=]
> [exec]
> /pool/home/alanbur/bigdata/hadoop/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/net/unix/DomainSocket.c:513:10:
> warning: format ‘%ld’ expects argument of type ‘long int’, but argument 8
> has type ‘long long int’ [-Wformat=]
> [exec]
> /pool/home/alanbur/bigdata/hadoop/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/net/unix/DomainSocket.c:513:10:
> warning: format ‘%ld’ expects argument of type ‘long int’, but argument 10
> has type ‘long long int’ [-Wformat=]
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)