Jisi Liu
2ee294d80b
Fix Java 1.6 compile
7 years ago
Jisi Liu
1c682e0b0b
Fix bazel build
7 years ago
Jisi Liu
1a7a7fca80
Merge from google internal
7 years ago
Jisi Liu
cc58be617d
Fix unsiged underflow
7 years ago
Jisi Liu
7dbee32407
Remove C++11 only usages in io_win32 tests.
7 years ago
John Millikin
aff10976fc
Fix undefined memory management found by Clang's sanitizers.
...
See https://github.com/google/protobuf/issues/3752 for context.
7 years ago
Tobias Jungel
37e112f456
fix implicit fallthrough in gcc 7
...
fixes #3700
7 years ago
Francois Marier
5992e24e8a
Move namespace closing brace inside the header guard block
7 years ago
Pavel
38fd94e184
CodedInputStream::SetTotalBytesLimit description fix
7 years ago
Bruce Dawson
210be267fd
Use constexpr more with VC++ 2017 ( #3707 )
...
* Use constexpr more with VC++ 2017
Chrome's official builds have over 170 dynamic initializers for
variables of the form *::TableStruct::aux. Defining
PROTOBUF_CONSTEXPR_VAR to be constexpr for VS 2017 gets rid of all of
these and saves about 10 KB of binary size.
* Update generated_message_table_driven.h
Restore accidentally deleted line.
7 years ago
Jisi Liu
d2738c04f5
Add spaces
7 years ago
Jisi Liu
5a501c64c7
Fix C++11 string accessors
7 years ago
Jisi Liu
6d0cf1b3fe
Remove ranged based for in io_win32.cc
7 years ago
Jisi Liu
b091bfb07b
Test Shutdown can be called multiple times.
7 years ago
drivehappy
e3be1febf2
Clang warning cleanup for unused parameter.
7 years ago
Adam Cozzette
13fd045dbb
Integrated internal changes from Google
7 years ago
drivehappy
7f3ded663b
Clang warning cleanup for unused parameter.
7 years ago
Paul Yang
8741da3e45
Revert "Fix js conformance tests. ( #3604 )" ( #3633 )
...
This reverts commit 2bd55a9fbc
.
7 years ago
Bo Yang
a425dd97f2
Rename ClassNamePrefix to ConstantNamePrefix
7 years ago
Paul Yang
2bd55a9fbc
Fix js conformance tests. ( #3604 )
...
* Fix js conformance tests.
* Remove old incorrect compatibility tests
7 years ago
Bo Yang
f46a01d0c1
Exclude valid constant name from reserved name.
7 years ago
Feng Xiao
6945203300
Exclude addressbook.proto from C# boostrap test.
...
This addressbook.proto now belongs to its own bazel pacakge and can't be
accessed in bazel protobuf_test target.
7 years ago
Bo Yang
e5d000cbb7
Add prefix to php reserved keywords.
7 years ago
Jisi Liu
baae7ea12b
Add @Deprecated annotation support for proto file.
7 years ago
Paul Yang
2807436cd8
change the field number of php_generic_service to fix the conflict with ( #3576 )
...
internal descriptor.proto
7 years ago
Jisi Liu
55fdbe58f0
Make distcheck aware of test proto files.
7 years ago
Jisi Liu
6609e52124
Disable death tests on windows
...
Also remove cord related code
7 years ago
George Burgess IV
6cecd20e25
Work around a bug in clang's static analyzer
...
Due to https://bugs.llvm.org/show_bug.cgi?id=34198 , clang's static
analyzer emits diagnostics about leaking `container`. Doing this
assignment in two steps works around this, and shouldn't cause these
issues.
7 years ago
Jisi Liu
c27b56c692
Merge pull request #3494 from drivehappy/clang_warning_macro
...
Fixing -Wexpansion-to-defined Clang warning
7 years ago
Jisi Liu
36ac06fdc7
Merge pull request #3535 from drivehappy/clang_warn_cleanup
...
Fixing unused parameter warnings under Clang.
7 years ago
Jisi Liu
77a453a57f
Fix compile errors
7 years ago
Jisi Liu
4aadcd3c7b
Remove C++11 features in io_win32.cc
...
- Use scoped_array instead of unique_ptr.
- Do not use string::front() and string::back()
7 years ago
drivehappy
1183f4864b
Fixing unused parameter warnings under Clang.
7 years ago
drivehappy
a23e198cca
Fixing warning under Clang 6.x (-Wexpansion-to-defined) where the macro expansion producing 'defined' was warning on undefined behavior.
7 years ago
Jisi Liu
3908b4e40d
Fix cmath/math.h include with non C++11 libstdc++
7 years ago
Jisi Liu
651429b709
Fix comments
7 years ago
Jisi Liu
31b3bd9811
Make compilers without ref-qualifier support happy.
7 years ago
Jisi Liu
b4c0cfe3a4
Add malloc cast
7 years ago
Jisi Liu
fd31899f01
implement remove strdup usage and implement our own
...
strdup is not part C or C++ standard but POXIS function. Several
compilers failed to compile strdup or generate warnings.
7 years ago
Jisi Liu
34ebca0ca8
Adding missing imports for strdup
7 years ago
Jisi Liu
40d1855fe9
Fix mkdir
7 years ago
Jisi Liu
564f02c91e
Make win32_io only for MSVC
...
This excludes cygwin and mingw from using the self implemented
functions.
7 years ago
Jisi Liu
7afa796bb9
Fix the declaration order in ming32
7 years ago
Jisi Liu
db125b8d3a
Fixing io_win32 for MinGW32
7 years ago
Brad Larson
1b423474fd
Clean up typedefs for Atomic32/Atomic64
...
The typedefs for Atomic32 and Atomic64 were sometimes causing
Atomic32 to be an int32 rather than an intptr_t on 32-bit platforms.
On some of these platforms (ARM/CortexM building with GCC 6 in one
case) int32 is a long int, while intptr_t is an int, which causes a
compiler error even though long int and int are both 4 bytes.
Having Atomic32 always be intptr_t on 32-bit platforms and Atomic64
always be intptr_t on 64-bit platforms should resolve any of these
types of errors.
7 years ago
Jisi Liu
e8fc0661db
Make no warning test stricter.
...
- Now it includes -Wextra except for unused-parameter.
- Removed gtest dependency
7 years ago
Jisi Liu
97d50e306e
Make code free of missing-field-initializers warnings
7 years ago
Jisi Liu
4cbbf33b77
Fix invalid offsetof warning.
...
Use composition instead of inheritance for oneof default.
7 years ago
Gerben Stavenga
7781784796
Add destructors for default instances to the shutdown code.
...
Verified test succeed under draconian heap checker
7 years ago
Jisi Liu
bcf17332bd
Adding the missing header
7 years ago