Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
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 <<<<<<<<<<<<<<<<<<<<<<</