Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-1821

very ugly warning when compiling load_gen.c

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.6, 3.5.0
    • Fix Version/s: 3.4.6, 3.5.0
    • Component/s: c client
    • Labels:
      None
    • Environment:

      macos

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              abranzyck Germán Blanco
              Reporter:
              abranzyck Germán Blanco
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: