MySQL++

Check-in [036a34108c]
Login

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

Overview
Comment:Disabled warning C4275 for VC++ 2015+
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:036a34108c2f8c0b260d3f9f2b045c8c9459c993a19c3b3b774e0a3afad40ee8
User & Date: tangent 2018-10-22 23:31:54
Context
2018-10-22
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
2018-10-17
16:04
Marked *.txt as crlf-glob in Fossil to avoid warnings on checkin. check-in: cfd37a46df user: tangent tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to lib/common.h.

84
85
86
87
88
89
90









91
92
93
94
95
96
97
#		pragma warning(disable: 4290)
		// Disable whining about using 'this' as a member initializer on VC++.
#		pragma warning(disable: 4355)
		// Disable whining about implicit conversions to bool
#		pragma warning(disable: 4800)
		// Disable nagging about new "secure" functions like strncpy_s()
#		pragma warning(disable: 4996)










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








>
>
>
>
>
>
>
>
>







84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#		pragma warning(disable: 4290)
		// Disable whining about using 'this' as a member initializer on VC++.
#		pragma warning(disable: 4355)
		// Disable whining about implicit conversions to bool
#		pragma warning(disable: 4800)
		// Disable nagging about new "secure" functions like strncpy_s()
#		pragma warning(disable: 4996)

		// Disable warning about exporting a class from a DLL which is
		// 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