[
https://issues.apache.org/jira/browse/MAPREDUCE-5977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Manu Zhang updated MAPREDUCE-5977:
----------------------------------
Attachment: mapreduce-5977-v2.txt
Hi Sean, I've updated the patch with the following changes.
1. add compile flags "-fno-strict-aliasing" and "-Wno-sign-compare" to suppress
strict-aliasing and sign-compare warnings. all "static_cast"s have been removed;
2. "%%%c%lldlld" could be replaced with "%%%c%"PRId64""PRId64 so that PRId64
and PRIu64 work for all now;
3. as you suggest, gtest is compiled before nttest and loaded as system
library, to suppress gtest warnings. (Note that "gtest/gtest.h" is moved to
"gtest/include/gtest/gtest.h" and "gtest/include" is included as system
directory. )
> Fix or suppress native-task gcc warnings
> ----------------------------------------
>
> Key: MAPREDUCE-5977
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-5977
> Project: Hadoop Map/Reduce
> Issue Type: Sub-task
> Components: task
> Reporter: Todd Lipcon
> Assignee: Manu Zhang
> Attachments: gcc_compile.log, mapreduce-5977-v2.txt,
> mapreduce-5977.txt
>
>
> Currently, building the native task code on gcc 4.8 has a fair number of
> warnings. We should fix or suppress them so that new warnings are easier to
> see.
--
This message was sent by Atlassian JIRA
(v6.2#6252)