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

very ugly warning when compiling load_gen.c

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.4.6, 3.5.0
    • 3.4.6, 3.5.0
    • c client
    • None
    • 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

        1. ZOOKEEPER-1821.patch
          0.9 kB
          Germán Blanco

        Activity

          People

            abranzyck Germán Blanco
            abranzyck Germán Blanco
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: