File: compiler-internal-pre.hxx

package info (click to toggle)
libpqxx 4.0.1%2Bdfsg3-8
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 16,012 kB
  • ctags: 9,469
  • sloc: sh: 11,289; cpp: 10,801; xml: 1,256; makefile: 287; ansic: 195; python: 159
file content (47 lines) | stat: -rw-r--r-- 1,703 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*-------------------------------------------------------------------------
 *
 *   FILE
 *     pqxx/compiler-internal-pre.hxx
 *
 *   DESCRIPTION
 *      Compiler deficiency workarounds for compiling libpqxx headers.
 *      To be called at the start of each libpqxx header, in order to
 *      push the client program's settings and apply libpqxx's settings.
 *      Must be balanced by an include of -header-post.hxx at the end
 *      of the header.
 *
 * Copyright (c) 2006,2007, Jeroen T. Vermeulen <jtv@xs4all.nl>
 *
 * See COPYING for copyright license.  If you did not receive a file called
 * COPYING with this source code, please notify the distributor of this mistake,
 * or contact the author.
 *
 *-------------------------------------------------------------------------
 */
// NO GUARDS HERE! This code should be executed every time!

#ifdef _WIN32

#ifdef _MSC_VER

// Save client program warning state, and set warning level 4.
// Setting the warning level explicitly ensures that libpqxx
// headers will work with this warning level as well.
#pragma warning (push,4)

#pragma warning (disable: 4251)
#pragma warning (disable: 4258) // Complains that for-scope usage is correct
#pragma warning (disable: 4273)
#pragma warning (disable: 4275)
#pragma warning (disable: 4290)
#pragma warning (disable: 4355)
#pragma warning (disable: 4511) // Copy constructor could not be generated
#pragma warning (disable: 4512) // Assignment operator could not be generated
#pragma warning (disable: 4786)
#pragma warning (disable: 4800) // Performance warning for boolean conversions
#pragma warning (disable: 4996) // Complaint that strncpy() "may" be unsafe

#endif // _MSC_VER

#endif // _WIN32