Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-720

[Windows IO] Prints warning string as %d

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proton-0.7
    • proton-0.8
    • proton-c
    • None
    • Windows

    Description

      Source code:

          fprintf(stderr, "Can't load WinSock: %d\n", pn_error_text(io->error));
      

      prints warning

      2>..\..\proton-c\src\windows\io.c(86): warning C4313: 'fprintf'  : 
        '%d' in format string conflicts with argument 1 of type 'const char *'
      

      using VS2013/x64. VS2008/2010 do not warn.

      Attachments

        Activity

          People

            Unassigned Unassigned
            chug Charles E. Rolke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: