Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-1669

Compilation fails on macOS [-Werror,-Wformat]

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.13.0
    • None

    Description

      https://travis-ci.org/github/apache/qpid-dispatch/jobs/690194590

      [  1%] Building C object tests/CMakeFiles/clogger.dir/clogger.c.o
      /Users/travis/build/apache/qpid-dispatch/tests/clogger.c:430:64: error: format
            specifies type 'long' but the argument has type 'uint64_t' (aka
            'unsigned long long') [-Werror,-Wformat]
              printf("Sent: %ld  Accepted: %ld Not Accepted: %ld\n", sent, acc...
                            ~~~                                      ^~~~
                            %llu
      /Users/travis/build/apache/qpid-dispatch/tests/clogger.c:430:70: error: format
            specifies type 'long' but the argument has type 'uint64_t' (aka
            'unsigned long long') [-Werror,-Wformat]
              printf("Sent: %ld  Accepted: %ld Not Accepted: %ld\n", sent, accepted, n...
                                           ~~~                             ^~~~~~~~
                                           %llu
      /Users/travis/build/apache/qpid-dispatch/tests/clogger.c:430:80: error: format
            specifies type 'long' but the argument has type 'uint64_t' (aka
            'unsigned long long') [-Werror,-Wformat]
        ...%ld  Accepted: %ld Not Accepted: %ld\n", sent, accepted, not_accepted);
                                            ~~~                     ^~~~~~~~~~~~
                                            %llu
      /Users/travis/build/apache/qpid-dispatch/tests/clogger.c:432:56: error: format
            specifies type 'long' but the argument has type 'uint64_t' (aka
            'unsigned long long') [-Werror,-Wformat]
                  printf("FAILURE! Sent: %ld  Acked: %ld\n", sent, accepted + ...
                                         ~~~                 ^~~~
                                         %llu
      /Users/travis/build/apache/qpid-dispatch/tests/clogger.c:432:62: error: format
            specifies type 'long' but the argument has type 'unsigned long long'
            [-Werror,-Wformat]
        ...Sent: %ld  Acked: %ld\n", sent, accepted + not_accepted);
                             ~~~           ^~~~~~~~~~~~~~~~~~~~~~~
                             %llu
      5 errors generated.
      
      [ 72%] Building C object src/CMakeFiles/qpid-dispatch.dir/http-libwebsockets.c.o
      /Users/travis/build/apache/qpid-dispatch/src/http-libwebsockets.c:620:110: error: 
            format specifies type 'unsigned long' but the argument has type 'uint64_t'
            (aka 'unsigned long long') [-Werror,-Wformat]
        ...end - *position, "%s:%s_bytes %lu\n", name, field.name, field.value);
                                         ~~~                       ^~~~~~~~~~~
                                         %llu
      1 error generated.
      

      Attachments

        Activity

          People

            jdanek Jiri Daněk
            jdanek Jiri Daněk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: