[ 
https://issues.apache.org/jira/browse/HAWQ-1187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

hongwu updated HAWQ-1187:
-------------------------
    Description: 
http://pastebin.com/VWSuCwsC

{code}
aosegfiles.c:1105:6: warning: variable 'returnDatum' is used uninitialized 
whenever 'if' condition is false [-Wsometimes-uninitialized]
        if (RelationIsAoRows(parentrel))
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../src/include/utils/rel.h:364:2: note: expanded from macro 
'RelationIsAoRows'
        ((bool)(((relation)->rd_rel->relstorage == RELSTORAGE_AOROWS)))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aosegfiles.c:1112:9: note: uninitialized use occurs here
        return returnDatum;
               ^~~~~~~~~~~
aosegfiles.c:1105:2: note: remove the 'if' if its condition is always true
        if (RelationIsAoRows(parentrel))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aosegfiles.c:1094:21: note: initialize the variable 'returnDatum' to silence 
this warning
        Datum                   returnDatum;
                                           ^
                                            = 0

tablecmds.c:902:7: warning: variable 'result' is used uninitialized whenever 
'if' condition is false [-Wsometimes-uninitialized]
                if (astate)
                    ^~~~~~
tablecmds.c:905:10: note: uninitialized use occurs here
                return result;
                       ^~~~~~
tablecmds.c:902:3: note: remove the 'if' if its condition is always true
                if (astate)
                ^~~~~~~~~~~
tablecmds.c:803:14: note: initialize the variable 'result' to silence this 
warning
        Datum result;
                    ^
                     = 0
tablecmds.c:4740:15: warning: variable 'l1' is used uninitialized whenever 'if' 
condition is false [-Wsometimes-uninitialized]
                                        else if (!is_at)
                                                 ^~~~~~
tablecmds.c:4750:23: note: uninitialized use occurs here
                                        if (IsA(linitial(l1), A_Const) ||
                                                         ^~
../../../src/include/nodes/pg_list.h:124:41: note: expanded from macro 
'linitial'
#define linitial(l)                             lfirst(list_head(l))
                                                                 ^
../../../src/include/nodes/pg_list.h:120:25: note: expanded from macro 'lfirst'
#define lfirst(lc)                              ((lc)->data.ptr_value)
                                                  ^~
../../../src/include/nodes/nodes.h:595:39: note: expanded from macro 'IsA'
#define IsA(nodeptr,_type_)             (nodeTag(nodeptr) == T_##_type_)
                                                 ^~~~~~~
../../../src/include/nodes/nodes.h:549:37: note: expanded from macro 'nodeTag'
#define nodeTag(nodeptr)                (((Node*)(nodeptr))->type)
                                                  ^~~~~~~
tablecmds.c:4740:11: note: remove the 'if' if its condition is always true
                                        else if (!is_at)
                                             ^~~~~~~~~~~
tablecmds.c:4729:14: note: initialize the variable 'l1' to silence this warning
                                        List *l1;
                                                ^
                                                 = NULL

setrefs.c:1465:7: warning: variable 'bitmapqualorig_p' is used uninitialized 
whenever 'if' condition is false [-Wsometimes-uninitialized]
                if (IsA(inner_plan, BitmapHeapScan))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../src/include/nodes/nodes.h:595:30: note: expanded from macro 'IsA'
#define IsA(nodeptr,_type_)             (nodeTag(nodeptr) == T_##_type_)
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
setrefs.c:1473:28: note: uninitialized use occurs here
                if (NumRelids((Node *) (*bitmapqualorig_p)) > 1)
                                         ^~~~~~~~~~~~~~~~
setrefs.c:1465:3: note: remove the 'if' if its condition is always true
                if (IsA(inner_plan, BitmapHeapScan))
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
setrefs.c:1464:26: note: initialize the variable 'bitmapqualorig_p' to silence 
this warning
                List **bitmapqualorig_p;
                                       ^
                                        = NULL
1 warning generated.

gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  -Wendif-labels 
-Wformat-security -fno-strict-aliasing -fwrapv 
-I/usr/local/Cellar/curl/7.49.1/include 
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
 -I../../../../src/backend/gp_libpq_fe  -I../../../../src/include  
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
 
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
  -c -o date.o date.c
date.c:72:6: warning: variable 'dtype' is used uninitialized whenever 'if' 
condition is false [-Wsometimes-uninitialized]
        if (dterr == 0)
            ^~~~~~~~~~
date.c:77:10: note: uninitialized use occurs here
        switch (dtype)
                ^~~~~
date.c:72:2: note: remove the 'if' if its condition is always true
        if (dterr == 0)
        ^~~~~~~~~~~~~~~
date.c:63:13: note: initialize the variable 'dtype' to silence this warning
        int                     dtype;
                                     ^
                                      = 0
date.c:923:6: warning: variable 'fsec' is used uninitialized whenever 'if' 
condition is false [-Wsometimes-uninitialized]
        if (dterr == 0)
            ^~~~~~~~~~
date.c:928:14: note: uninitialized use occurs here
        tm2time(tm, fsec, &result);
                    ^~~~
date.c:923:2: note: remove the 'if' if its condition is always true
        if (dterr == 0)
        ^~~~~~~~~~~~~~~
date.c:910:14: note: initialize the variable 'fsec' to silence this warning
        fsec_t          fsec;
                            ^
                             = 0
date.c:1789:6: warning: variable 'fsec' is used uninitialized whenever 'if' 
condition is false [-Wsometimes-uninitialized]
        if (dterr == 0)
            ^~~~~~~~~~
date.c:1795:16: note: uninitialized use occurs here
        tm2timetz(tm, fsec, tz, result);
                      ^~~~
date.c:1789:2: note: remove the 'if' if its condition is always true
        if (dterr == 0)
        ^~~~~~~~~~~~~~~
date.c:1776:14: note: initialize the variable 'fsec' to silence this warning
        fsec_t          fsec;
                            ^
                             = 0
date.c:1789:6: warning: variable 'tz' is used uninitialized whenever 'if' 
condition is false [-Wsometimes-uninitialized]
        if (dterr == 0)
            ^~~~~~~~~~
date.c:1795:22: note: uninitialized use occurs here
        tm2timetz(tm, fsec, tz, result);
                            ^~
date.c:1789:2: note: remove the 'if' if its condition is always true
        if (dterr == 0)
        ^~~~~~~~~~~~~~~
date.c:1779:10: note: initialize the variable 'tz' to silence this warning
        int                     tz;
                                  ^
                                   = 0
4 warnings generated.

gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  -Wendif-labels 
-Wformat-security -fno-strict-aliasing -fwrapv 
-I/usr/local/Cellar/curl/7.49.1/include 
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
 -I../../../../src/backend/gp_libpq_fe  -I../../../../src/include  
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
 
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
  -c -o nabstime.o nabstime.c
nabstime.c:238:6: warning: variable 'dtype' is used uninitialized whenever 'if' 
condition is false [-Wsometimes-uninitialized]
        if (dterr == 0)
            ^~~~~~~~~~
nabstime.c:243:10: note: uninitialized use occurs here
        switch (dtype)
                ^~~~~
nabstime.c:238:2: note: remove the 'if' if its condition is always true
        if (dterr == 0)
        ^~~~~~~~~~~~~~~
nabstime.c:232:13: note: initialize the variable 'dtype' to silence this warning
        int                     dtype;
                                     ^
                                      = 0
1 warning generated.

gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  -Wendif-labels 
-Wformat-security -fno-strict-aliasing -fwrapv 
-I/usr/local/Cellar/curl/7.49.1/include 
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
 -I../../../../src/backend/gp_libpq_fe  -I../../../../src/include  
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
 
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
  -c -o timestamp.o timestamp.c
timestamp.c:167:6: warning: variable 'dtype' is used uninitialized whenever 
'if' condition is false [-Wsometimes-uninitialized]
        if (dterr == 0)
            ^~~~~~~~~~
timestamp.c:172:10: note: uninitialized use occurs here
        switch (dtype)
                ^~~~~
timestamp.c:167:2: note: remove the 'if' if its condition is always true
        if (dterr == 0)
        ^~~~~~~~~~~~~~~
timestamp.c:158:13: note: initialize the variable 'dtype' to silence this 
warning
        int                     dtype;
                                     ^
                                      = 0
timestamp.c:431:6: warning: variable 'dtype' is used uninitialized whenever 
'if' condition is false [-Wsometimes-uninitialized]
        if (dterr == 0)
            ^~~~~~~~~~
timestamp.c:436:10: note: uninitialized use occurs here
        switch (dtype)
                ^~~~~
timestamp.c:431:2: note: remove the 'if' if its condition is always true
        if (dterr == 0)
        ^~~~~~~~~~~~~~~
timestamp.c:422:13: note: initialize the variable 'dtype' to silence this 
warning
        int                     dtype;
                                     ^
                                      = 0
2 warnings generated.

resourcebroker_LIBYARN_proc.c:1631:9: warning: variable 'activeFailIds' is used 
uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
    if( yarnres != FUNCTION_SUCCEEDED ) {
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
resourcebroker_LIBYARN_proc.c:1702:10: note: uninitialized use occurs here
    if ( activeFailIds != NULL ) {
         ^~~~~~~~~~~~~
resourcebroker_LIBYARN_proc.c:1631:5: note: remove the 'if' if its condition is 
always false
    if( yarnres != FUNCTION_SUCCEEDED ) {
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
resourcebroker_LIBYARN_proc.c:1641:5: note: variable 'activeFailIds' is 
declared here
    int64_t *activeFailIds = NULL;
    ^

gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  -Wendif-labels 
-Wformat-security -fno-strict-aliasing -fwrapv 
-I/usr/local/Cellar/curl/7.49.1/include 
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
 -I. -I../../../src/include  
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
 
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
  -c -o analyze.o analyze.c
analyze.c:9325:22: warning: argument to 'sizeof' in '__builtin___memcpy_chk' 
call is the same pointer type 'GroupingClause *' (aka 'struct GroupingClause 
*') as the destination; expected 'GroupingClause'
      (aka 'struct GroupingClause') or an explicit length 
[-Wsizeof-pointer-memaccess]
                memcpy(new_gc, gc, sizeof(gc));
                       ~~~~~~      ^~~~~~~~~~
/usr/include/secure/_string.h:65:38: note: expanded from macro 'memcpy'
  __builtin___memcpy_chk (dest, src, len, __darwin_obsz0 (dest))
                          ~~~~       ^~~
1 warning generated.

gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  -Wendif-labels 
-Wformat-security -fno-strict-aliasing -fwrapv 
-I/usr/local/Cellar/curl/7.49.1/include 
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
 -pthread  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -pthread 
-Wno-deprecated-declarations -DFRONTEND -I../../../src/interfaces/libpq 
-I../../../src/include  
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
 
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
  -c -o dumputils.o dumputils.c
dumputils.c:1074:26: warning: 'memset' call operates on objects of type 'char' 
while the size is based on a different type 'char *' 
[-Wsizeof-pointer-memaccess]
                memset(result,0,sizeof(result));
                       ~~~~~~          ^~~~~~
dumputils.c:1074:26: note: did you mean to provide an explicit length?
                memset(result,0,sizeof(result));
                                       ^~~~~~
1 warning generated.

gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  -Wendif-labels 
-Wformat-security -fno-strict-aliasing -fwrapv 
-I/usr/local/Cellar/curl/7.49.1/include 
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
 -pthread  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -pthread 
-DFRONTEND -I. -I. -I../../../src/interfaces/libpq -I../../../src/bin/pg_dump 
-I../../../src/include  
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
 
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
  -c -o dumputils.o dumputils.c
dumputils.c:1074:26: warning: 'memset' call operates on objects of type 'char' 
while the size is based on a different type 'char *' 
[-Wsizeof-pointer-memaccess]
                memset(result,0,sizeof(result));
                       ~~~~~~          ^~~~~~
dumputils.c:1074:26: note: did you mean to provide an explicit length?
                memset(result,0,sizeof(result));
                                       ^~~~~~
1 warning generated.

gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  -Wendif-labels 
-Wformat-security -fno-strict-aliasing -fwrapv 
-I/usr/local/Cellar/curl/7.49.1/include 
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
 -pthread  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -pthread 
-DFRONTEND -I../../../src/bin/pg_dump -I../../../src/bin/psql 
-I../../../src/interfaces/libpq -I../../../src/include  
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
 
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
  -c -o dumputils.o dumputils.c
dumputils.c:1074:26: warning: 'memset' call operates on objects of type 'char' 
while the size is based on a different type 'char *' 
[-Wsizeof-pointer-memaccess]
                memset(result,0,sizeof(result));
                       ~~~~~~          ^~~~~~
dumputils.c:1074:26: note: did you mean to provide an explicit length?
                memset(result,0,sizeof(result));
                                       ^~~~~~
1 warning generated.

gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  -Wendif-labels 
-Wformat-security -fno-strict-aliasing -fwrapv 
-I/usr/local/Cellar/curl/7.49.1/include 
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
 -I../../../src/backend/resourcemanager/include 
-I../../../src/backend/gp_libpq_fe -I../../../src/include  
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
 
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
  -c -o dbcommands.o dbcommands.c
In file included from dbcommands.c:87:
../../../src/include/cdb/cdbpersistentdatabase.h:41:27: warning: field 'header' 
with variable sized type 'SharedOidSearchObjHeader' (aka 'struct 
SharedOidSearchObjHeader') not at the end of a struct or
      class is a GNU extension [-Wgnu-variable-sized-type-not-at-end]
        SharedOidSearchObjHeader        header;
                                        ^
dbcommands.c:859:4: warning: add explicit braces to avoid dangling else 
[-Wdangling-else]
                        else
                        ^
2 warnings generated.

gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  -Wendif-labels 
-Wformat-security -fno-strict-aliasing -fwrapv 
-I/usr/local/Cellar/curl/7.49.1/include 
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
 -I../../../../src/include  
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
 
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
  -c -o createplan.o createplan.c
In file included from createplan.c:45:
../../../../src/include/executor/execHHashagg.h:34:9: warning: 
'EXECHYBRIDHASHAGG_H' is used as a header guard here, followed by #define of a 
different macro [-Wheader-guard]
#ifndef EXECHYBRIDHASHAGG_H
        ^~~~~~~~~~~~~~~~~~~
../../../../src/include/executor/execHHashagg.h:35:9: note: 
'EXECBYBRIDHASHAGG_H' is defined here; did you mean 'EXECHYBRIDHASHAGG_H'?
#define EXECBYBRIDHASHAGG_H
        ^~~~~~~~~~~~~~~~~~~
        EXECHYBRIDHASHAGG_H

gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  -Wendif-labels 
-Wformat-security -fno-strict-aliasing -fwrapv 
-I/usr/local/Cellar/curl/7.49.1/include 
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
 -I../../../src/backend/gp_libpq_fe -I../../../src/include  
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
 
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
  -c -o execQual.o execQual.c
execQual.c:1565:16: warning: implicit conversion from enumeration type 'enum 
NodeTag' to different enumeration type 'fmNodeTag' (aka 'enum fmNodeTag') 
[-Wenum-conversion]
        rsinfo.type = T_ReturnSetInfo;
                    ~ ^~~~~~~~~~~~~~~
execQual.c:1881:16: warning: implicit conversion from enumeration type 'enum 
NodeTag' to different enumeration type 'fmNodeTag' (aka 'enum fmNodeTag') 
[-Wenum-conversion]
        rsinfo.type = T_ReturnSetInfo;
                    ~ ^~~~~~~~~~~~~~~
2 warnings generated.

gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  -Wendif-labels 
-Wformat-security -fno-strict-aliasing -fwrapv 
-I/usr/local/Cellar/curl/7.49.1/include 
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
 -I../../../src/backend/gp_libpq_fe -I../../../src/include  
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
 
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
  -c -o nodeTableFunction.o nodeTableFunction.c
nodeTableFunction.c:419:31: warning: implicit conversion from enumeration type 
'enum NodeTag' to different enumeration type 'fmNodeTag' (aka 'enum fmNodeTag') 
[-Wenum-conversion]
        scanstate->rsinfo.type             = T_ReturnSetInfo;
                                           ~ ^~~~~~~~~~~~~~~
1 warning generated.

gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  -Wendif-labels 
-Wformat-security -fno-strict-aliasing -fwrapv 
-I/usr/local/Cellar/curl/7.49.1/include 
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
 -I../../../src/backend/gp_libpq_fe -I../../../src/include  
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
 
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
  -c -o execQual.o execQual.c
execQual.c:1565:16: warning: implicit conversion from enumeration type 'enum 
NodeTag' to different enumeration type 'fmNodeTag' (aka 'enum fmNodeTag') 
[-Wenum-conversion]
        rsinfo.type = T_ReturnSetInfo;
                    ~ ^~~~~~~~~~~~~~~
execQual.c:1881:16: warning: implicit conversion from enumeration type 'enum 
NodeTag' to different enumeration type 'fmNodeTag' (aka 'enum fmNodeTag') 
[-Wenum-conversion]
        rsinfo.type = T_ReturnSetInfo;
                    ~ ^~~~~~~~~~~~~~~
2 warnings generated.

gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  -Wendif-labels 
-Wformat-security -fno-strict-aliasing -fwrapv 
-I/usr/local/Cellar/curl/7.49.1/include 
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
 -pthread  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -pthread 
-DFRONTEND -I. -I. -I../../../src/interfaces/libpq -I../../../src/bin/pg_dump 
-I../../../src/include  
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
 
-I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
  -c -o sql_help.o sql_help.c
sql_help.c:1800:9: warning: illegal character encoding in string literal 
[-Winvalid-source-encoding]
                                          "<A0><A0><A0><A0>ON PROTOCOL %s \n"
                                           ^~~~~~~~~~~~~~~~
sql_help.c:1801:9: warning: illegal character encoding in string literal 
[-Winvalid-source-encoding]
                                          "<A0><A0><A0><A0>TO %s",
                                           ^~~~~~~~~~~~~~~~
2 warnings generated.
{code}

  was:http://pastebin.com/VWSuCwsC


> Fix "-Wsometimes-uninitialized, -Wsizeof-pointer-memaccess, -Wdangling-else, 
> -Wheader-guard, -Wenum-conversion, -Winvalid-source-encoding" compile 
> warnings under osx
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HAWQ-1187
>                 URL: https://issues.apache.org/jira/browse/HAWQ-1187
>             Project: Apache HAWQ
>          Issue Type: Improvement
>          Components: Build
>            Reporter: hongwu
>            Assignee: hongwu
>
> http://pastebin.com/VWSuCwsC
> {code}
> aosegfiles.c:1105:6: warning: variable 'returnDatum' is used uninitialized 
> whenever 'if' condition is false [-Wsometimes-uninitialized]
>         if (RelationIsAoRows(parentrel))
>             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../../../src/include/utils/rel.h:364:2: note: expanded from macro 
> 'RelationIsAoRows'
>         ((bool)(((relation)->rd_rel->relstorage == RELSTORAGE_AOROWS)))
>         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> aosegfiles.c:1112:9: note: uninitialized use occurs here
>         return returnDatum;
>                ^~~~~~~~~~~
> aosegfiles.c:1105:2: note: remove the 'if' if its condition is always true
>         if (RelationIsAoRows(parentrel))
>         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> aosegfiles.c:1094:21: note: initialize the variable 'returnDatum' to silence 
> this warning
>         Datum                   returnDatum;
>                                            ^
>                                             = 0
> tablecmds.c:902:7: warning: variable 'result' is used uninitialized whenever 
> 'if' condition is false [-Wsometimes-uninitialized]
>                 if (astate)
>                     ^~~~~~
> tablecmds.c:905:10: note: uninitialized use occurs here
>                 return result;
>                        ^~~~~~
> tablecmds.c:902:3: note: remove the 'if' if its condition is always true
>                 if (astate)
>                 ^~~~~~~~~~~
> tablecmds.c:803:14: note: initialize the variable 'result' to silence this 
> warning
>         Datum result;
>                     ^
>                      = 0
> tablecmds.c:4740:15: warning: variable 'l1' is used uninitialized whenever 
> 'if' condition is false [-Wsometimes-uninitialized]
>                                         else if (!is_at)
>                                                  ^~~~~~
> tablecmds.c:4750:23: note: uninitialized use occurs here
>                                         if (IsA(linitial(l1), A_Const) ||
>                                                          ^~
> ../../../src/include/nodes/pg_list.h:124:41: note: expanded from macro 
> 'linitial'
> #define linitial(l)                             lfirst(list_head(l))
>                                                                  ^
> ../../../src/include/nodes/pg_list.h:120:25: note: expanded from macro 
> 'lfirst'
> #define lfirst(lc)                              ((lc)->data.ptr_value)
>                                                   ^~
> ../../../src/include/nodes/nodes.h:595:39: note: expanded from macro 'IsA'
> #define IsA(nodeptr,_type_)             (nodeTag(nodeptr) == T_##_type_)
>                                                  ^~~~~~~
> ../../../src/include/nodes/nodes.h:549:37: note: expanded from macro 'nodeTag'
> #define nodeTag(nodeptr)                (((Node*)(nodeptr))->type)
>                                                   ^~~~~~~
> tablecmds.c:4740:11: note: remove the 'if' if its condition is always true
>                                         else if (!is_at)
>                                              ^~~~~~~~~~~
> tablecmds.c:4729:14: note: initialize the variable 'l1' to silence this 
> warning
>                                         List *l1;
>                                                 ^
>                                                  = NULL
> setrefs.c:1465:7: warning: variable 'bitmapqualorig_p' is used uninitialized 
> whenever 'if' condition is false [-Wsometimes-uninitialized]
>                 if (IsA(inner_plan, BitmapHeapScan))
>                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../../../src/include/nodes/nodes.h:595:30: note: expanded from macro 'IsA'
> #define IsA(nodeptr,_type_)             (nodeTag(nodeptr) == T_##_type_)
>                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> setrefs.c:1473:28: note: uninitialized use occurs here
>                 if (NumRelids((Node *) (*bitmapqualorig_p)) > 1)
>                                          ^~~~~~~~~~~~~~~~
> setrefs.c:1465:3: note: remove the 'if' if its condition is always true
>                 if (IsA(inner_plan, BitmapHeapScan))
>                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> setrefs.c:1464:26: note: initialize the variable 'bitmapqualorig_p' to 
> silence this warning
>                 List **bitmapqualorig_p;
>                                        ^
>                                         = NULL
> 1 warning generated.
> gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  
> -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv 
> -I/usr/local/Cellar/curl/7.49.1/include 
> -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
>  -I../../../../src/backend/gp_libpq_fe  -I../../../../src/include  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
>  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
>   -c -o date.o date.c
> date.c:72:6: warning: variable 'dtype' is used uninitialized whenever 'if' 
> condition is false [-Wsometimes-uninitialized]
>         if (dterr == 0)
>             ^~~~~~~~~~
> date.c:77:10: note: uninitialized use occurs here
>         switch (dtype)
>                 ^~~~~
> date.c:72:2: note: remove the 'if' if its condition is always true
>         if (dterr == 0)
>         ^~~~~~~~~~~~~~~
> date.c:63:13: note: initialize the variable 'dtype' to silence this warning
>         int                     dtype;
>                                      ^
>                                       = 0
> date.c:923:6: warning: variable 'fsec' is used uninitialized whenever 'if' 
> condition is false [-Wsometimes-uninitialized]
>         if (dterr == 0)
>             ^~~~~~~~~~
> date.c:928:14: note: uninitialized use occurs here
>         tm2time(tm, fsec, &result);
>                     ^~~~
> date.c:923:2: note: remove the 'if' if its condition is always true
>         if (dterr == 0)
>         ^~~~~~~~~~~~~~~
> date.c:910:14: note: initialize the variable 'fsec' to silence this warning
>         fsec_t          fsec;
>                             ^
>                              = 0
> date.c:1789:6: warning: variable 'fsec' is used uninitialized whenever 'if' 
> condition is false [-Wsometimes-uninitialized]
>         if (dterr == 0)
>             ^~~~~~~~~~
> date.c:1795:16: note: uninitialized use occurs here
>         tm2timetz(tm, fsec, tz, result);
>                       ^~~~
> date.c:1789:2: note: remove the 'if' if its condition is always true
>         if (dterr == 0)
>         ^~~~~~~~~~~~~~~
> date.c:1776:14: note: initialize the variable 'fsec' to silence this warning
>         fsec_t          fsec;
>                             ^
>                              = 0
> date.c:1789:6: warning: variable 'tz' is used uninitialized whenever 'if' 
> condition is false [-Wsometimes-uninitialized]
>         if (dterr == 0)
>             ^~~~~~~~~~
> date.c:1795:22: note: uninitialized use occurs here
>         tm2timetz(tm, fsec, tz, result);
>                             ^~
> date.c:1789:2: note: remove the 'if' if its condition is always true
>         if (dterr == 0)
>         ^~~~~~~~~~~~~~~
> date.c:1779:10: note: initialize the variable 'tz' to silence this warning
>         int                     tz;
>                                   ^
>                                    = 0
> 4 warnings generated.
> gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  
> -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv 
> -I/usr/local/Cellar/curl/7.49.1/include 
> -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
>  -I../../../../src/backend/gp_libpq_fe  -I../../../../src/include  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
>  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
>   -c -o nabstime.o nabstime.c
> nabstime.c:238:6: warning: variable 'dtype' is used uninitialized whenever 
> 'if' condition is false [-Wsometimes-uninitialized]
>         if (dterr == 0)
>             ^~~~~~~~~~
> nabstime.c:243:10: note: uninitialized use occurs here
>         switch (dtype)
>                 ^~~~~
> nabstime.c:238:2: note: remove the 'if' if its condition is always true
>         if (dterr == 0)
>         ^~~~~~~~~~~~~~~
> nabstime.c:232:13: note: initialize the variable 'dtype' to silence this 
> warning
>         int                     dtype;
>                                      ^
>                                       = 0
> 1 warning generated.
> gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  
> -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv 
> -I/usr/local/Cellar/curl/7.49.1/include 
> -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
>  -I../../../../src/backend/gp_libpq_fe  -I../../../../src/include  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
>  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
>   -c -o timestamp.o timestamp.c
> timestamp.c:167:6: warning: variable 'dtype' is used uninitialized whenever 
> 'if' condition is false [-Wsometimes-uninitialized]
>         if (dterr == 0)
>             ^~~~~~~~~~
> timestamp.c:172:10: note: uninitialized use occurs here
>         switch (dtype)
>                 ^~~~~
> timestamp.c:167:2: note: remove the 'if' if its condition is always true
>         if (dterr == 0)
>         ^~~~~~~~~~~~~~~
> timestamp.c:158:13: note: initialize the variable 'dtype' to silence this 
> warning
>         int                     dtype;
>                                      ^
>                                       = 0
> timestamp.c:431:6: warning: variable 'dtype' is used uninitialized whenever 
> 'if' condition is false [-Wsometimes-uninitialized]
>         if (dterr == 0)
>             ^~~~~~~~~~
> timestamp.c:436:10: note: uninitialized use occurs here
>         switch (dtype)
>                 ^~~~~
> timestamp.c:431:2: note: remove the 'if' if its condition is always true
>         if (dterr == 0)
>         ^~~~~~~~~~~~~~~
> timestamp.c:422:13: note: initialize the variable 'dtype' to silence this 
> warning
>         int                     dtype;
>                                      ^
>                                       = 0
> 2 warnings generated.
> resourcebroker_LIBYARN_proc.c:1631:9: warning: variable 'activeFailIds' is 
> used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
>     if( yarnres != FUNCTION_SUCCEEDED ) {
>         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> resourcebroker_LIBYARN_proc.c:1702:10: note: uninitialized use occurs here
>     if ( activeFailIds != NULL ) {
>          ^~~~~~~~~~~~~
> resourcebroker_LIBYARN_proc.c:1631:5: note: remove the 'if' if its condition 
> is always false
>     if( yarnres != FUNCTION_SUCCEEDED ) {
>     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> resourcebroker_LIBYARN_proc.c:1641:5: note: variable 'activeFailIds' is 
> declared here
>     int64_t *activeFailIds = NULL;
>     ^
> gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  
> -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv 
> -I/usr/local/Cellar/curl/7.49.1/include 
> -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
>  -I. -I../../../src/include  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
>  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
>   -c -o analyze.o analyze.c
> analyze.c:9325:22: warning: argument to 'sizeof' in '__builtin___memcpy_chk' 
> call is the same pointer type 'GroupingClause *' (aka 'struct GroupingClause 
> *') as the destination; expected 'GroupingClause'
>       (aka 'struct GroupingClause') or an explicit length 
> [-Wsizeof-pointer-memaccess]
>                 memcpy(new_gc, gc, sizeof(gc));
>                        ~~~~~~      ^~~~~~~~~~
> /usr/include/secure/_string.h:65:38: note: expanded from macro 'memcpy'
>   __builtin___memcpy_chk (dest, src, len, __darwin_obsz0 (dest))
>                           ~~~~       ^~~
> 1 warning generated.
> gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  
> -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv 
> -I/usr/local/Cellar/curl/7.49.1/include 
> -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
>  -pthread  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -pthread 
> -Wno-deprecated-declarations -DFRONTEND -I../../../src/interfaces/libpq 
> -I../../../src/include  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
>  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
>   -c -o dumputils.o dumputils.c
> dumputils.c:1074:26: warning: 'memset' call operates on objects of type 
> 'char' while the size is based on a different type 'char *' 
> [-Wsizeof-pointer-memaccess]
>                 memset(result,0,sizeof(result));
>                        ~~~~~~          ^~~~~~
> dumputils.c:1074:26: note: did you mean to provide an explicit length?
>                 memset(result,0,sizeof(result));
>                                        ^~~~~~
> 1 warning generated.
> gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  
> -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv 
> -I/usr/local/Cellar/curl/7.49.1/include 
> -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
>  -pthread  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -pthread 
> -DFRONTEND -I. -I. -I../../../src/interfaces/libpq -I../../../src/bin/pg_dump 
> -I../../../src/include  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
>  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
>   -c -o dumputils.o dumputils.c
> dumputils.c:1074:26: warning: 'memset' call operates on objects of type 
> 'char' while the size is based on a different type 'char *' 
> [-Wsizeof-pointer-memaccess]
>                 memset(result,0,sizeof(result));
>                        ~~~~~~          ^~~~~~
> dumputils.c:1074:26: note: did you mean to provide an explicit length?
>                 memset(result,0,sizeof(result));
>                                        ^~~~~~
> 1 warning generated.
> gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  
> -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv 
> -I/usr/local/Cellar/curl/7.49.1/include 
> -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
>  -pthread  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -pthread 
> -DFRONTEND -I../../../src/bin/pg_dump -I../../../src/bin/psql 
> -I../../../src/interfaces/libpq -I../../../src/include  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
>  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
>   -c -o dumputils.o dumputils.c
> dumputils.c:1074:26: warning: 'memset' call operates on objects of type 
> 'char' while the size is based on a different type 'char *' 
> [-Wsizeof-pointer-memaccess]
>                 memset(result,0,sizeof(result));
>                        ~~~~~~          ^~~~~~
> dumputils.c:1074:26: note: did you mean to provide an explicit length?
>                 memset(result,0,sizeof(result));
>                                        ^~~~~~
> 1 warning generated.
> gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  
> -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv 
> -I/usr/local/Cellar/curl/7.49.1/include 
> -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
>  -I../../../src/backend/resourcemanager/include 
> -I../../../src/backend/gp_libpq_fe -I../../../src/include  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
>  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
>   -c -o dbcommands.o dbcommands.c
> In file included from dbcommands.c:87:
> ../../../src/include/cdb/cdbpersistentdatabase.h:41:27: warning: field 
> 'header' with variable sized type 'SharedOidSearchObjHeader' (aka 'struct 
> SharedOidSearchObjHeader') not at the end of a struct or
>       class is a GNU extension [-Wgnu-variable-sized-type-not-at-end]
>         SharedOidSearchObjHeader        header;
>                                         ^
> dbcommands.c:859:4: warning: add explicit braces to avoid dangling else 
> [-Wdangling-else]
>                         else
>                         ^
> 2 warnings generated.
> gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  
> -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv 
> -I/usr/local/Cellar/curl/7.49.1/include 
> -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
>  -I../../../../src/include  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
>  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
>   -c -o createplan.o createplan.c
> In file included from createplan.c:45:
> ../../../../src/include/executor/execHHashagg.h:34:9: warning: 
> 'EXECHYBRIDHASHAGG_H' is used as a header guard here, followed by #define of 
> a different macro [-Wheader-guard]
> #ifndef EXECHYBRIDHASHAGG_H
>         ^~~~~~~~~~~~~~~~~~~
> ../../../../src/include/executor/execHHashagg.h:35:9: note: 
> 'EXECBYBRIDHASHAGG_H' is defined here; did you mean 'EXECHYBRIDHASHAGG_H'?
> #define EXECBYBRIDHASHAGG_H
>         ^~~~~~~~~~~~~~~~~~~
>         EXECHYBRIDHASHAGG_H
> gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  
> -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv 
> -I/usr/local/Cellar/curl/7.49.1/include 
> -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
>  -I../../../src/backend/gp_libpq_fe -I../../../src/include  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
>  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
>   -c -o execQual.o execQual.c
> execQual.c:1565:16: warning: implicit conversion from enumeration type 'enum 
> NodeTag' to different enumeration type 'fmNodeTag' (aka 'enum fmNodeTag') 
> [-Wenum-conversion]
>         rsinfo.type = T_ReturnSetInfo;
>                     ~ ^~~~~~~~~~~~~~~
> execQual.c:1881:16: warning: implicit conversion from enumeration type 'enum 
> NodeTag' to different enumeration type 'fmNodeTag' (aka 'enum fmNodeTag') 
> [-Wenum-conversion]
>         rsinfo.type = T_ReturnSetInfo;
>                     ~ ^~~~~~~~~~~~~~~
> 2 warnings generated.
> gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  
> -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv 
> -I/usr/local/Cellar/curl/7.49.1/include 
> -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
>  -I../../../src/backend/gp_libpq_fe -I../../../src/include  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
>  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
>   -c -o nodeTableFunction.o nodeTableFunction.c
> nodeTableFunction.c:419:31: warning: implicit conversion from enumeration 
> type 'enum NodeTag' to different enumeration type 'fmNodeTag' (aka 'enum 
> fmNodeTag') [-Wenum-conversion]
>         scanstate->rsinfo.type             = T_ReturnSetInfo;
>                                            ~ ^~~~~~~~~~~~~~~
> 1 warning generated.
> gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  
> -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv 
> -I/usr/local/Cellar/curl/7.49.1/include 
> -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
>  -I../../../src/backend/gp_libpq_fe -I../../../src/include  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
>  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
>   -c -o execQual.o execQual.c
> execQual.c:1565:16: warning: implicit conversion from enumeration type 'enum 
> NodeTag' to different enumeration type 'fmNodeTag' (aka 'enum fmNodeTag') 
> [-Wenum-conversion]
>         rsinfo.type = T_ReturnSetInfo;
>                     ~ ^~~~~~~~~~~~~~~
> execQual.c:1881:16: warning: implicit conversion from enumeration type 'enum 
> NodeTag' to different enumeration type 'fmNodeTag' (aka 'enum fmNodeTag') 
> [-Wenum-conversion]
>         rsinfo.type = T_ReturnSetInfo;
>                     ~ ^~~~~~~~~~~~~~~
> 2 warnings generated.
> gcc -O3 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  
> -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv 
> -I/usr/local/Cellar/curl/7.49.1/include 
> -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
>  -pthread  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -pthread 
> -DFRONTEND -I. -I. -I../../../src/interfaces/libpq -I../../../src/bin/pg_dump 
> -I../../../src/include  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libhdfs3/build/install/usr/local/hawq/include
>  
> -I/Users/wuhong/Desktop/tmp/tmp2/incubator-hawq/depends/libyarn/build/install/usr/local/hawq/include
>   -c -o sql_help.o sql_help.c
> sql_help.c:1800:9: warning: illegal character encoding in string literal 
> [-Winvalid-source-encoding]
>                                           "<A0><A0><A0><A0>ON PROTOCOL %s \n"
>                                            ^~~~~~~~~~~~~~~~
> sql_help.c:1801:9: warning: illegal character encoding in string literal 
> [-Winvalid-source-encoding]
>                                           "<A0><A0><A0><A0>TO %s",
>                                            ^~~~~~~~~~~~~~~~
> 2 warnings generated.
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to