Axis2C 0.91 warnings on windows
-------------------------------

         Key: AXIS2C-167
         URL: http://issues.apache.org/jira/browse/AXIS2C-167
     Project: Axis2-C
        Type: Bug

  Components: platforms/windows  
 Environment: windows
    Reporter: Ed Slattery
    Priority: Minor


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 <<<<<<<<<<<<<<<<<<<<<<<*/

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to