Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-17196

Fix C/C++ standard warnings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.3
    • 3.4.0
    • build
    • None
    • Windows 10 Pro 64-bit

    • Reviewed

    Description

      The C/C++ language standard is not specified in a cross-compiler manner. Even though it's as straight forward as passing -std as compiler arguments, not all the values are supported by all the compilers. For example, compilation with the Visual C++ compiler on Windows with -std=gnu99 flag causes the following warning -

      cl : command line warning D9002: ignoring unknown option '-std=gnu99' [Z:\hadoop-hdfs-project\hadoop-hdfs-native-client\target\native\main\native\libhdfs-examples\hdfs_read.vcxproj] 

      Thus, we need to use the appropriate flags provided by CMake to specify the C/C++ standards so that it is compiler friendly.

      Attachments

        Issue Links

          Activity

            People

              gaurava Gautham Banasandra
              gaurava Gautham Banasandra
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 168h
                  168h
                  Remaining:
                  Remaining Estimate - 168h
                  168h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified