Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
protobuf-c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
spbro
protobuf-c
Commits
cf1f2640
Commit
cf1f2640
authored
Jan 25, 2025
by
Robert Edmonds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
protoc-gen-c: Log a deprecation warning when invoked as `protoc-c`
parent
2e26a84a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
protoc-gen-c/main.cc
protoc-gen-c/main.cc
+2
-0
No files found.
protoc-gen-c/main.cc
View file @
cf1f2640
...
...
@@ -31,6 +31,7 @@
#include <google/protobuf/compiler/plugin.h>
#include "c_generator.h"
#include "c_helpers.h"
int
main
(
int
argc
,
char
*
argv
[])
{
protobuf_c
::
CGenerator
c_generator
;
...
...
@@ -40,6 +41,7 @@ int main(int argc, char* argv[]) {
const
std
::
string
standalone_name
=
"protoc-c"
;
if
(
invocation_basename
==
standalone_name
)
{
GOOGLE_LOG
(
WARNING
)
<<
"`protoc-c` is deprecated. Please use `protoc` instead!"
;
google
::
protobuf
::
compiler
::
CommandLineInterface
cli
;
cli
.
RegisterGenerator
(
"--c_out"
,
&
c_generator
,
"Generate C/H files."
);
cli
.
SetVersionInfo
(
PACKAGE_STRING
);
...
...
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