Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-167

Axis2C 0.91 warnings on windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.95
    • platforms/windows
    • None
    • windows

    Description

      When building on windows, I get lots of warnings because data is declared declspec(export) or (import). I am not sure why you do this, as removing the declaration in axis2_defines fixes the warnings, and apparently has no adverse effects:

      These are the warnings:

      axis2_thread_pool.h(91) : warning C4091: '__declspec(dllimport ) ' : ignored on left of 'struct axis2_thread_pool_ops' when no variable is declared

      This is a part of axis2_defines with the fix:

      #define AXIS2_DECLARE(type) type AXIS2_CALL
      #define AXIS2_DECLARE_NONSTD(type) type
      #define AXIS2_DECLARE_DATA
      #elif defined(AXIS2_DECLARE_EXPORT)
      #define AXIS2_DECLARE(type) AXIS2_EXPORT type AXIS2_CALL
      #define AXIS2_DECLARE_NONSTD(type) AXIS2_EXPORT type
      #define AXIS2_DECLARE_DATA /AXIS2_EXPORT <<<<<<<<<<<<<<<<<<<<<<<</
      #else
      #define AXIS2_DECLARE(type) AXIS2_IMPORT type AXIS2_CALL
      #define AXIS2_DECLARE_NONSTD(type) AXIS2_IMPORT type
      #define AXIS2_DECLARE_DATA /AXIS2_IMPORT <<<<<<<<<<<<<<<<<<<<<<</

      Attachments

        Activity

          People

            Unassigned Unassigned
            edslattery Edward Slattery
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: