Skip to content

Commit

Permalink
Disable deprecated optimize_for = LITE_RUNTIME option.
Browse files Browse the repository at this point in the history
Fixes warnings with protobuf >= 3.8.0:

> The optimize_for = LITE_RUNTIME option is no longer supported by protobuf
> Java code generator and is ignored--protoc will always generate full
> runtime code for Java. To use Java Lite runtime, users should use the
> Java Lite plugin instead. See:
> https://github.com/protocolbuffers/protobuf/blob/master/java/lite.md
  • Loading branch information
sebastic committed Mar 22, 2020
1 parent cb942b9 commit f7b7782
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/fileformat.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
*/

option optimize_for = LITE_RUNTIME;
//option optimize_for = LITE_RUNTIME;
option java_package = "crosby.binary";
package OSMPBF;

Expand Down
2 changes: 1 addition & 1 deletion src/osmformat.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
*/

option optimize_for = LITE_RUNTIME;
//option optimize_for = LITE_RUNTIME;
option java_package = "crosby.binary";
package OSMPBF;

Expand Down
2 changes: 1 addition & 1 deletion tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CXX ?= g++
CXXFLAGS ?= -g

CXXFLAGS += -I../include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wextra -pedantic -Wredundant-decls -Wdisabled-optimization -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wno-long-long
LDFLAGS += -L../src -pthread -lz -lprotobuf-lite -losmpbf
LDFLAGS += -L../src -pthread -lz -lprotobuf -losmpbf

.PHONY: clean install

Expand Down

0 comments on commit f7b7782

Please sign in to comment.