MySQL++

Check-in [6f22016ae8]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Squished warning C4003 for VC++: yes, we know we're passing no args to MAY_THROW(), on purpose. Thank you so much for being helpful, VC++.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:6f22016ae80eb4ec90928b1192495089d443b2bd252e3b30727a54dd9b1137e6
User & Date: tangent 2018-10-22 23:37:27
Context
2018-10-22
23:41
Added a cast in FieldNames::operator[] to squish a warning about possible data loss in a condition that can't practically happen. check-in: 80a2d7ba1d user: tangent tags: trunk
23:37
Squished warning C4003 for VC++: yes, we know we're passing no args to MAY_THROW(), on purpose. Thank you so much for being helpful, VC++. check-in: 6f22016ae8 user: tangent tags: trunk
23:31
Disabled warning C4275 for VC++ 2015+ check-in: 036a34108c user: tangent tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to lib/common.h.

93
94
95
96
97
98
99




100
101
102
103
104
105
106
		// derived from a non-exported class in another DLL.  This is
		// safe to do with Standard C++ library types per:
		//
		//  https://msdn.microsoft.com/en-us/library/3tdb471s.aspx
		//
		// We don't hit this any other way in MySQL++.
#		pragma warning(disable: 4275)





		// Prior to Visual C++ 2015, we must use _snprintf()
#		if _MSC_VER < 1900
#			define snprintf _snprintf
#		endif
#	endif








>
>
>
>







93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
		// derived from a non-exported class in another DLL.  This is
		// safe to do with Standard C++ library types per:
		//
		//  https://msdn.microsoft.com/en-us/library/3tdb471s.aspx
		//
		// We don't hit this any other way in MySQL++.
#		pragma warning(disable: 4275)

		// Squish warning about passing no args to MAY_THROW() when
		// building with newer C++ support.  We're doing it on purpose.
#		pragma warning(disable: 4003)

		// Prior to Visual C++ 2015, we must use _snprintf()
#		if _MSC_VER < 1900
#			define snprintf _snprintf
#		endif
#	endif