Summary:
fix OSX compat issues
Github Author: Daniel Sloof <goapsychadelic@gmail.com>
Test Plan: - compiled
Reviewed By: pt@fb.com
FB internal diff:
D877309
#include "folly/Portability.h"
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE 1
-#endif
-
#ifndef __GNUC__
#error GCC required
#endif
auto length = readULEB(program);
// the opcode itself should be included in the length, so length >= 1
enforce(length != 0, "invalid extended opcode length");
- auto extendedOpcode = read<uint8_t>(program);
+ read<uint8_t>(program); // extended opcode
--length;
if (opcode == DW_LNE_define_file) {
static const uint32_t magic = Header::kMagic;
static const ByteRange magicRange(reinterpret_cast<const uint8_t*>(&magic),
sizeof(magic));
- static constexpr size_t headerTail = sizeof(Header) - sizeof(magic);
DCHECK_GE(searchRange.begin(), wholeRange.begin());
DCHECK_LE(searchRange.end(), wholeRange.end());