Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-381

Warning with strict prototypes enabled

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 3.0.7
    • 3.1.10
    • None
    • None
    • Apple LLVM version 10.0.0 (clang-1000.10.44.4)

    Description

      If -Wstrict-prototypes are enabled when compiling a project that links against MariaDB Connector/C 3.0.7, the following warning appears:

      {{/usr/include/mariadb/mysql.h:440:3: warning: this function declaration is not a prototype [-Wstrict-proto
      types]
      MYSQL_CLIENT_PLUGIN_HEADER
      ^
      /usr/include/mariadb/mysql.h:436:16: note: expanded from macro 'MYSQL_CLIENT_PLUGIN_HEADER'
      int (*deinit)(); \
      ^
      1 warning generated.}}

      Changing the line to int (*deinit)(void); will fix the issue.

      Attachments

        Activity

          People

            georg Georg Richter
            emiller999 Evan Miller
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.