Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-10322

build error: jdbconn.cpp:273:11: error: assigning to 'char *' from incompatible type 'const char *'

    Details

      Description

      Hello, compilation fails with clang:

      $ clang --version
      Apple LLVM version 7.3.0 (clang-703.0.31)
      Target: x86_64-apple-darwin16.0.0
      Thread model: posix
      

      The relevant error message:

      /tmp/mariadb-20160701-19427-idrvds/mariadb-10.1.15/storage/connect/jdbconn.cpp:273:11: error: assigning to 'char *' from incompatible type 'const char *'
              cap->Pat = (colpat && *colpat) ? colpat : "%";
                       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      1 error generated.
      make[2]: *** [storage/connect/CMakeFiles/connect.dir/jdbconn.cpp.o] Error 1
      make[2]: *** Waiting for unfinished jobs....
      

      Thanks.

        Attachments

          Activity

            People

            • Assignee:
              bertrandop Olivier Bertrand
              Reporter:
              Dan Dan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: