google / riegeli

Riegeli/records is a file format for storing a sequence of string records, typically serialized protocol buffers.
Apache License 2.0
418 stars 53 forks source link

warning: class 'Chunk' was previously declared as a struct #2

Closed kirakira closed 5 years ago

kirakira commented 5 years ago

Clang gives the following warning:

external/riegeli/riegeli/records/record_reader.h:42:1: warning: class 'Chunk' was previously declared as a struct [-Wmismatched-tags]
class Chunk;
^
external/riegeli/riegeli/chunk_encoding/chunk.h:83:8: note: previous use is here
struct Chunk {
       ^
external/riegeli/riegeli/records/record_reader.h:42:1: note: did you mean struct here?
class Chunk;
^~~~~
struct
1 warning generated.
QrczakMK commented 5 years ago

Thank you. Fixed: https://github.com/google/riegeli/commit/103068784d496f43ecf5158de2bbfa53718e12a6