From: Michael Vrable Date: Sat, 24 Nov 2018 20:49:33 +0000 (-0800) Subject: Fix C++ compilation warnings/errors under g++ 8.2. X-Git-Url: http://git.vrable.net/?a=commitdiff_plain;ds=inline;h=5a6aa5c252a70554a6987bfbb721ef7d722e1e20;hp=5a6aa5c252a70554a6987bfbb721ef7d722e1e20;p=cumulus.git Fix C++ compilation warnings/errors under g++ 8.2. In metadata.cc: warning: In the GNU C Library, "major" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "major", include directly. If you did not intend to use a system-defined macro "major", you should undefine it after including . In third_party/sha1.cc: error: types may not be defined within __builtin_offsetof Alter the code to always assume that buffers are unaligned, which should be correct at the cost of performance. This shouldn't matter much in practice since SHA-1 is mostly not being used by Cumulus any longer. In third_party/sha256.cc: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ---