Germán Blanco created ZOOKEEPER-1821:
----------------------------------------

             Summary: very ugly warning when compiling load_gen.c
                 Key: ZOOKEEPER-1821
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1821
             Project: ZooKeeper
          Issue Type: Bug
          Components: c client
    Affects Versions: 3.4.6
         Environment: macos
            Reporter: Germán Blanco
             Fix For: 3.4.6


this is the compiler output:     
3.4/src/c/src/load_gen.c:110:1: warning: control may reach end of non-void 
function [-Wreturn-type]
     [exec] }
     [exec] ^
3.4/src/c/src/load_gen.c:135:1: warning: control may reach end of non-void 
function [-Wreturn-type]
     [exec] }
     [exec] ^
3.4/src/c/src/load_gen.c:163:1: warning: control may reach end of non-void 
function [-Wreturn-type]
     [exec] }
     [exec] ^
3.4/src/c/src/load_gen.c:180:1: warning: control may reach end of non-void 
function [-Wreturn-type]
     [exec] }
     [exec] ^
i think that the code is missing a "return ZOK" in the end of these functions.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to