Skip to content

Fix protobuf compilation warnings

Joao Lopes requested to merge protobuf_warnings into develop

This merge request fixes some protobuf compilation warnings that were found while compiling the FTS code with a newer version of protobuf:

[root@fts-joao-alma9 build]# rpm -qa | grep protobuf
protobuf-3.14.0-13.el9.x86_64
protobuf-compiler-3.14.0-13.el9.x86_64
protobuf-devel-3.14.0-13.el9.x86_64
[  4%] Running C++ protocol buffer compiler on /root/workspace/fts3/src/msg-bus/events/MessageUpdater.proto with root /root/workspace/fts3/src/msg-bus/events, generating: /root/workspace/fts3/build/src/msg-bus/events/MessageUpdater.pb.cc
[libprotobuf WARNING google/protobuf/compiler/parser.cc:648] No syntax specified for the proto file: Agent.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:648] No syntax specified for the proto file: TransferStart.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:648] No syntax specified for the proto file: EndpointInfo.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:648] No syntax specified for the proto file: Agent.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:648] No syntax specified for the proto file: EndpointInfo.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:648] No syntax specified for the proto file: ProtocolInfo.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
TransferStart.proto:3:1: warning: Import Agent.proto is unused.
TransferStart.proto:5:1: warning: Import ProtocolInfo.proto is unused.
[libprotobuf WARNING google/protobuf/compiler/parser.cc:648] No syntax specified for the proto file: Interval.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:648] No syntax specified for the proto file: Message.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:648] No syntax specified for the proto file: MessageBringonline.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:648] No syntax specified for the proto file: MessageLog.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:648] No syntax specified for the proto file: MessageUpdater.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[  5%] Running C++ protocol buffer compiler on /root/workspace/fts3/src/msg-bus/events/ProtocolInfo.proto with root /root/workspace/fts3/src/msg-bus/events, generating: /root/workspace/fts3/build/src/msg-bus/events/ProtocolInfo.pb.cc
[  6%] Running C++ protocol buffer compiler on /root/workspace/fts3/src/msg-bus/events/TransferCompleted.proto with root /root/workspace/fts3/src/msg-bus/events, generating: /root/workspace/fts3/build/src/msg-bus/events/TransferCompleted.pb.cc
[libprotobuf WARNING google/protobuf/compiler/parser.cc:648] No syntax specified for the proto file: ProtocolInfo.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:648] No syntax specified for the proto file: TransferCompleted.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:648] No syntax specified for the proto file: Agent.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:648] No syntax specified for the proto file: Interval.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:648] No syntax specified for the proto file: EndpointInfo.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
TransferCompleted.proto:3:1: warning: Import Agent.proto is unused.

Cheers,

João

Merge request reports