Skip to content

Commit

Permalink
Fix building with gcc and clang
Browse files Browse the repository at this point in the history
  • Loading branch information
jedelbo authored and kneth committed Jul 4, 2024
1 parent 137d911 commit ade465f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/external/bson/bson-decimal128.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ _mul_64x64 (uint64_t left, /* IN */
* Returns:
* The lowercased character.
*/
char
static char
_dec128_tolower (char c)
{
if (isupper (c)) {
Expand All @@ -395,7 +395,7 @@ _dec128_tolower (char c)
* Returns:
* true if the strings are equal, false otherwise.
*/
bool
static bool
_dec128_istreq (const char *a, /* IN */
const char *b /* IN */)
{
Expand Down
2 changes: 1 addition & 1 deletion src/external/bson/bson-iter.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ _bson_iter_next_internal (bson_iter_t *iter, /* INOUT */
subtype = *(iter->raw + iter->d2);

if (subtype == BSON_SUBTYPE_BINARY_DEPRECATED) {
int32_t binary_len;
uint32_t binary_len;

if (l < 4) {
iter->err_off = o;
Expand Down
16 changes: 8 additions & 8 deletions test/benchmark-common-tasks/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ template <typename Type>
struct BenchmarkMixedCaseInsensitiveEqual : public BenchmarkWithType<Type> {
using Base = BenchmarkWithType<Type>;
using underlying_type = typename Type::underlying_type;
BenchmarkMixedCaseInsensitiveEqual<Type>()
BenchmarkMixedCaseInsensitiveEqual()
: BenchmarkWithType<Type>()
{
BenchmarkWithType<Type>::set_name_with_prefix("QueryInsensitiveEqual");
Expand Down Expand Up @@ -610,7 +610,7 @@ template <typename Type>
struct BenchmarkRangeForType : public BenchmarkWithType<Type> {
using Base = BenchmarkWithType<Type>;
using underlying_type = typename Type::underlying_type;
BenchmarkRangeForType<Type>()
BenchmarkRangeForType()
: BenchmarkWithType<Type>()
{
BenchmarkWithType<Type>::set_name_with_prefix("QueryRange");
Expand Down Expand Up @@ -647,7 +647,7 @@ template <typename Type>
struct BenchmarkCreateIndexForType : public BenchmarkWithType<Type> {
using Base = BenchmarkWithType<Type>;
using underlying_type = typename Type::underlying_type;
BenchmarkCreateIndexForType<Type>()
BenchmarkCreateIndexForType()
: BenchmarkWithType<Type>()
{
BenchmarkWithType<Type>::set_name_with_prefix("CreateIndexFor");
Expand All @@ -669,7 +669,7 @@ template <typename Type>
struct BenchmarkInsertToIndexForType : public BenchmarkWithType<Type> {
using Base = BenchmarkWithType<Type>;
using underlying_type = typename Type::underlying_type;
BenchmarkInsertToIndexForType<Type>()
BenchmarkInsertToIndexForType()
: BenchmarkWithType<Type>()
{
BenchmarkWithType<Type>::set_name_with_prefix("InsertWithIndex");
Expand Down Expand Up @@ -706,7 +706,7 @@ template <typename Type>
struct BenchmarkInsertPKToIndexForType : public BenchmarkWithType<Type> {
using Base = BenchmarkWithType<Type>;
using underlying_type = typename Type::underlying_type;
BenchmarkInsertPKToIndexForType<Type>()
BenchmarkInsertPKToIndexForType()
: BenchmarkWithType<Type>()
{
BenchmarkWithType<Type>::set_name_with_prefix("InsertPK");
Expand Down Expand Up @@ -739,7 +739,7 @@ template <typename Type>
struct BenchmarkEraseObjectForType : public BenchmarkWithType<Type> {
using Base = BenchmarkWithType<Type>;
using underlying_type = typename Type::underlying_type;
BenchmarkEraseObjectForType<Type>()
BenchmarkEraseObjectForType()
: BenchmarkWithType<Type>()
{
BenchmarkWithType<Type>::set_name_with_prefix("EraseObject");
Expand All @@ -760,7 +760,7 @@ template <typename Type, size_t NUM_CONDITIONS>
struct BenchmarkParsedChainedOrEquality : public BenchmarkWithType<Type> {
using Base = BenchmarkWithType<Type>;
using underlying_type = typename Type::underlying_type;
BenchmarkParsedChainedOrEquality<Type, NUM_CONDITIONS>()
BenchmarkParsedChainedOrEquality()
: BenchmarkWithType<Type>()
{
BenchmarkWithType<Type>::set_name_with_prefix(util::format("QueryChainedOrEquality_%1", NUM_CONDITIONS));
Expand Down Expand Up @@ -803,7 +803,7 @@ template <typename Type, size_t NUM_CONDITIONS>
struct BenchmarkParsedIn : public BenchmarkWithType<Type> {
using Base = BenchmarkWithType<Type>;
using underlying_type = typename Type::underlying_type;
BenchmarkParsedIn<Type, NUM_CONDITIONS>()
BenchmarkParsedIn()
: BenchmarkWithType<Type>()
{
BenchmarkWithType<Type>::set_name_with_prefix(util::format("QueryParsedIN_%1", NUM_CONDITIONS));
Expand Down

0 comments on commit ade465f

Please sign in to comment.