Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
a924e0b8
Commit
a924e0b8
authored
Feb 10, 2016
by
Joshua Haberman
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1185 from kkm000/icl-fix
Fix Intel compiler warnings in include files on Windows
parents
18fba0f1
714b6b76
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
coded_stream.h
src/google/protobuf/io/coded_stream.h
+3
-3
port.h
src/google/protobuf/stubs/port.h
+1
-1
No files found.
src/google/protobuf/io/coded_stream.h
View file @
a924e0b8
...
...
@@ -117,7 +117,7 @@
#if !defined(PROTOBUF_DISABLE_LITTLE_ENDIAN_OPT_FOR_TEST)
#define PROTOBUF_LITTLE_ENDIAN 1
#endif
#if _MSC_VER >= 1300
#if _MSC_VER >= 1300
&& !defined(__INTEL_COMPILER)
// If MSVC has "/RTCc" set, it will complain about truncating casts at
// runtime. This file contains some intentional truncating casts.
#pragma runtime_checks("c", off)
...
...
@@ -1286,9 +1286,9 @@ inline bool CodedInputStream::IsFlat() const {
}
// namespace protobuf
#if
defined(_MSC_VER) && _MSC_VER >= 1300
#if
_MSC_VER >= 1300 && !defined(__INTEL_COMPILER)
#pragma runtime_checks("c", restore)
#endif // _MSC_VER
#endif // _MSC_VER
&& !defined(__INTEL_COMPILER)
}
// namespace google
#endif // GOOGLE_PROTOBUF_IO_CODED_STREAM_H__
src/google/protobuf/stubs/port.h
View file @
a924e0b8
...
...
@@ -53,7 +53,7 @@
#if !defined(PROTOBUF_DISABLE_LITTLE_ENDIAN_OPT_FOR_TEST)
#define PROTOBUF_LITTLE_ENDIAN 1
#endif
#if
defined(_MSC_VER) && _MSC_VER >= 1300
#if
_MSC_VER >= 1300 && !defined(__INTEL_COMPILER)
// If MSVC has "/RTCc" set, it will complain about truncating casts at
// runtime. This file contains some intentional truncating casts.
#pragma runtime_checks("c", off)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment