When compiling using the latest gcc, the compiler assertion used by LOG_EVERY_N
generates an unused typedef warning:
warning: typedef ‘INVALID_REQUESTED_LOG_SEVERITY’ locally defined
but not used [-Wunused-local-typedefs]
The Chromium base/macros.h implementation of the same code uses
__attribute__((unused)) on the typedef to fix the problem (see
https://chromium.googlesource.com/chromium/src/base/+/master/macros.h)
Attaching a patch which fixes the issue for me.
Original issue reported on code.google.com by tlip...@gmail.com on 7 Apr 2014 at 7:14
Original issue reported on code.google.com by
tlip...@gmail.com
on 7 Apr 2014 at 7:14Attachments: