Skip to content

Commit

Permalink
COMP: Address VC++ C4251 warnings: needs to have dll-interface to be …
Browse files Browse the repository at this point in the history
…used by

Since the same compiler is used to compile all components of the project, this
is a non issue.

See https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4251?view=vs-2019
  • Loading branch information
jcfr committed Apr 30, 2019
1 parent 24f6f05 commit a32f72d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions common/ukf_exports.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
#ifndef __UKFExport_h
#define __UKFExport_h

/** Disable some common warnings in MS VC++ */
#if defined( _MSC_VER )

// 'identifier' : class 'type' needs to have dll-interface to be used by
// clients of class 'type2'
#pragma warning ( disable : 4251 )

#endif

#if defined(WIN32) && !defined(UKF_STATIC)
#if defined(UKFBase_EXPORTS)
Expand Down

0 comments on commit a32f72d

Please sign in to comment.