CORGI
An open source project by
FPL
.
Main Page
Programmer's Guide
API reference
Readme
Contributing
Modules
Class List
File List
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Groups
Pages
bullet_physics.h
1
// Copyright 2015 Google Inc. All rights reserved.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#ifndef CORGI_COMPONENT_LIBRARY_BULLET_PHYSICS_H_
16
#define CORGI_COMPONENT_LIBRARY_BULLET_PHYSICS_H_
17
18
// Suppress warnings in the Bullet header files.
19
#if defined(__clang__)
20
#pragma clang diagnostic push
21
#pragma clang diagnostic ignored "-Woverloaded-virtual"
22
#pragma clang diagnostic ignored "-Wignored-qualifiers"
23
#pragma clang diagnostic ignored "-Wunused-parameter"
24
#endif // defined(__clang__)
25
26
#if defined(__GNUC__)
27
#pragma GCC diagnostic push
28
#pragma GCC diagnostic ignored "-Woverloaded-virtual"
29
#pragma GCC diagnostic ignored "-Wignored-qualifiers"
30
#pragma GCC diagnostic ignored "-Wunused-parameter"
31
#endif // defined(__GNUC__)
32
33
#if defined(_MSC_VER)
34
#pragma warning(push)
35
#pragma warning(disable : 4127) // conditional expression is constant
36
#pragma warning(disable : 4065) // switch statement contains 'default' but no
37
// 'case' labels
38
#pragma warning(disable : 4244) // implicit type conversion may lose data
39
#pragma warning(disable : 4511) // couldn't generate a default copy-constructor
40
#pragma warning(disable : 4512) // couldn't generate assignment operator
41
#pragma warning(disable : 4706) // assignment statement inside conditional
42
// expression
43
#pragma warning(disable : 4127) // conditional expression is constant
44
#pragma warning(disable : 4100) // parameter not referenced
45
#pragma warning(disable : 4189) // variable initialized but not referenced
46
#pragma warning(disable : 4505) // function is not referenced
47
#pragma warning(disable : 4702) // unreachable code
48
#pragma warning(disable : 4305) // truncation from 'double' to 'const btScalar'
49
#endif // defined(_MSC_VER)
50
#include "btBulletDynamicsCommon.h"
51
#if defined(_MSC_VER)
52
#pragma warning(pop)
53
#endif // defined(_MSC_VER)
54
55
#if defined(__GNUC__)
56
#pragma GCC diagnostic pop
57
#endif // defined(__GNUC__)
58
59
#if defined(__clang__)
60
#pragma clang diagnostic pop
61
#endif // defined(__clang__)
62
63
#endif // CORGI_COMPONENT_LIBRARY_BULLET_PHYSICS_H_