- 21 Mar, 2024 1 commit
-
-
Robert Edmonds authored
CMakeLists.txt: Remove double hyphens
-
- 15 Dec, 2023 1 commit
-
-
Alessandro Bono authored
Otherwise cmake won't reconize the command. With double hyphens: ``` $ cmake -E env TESTENV=value -- env | grep TESTENV cmake -E env: unknown option '--' ``` Without double hyphens: ``` $ cmake -E env TESTENV=value env | grep TESTENV TESTENV=value ```
-
- 30 Nov, 2023 1 commit
-
-
Dimitri Papadopoulos authored
[edmonds: Adjust commit message.]
-
- 26 Nov, 2023 1 commit
-
-
Robert Edmonds authored
-
- 25 Nov, 2023 3 commits
-
-
Robert Edmonds authored
-
Robert Edmonds authored
-
Robert Edmonds authored
-
- 21 Sep, 2023 1 commit
-
-
Robert Edmonds authored
Fixing MSVC build for Msbuild and Makefile generators
-
- 18 Sep, 2023 1 commit
-
-
Guybrush authored
Signed-off-by:Guybrush <miguel.barro@live.com>
-
- 15 Sep, 2023 2 commits
-
-
Guybrush authored
Signed-off-by:Guybrush <miguel.barro@live.com>
-
Guybrush authored
Led to some fixes in the CMake too. Signed-off-by:Guybrush <miguel.barro@live.com>
-
- 11 Sep, 2023 1 commit
-
-
MiguelBarro authored
Signed-off-by:MiguelBarro <miguelbarro@eprosima.com>
-
- 10 Sep, 2023 1 commit
-
-
MiguelBarro authored
Signed-off-by:MiguelBarro <miguelbarro@eprosima.com>
-
- 09 Jul, 2023 20 commits
-
-
Robert Edmonds authored
Silence some compiler diagnostics
-
Robert Edmonds authored
This file uses declarations after statements and fixing it would make the code less readable, so silence this particular diagnostic in this particular file.
-
Robert Edmonds authored
This diagnostic isn't particularly useful since it fires on generated .pb-c.h files.
-
Robert Edmonds authored
Remove protobuf 2.x support
-
Robert Edmonds authored
Since we now require protobuf >= 3.0.0, we don't have to support older protobuf versions that don't recognize the `syntax` syntax, so we can put `syntax = "proto2";` on these proto files to silence the protoc compiler's diagnostic "No syntax specified for the proto file".
-
Robert Edmonds authored
-
Robert Edmonds authored
-
Robert Edmonds authored
-
Robert Edmonds authored
Now that we require protobuf >= 3.0.0, we are always building with proto3 syntax support. Note that the test-generated-code3 test keeps `-DPROTO3` which is separate from the HAVE_PROTO3 identifier. This test is building built from the same source file as test-generated-code but the source file supports proto2 and proto3 syntax depending on how it's compiled.
-
Robert Edmonds authored
Since we require protobuf >= 3.0.0 now, the proto3 syntax is always supported.
-
Robert Edmonds authored
Miscellaneous fixes
-
Robert Edmonds authored
-
Robert Edmonds authored
Since this case immediately returns, the `rv` variable is not used. See https://github.com/protobuf-c/protobuf-c/issues/517.
-
Robert Edmonds authored
`*pstr != NULL` was already checked here. See https://github.com/protobuf-c/protobuf-c/issues/517.
-
Robert Edmonds authored
Apparently in some cases the protobuf compiler is unable to find its own files, and this fix has been reported to work. See https://github.com/protobuf-c/protobuf-c/issues/491.
-
Daniel Egger authored
Signed-off-by:
Daniel Egger <daniel@eggers-club.de> [edmonds: From https://github.com/protobuf-c/protobuf-c/pull/523.] [edmonds: Adjust find string from "0 |" to "0 | ", test against `== 0` rather than `!= std::string::npos` so that the find/erase calls are anchored to the same portion of the string.]
-
Robert Edmonds authored
-
Robert Edmonds authored
This commit updates a few tests where we aren't using the correct C signature for main() or are not using any of its parameters (in the case of t/version/version.c.)
-
Robert Edmonds authored
This commit fixes the following compiler diagnostics: ../protoc-c/c_helpers.cc: In function ‘void google::protobuf::compiler::c::PrintComment(google::protobuf::io::Printer*, std::__cxx11::string)’: ../protoc-c/c_helpers.cc:221:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] for (int i = 0; i < comment_lines.size(); i++) ~~^~~~~~~~~~~~~~~~~~~~~~ ../protoc-c/c_helpers.cc: In function ‘std::set<std::__cxx11::basic_string<char> > google::protobuf::compiler::c::MakeKeywordsMap()’: ../protoc-c/c_helpers.cc:273:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] for (int i = 0; i < GOOGLE_ARRAYSIZE(kKeywordList); i++) { ^ -
Robert Edmonds authored
Support for new Google protobuf 22.x, 23.x releases
-
- 03 Jul, 2023 4 commits
-
-
Robert Edmonds authored
There are some recent reports of strange build failures that might have been fixed by compiling in C++17 mode, so it might be a good idea to use C++17 in general, and not just when building against very recent protobuf versions. Since it looks like we've lost protobuf < 3.0.0 support, configure.ac can be simplified a bit if we just use C++17 by default.
-
Robert Edmonds authored
Newer versions of protobuf apparently don't build with older versions of the C++ standard.
-
Robert Edmonds authored
Use the newer "legacy" way of determining whether a file descriptor is using proto2 or proto3 syntax on protobuf >= 23.0. Based on https://github.com/protobuf-c/protobuf-c/pull/556/commits/66574f3fd85a205eb7c90b790477d5415364209e but continues to support older versions of protobuf. Unfortunately, since this is a "deprecated", "legacy" API it'll probably disappear in about five seconds.
-
Robert Edmonds authored
It's unclear from looking at the online protobuf documentation whether C++14 or C++17 is now required when building against newer versions of protobuf (or perhaps I'm looking in the wrong place), but experimentally it did not work for me with C++14. This commit rewrites the versioned PKG_CHECK_MODULES checks in configure.ac to enforce the following policies: * Require protobuf >= 2.6.0. * On protobuf >= 3.0.0, require C++11. * On protobuf >= 4.22.0, require C++17.
-
- 02 Jul, 2023 3 commits
-
-
Robert Edmonds authored
According to the protobuf migration guide as of June 2023 [0], protobuf 22.0 (aka 4.22.0) took a dependency on something called "abseil" and as a result the "stubs" have been removed. This apparently caused all the uses of GOOGLE_* identifiers in protoc-c to fail when building against newer versions of protobuf. This commit introduces compatibility definitions when building against protobuf >= 4.22.0 so that protobuf-c can build against older and newer versions of protobuf. [0] https://web.archive.org/web/20230611151200/https://protobuf.dev/support/migration/#abseil
-
Robert Edmonds authored
Looking at where these identifiers are ultimately defined [0], it looks like "DFATAL" means either "ERROR" or "FATAL" depending on whether NDEBUG is defined. However, looking at the actual code sites in protoc-c where DFATAL is used, it's not clear why we couldn't just use FATAL unconditionally. This is aimed at supporting newer versions of protobuf where the DFATAL identifier apparently no longer exists. [0] https://github.com/protocolbuffers/protobuf/blob/v21.12/src/google/protobuf/stubs/logging.h#L61-L65
-
Robert Edmonds authored
protobuf has removed the definition of this macro as of commit 1595417dd3859bbff7d3d61ad0b6e39044d47489, so the invocation of this macro in protobuf-c breaks the build when building agaist the protobuf 22.x or 23.x series. Simply removing the macro invocations seems to be safe and doesn't break the build on Debian's protobuf 3.21.12 nor Debian's protobuf 3.6.1.3.
-