mirror of https://gitee.com/bigwinds/arangodb
backport: backport from iresearch upstream: address some MSVC warnings
This commit is contained in:
parent
2554f109e3
commit
4e49b1afad
|
@ -35,8 +35,6 @@
|
|||
|
||||
#include "utils/timer_utils.hpp"
|
||||
#include "utils/fst.hpp"
|
||||
#include "utils/fst_utils.hpp"
|
||||
#include "utils/fst_decl.hpp"
|
||||
#include "utils/bit_utils.hpp"
|
||||
#include "utils/bitset.hpp"
|
||||
#include "utils/attributes.hpp"
|
||||
|
@ -45,25 +43,6 @@
|
|||
#include "utils/fst_matcher.hpp"
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
// NOOP
|
||||
#elif defined (__GNUC__)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
|
||||
#if (__GNUC__ >= 6)
|
||||
#pragma GCC diagnostic ignored "-Wmisleading-indentation"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <fst/equivalent.h>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
// NOOP
|
||||
#elif defined (__GNUC__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(disable : 4267) // conversion from 'size_t' to 'uint32_t', possible loss of data
|
||||
#pragma warning(disable : 4291)
|
||||
#elif defined (__GNUC__)
|
||||
// NOOP
|
||||
|
@ -72,7 +51,6 @@
|
|||
#include <fst/matcher.h>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(default: 4267)
|
||||
#pragma warning(default: 4291)
|
||||
#elif defined (__GNUC__)
|
||||
// NOOP
|
||||
|
@ -1830,4 +1808,4 @@ NS_END /* root */
|
|||
|
||||
// -----------------------------------------------------------------------------
|
||||
// --SECTION-- END-OF-FILE
|
||||
// -----------------------------------------------------------------------------
|
||||
// -----------------------------------------------------------------------------
|
|
@ -275,7 +275,7 @@ uint32_t write_block(
|
|||
uint32_t write_block(
|
||||
data_output& out,
|
||||
const uint64_t* RESTRICT decoded,
|
||||
uint32_t size,
|
||||
uint64_t size,
|
||||
uint64_t* RESTRICT encoded) {
|
||||
assert(size);
|
||||
assert(encoded);
|
||||
|
@ -453,3 +453,7 @@ size_t bytes_input::read_bytes(byte_type* b, size_t size) {
|
|||
}
|
||||
|
||||
NS_END
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// --SECTION-- END-OF-FILE
|
||||
// -----------------------------------------------------------------------------
|
|
@ -616,7 +616,7 @@ IRESEARCH_API uint32_t write_block(
|
|||
IRESEARCH_API uint32_t write_block(
|
||||
data_output& out,
|
||||
const uint64_t* RESTRICT decoded,
|
||||
uint32_t size,
|
||||
uint64_t size, // same type as 'decoded'/'encoded'
|
||||
uint64_t* RESTRICT encoded
|
||||
);
|
||||
|
||||
|
|
|
@ -24,13 +24,22 @@
|
|||
#ifndef IRESEARCH_FST_STRING_WEIGHT_H
|
||||
#define IRESEARCH_FST_STRING_WEIGHT_H
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(disable : 4267) // conversion from 'size_t' to 'uint32_t', possible loss of data
|
||||
#endif
|
||||
|
||||
#include <fst/string-weight.h>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(default: 4267)
|
||||
#endif
|
||||
|
||||
#include "shared.hpp"
|
||||
#include "utils/string.hpp"
|
||||
#include "utils/std.hpp"
|
||||
#include "utils/bytes_utils.hpp"
|
||||
|
||||
#include <string>
|
||||
#include <fst/string-weight.h>
|
||||
|
||||
NS_BEGIN(fst)
|
||||
|
||||
|
|
Loading…
Reference in New Issue