1 | /* |
2 | * Licensed under the Apache License, Version 2.0 (the "License"); |
3 | * you may not use this file except in compliance with the License. |
4 | * You may obtain a copy of the License at |
5 | * |
6 | * http://www.apache.org/licenses/LICENSE-2.0 |
7 | * |
8 | * Unless required by applicable law or agreed to in writing, software |
9 | * distributed under the License is distributed on an "AS IS" BASIS, |
10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
11 | * See the License for the specific language governing permissions and |
12 | * limitations under the License. |
13 | */ |
14 | |
15 | #ifndef ORC_PROTO_WRAPPER_HH |
16 | #define ORC_PROTO_WRAPPER_HH |
17 | |
18 | #include "Adaptor.hh" |
19 | |
20 | DIAGNOSTIC_PUSH |
21 | |
22 | #if defined(__GNUC__) || defined(__clang__) |
23 | DIAGNOSTIC_IGNORE("-Wconversion" ) |
24 | DIAGNOSTIC_IGNORE("-Wdeprecated" ) |
25 | DIAGNOSTIC_IGNORE("-Wsign-conversion" ) |
26 | DIAGNOSTIC_IGNORE("-Wunused-parameter" ) |
27 | #endif |
28 | |
29 | #ifdef __clang__ |
30 | DIAGNOSTIC_IGNORE("-Wnested-anon-types" ) |
31 | DIAGNOSTIC_IGNORE("-Wreserved-id-macro" ) |
32 | DIAGNOSTIC_IGNORE("-Wshorten-64-to-32" ) |
33 | DIAGNOSTIC_IGNORE("-Wunknown-warning-option" ) |
34 | DIAGNOSTIC_IGNORE("-Wweak-vtables" ) |
35 | DIAGNOSTIC_IGNORE("-Wzero-as-null-pointer-constant" ) |
36 | #endif |
37 | |
38 | #if defined(_MSC_VER) |
39 | DIAGNOSTIC_IGNORE(4146) // unary minus operator applied to unsigned type, result still unsigned |
40 | DIAGNOSTIC_IGNORE(4800) // forcing value to bool 'true' or 'false' |
41 | #endif |
42 | |
43 | #include "orc_proto.pb.h" |
44 | |
45 | DIAGNOSTIC_POP |
46 | |
47 | #endif |
48 | |