Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Dec 21, 2024
1 parent 51b77dc commit 3fdda83
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mdbx/mdbx.c
Original file line number Diff line number Diff line change
Expand Up @@ -24064,7 +24064,7 @@ __dll_export
#warning "Build flags undefined. Please use correct build script"
#endif // _MSC_VER
#endif
MDBX_BUILD_METADATA
, MDBX_BUILD_METADATA
};

#ifdef __SANITIZE_ADDRESS__
Expand Down
4 changes: 2 additions & 2 deletions mdbx/mdbx.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ details about dealing with such situations.
package mdbx

/*
#cgo !windows CFLAGS: -O2 -g -DMDBX_BUILD_FLAGS='' -DNDEBUG=1 -std=gnu11 -fvisibility=hidden -ffast-math -fPIC -pthread -Wno-error=attributes -W -Wall -Wextra -Wpedantic -Wno-deprecated-declarations -Wno-format -Wno-format-security -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-unused-function -Wno-format-extra-args -Wno-missing-field-initializers -Wno-unknown-warning-option -Wno-enum-int-mismatch -Wno-strict-prototypes
#cgo windows CFLAGS: -O2 -g -DMDBX_BUILD_FLAGS='' -DNDEBUG=1 -std=gnu11 -fvisibility=hidden -ffast-math -fexceptions -fno-common -W -Wno-deprecated-declarations -Wno-bad-function-cast -Wno-cast-function-type -Wall -Wno-format -Wno-format-security -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-unused-function -Wno-format-extra-args -Wno-missing-field-initializers -Wno-unknown-warning-option -Wno-enum-int-mismatch -Wno-strict-prototypes
#cgo !windows CFLAGS: -O2 -g -DNDEBUG=1 -std=gnu11 -fvisibility=hidden -ffast-math -fPIC -pthread -Wno-error=attributes -W -Wall -Wextra -Wpedantic -Wno-deprecated-declarations -Wno-format -Wno-format-security -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-unused-function -Wno-format-extra-args -Wno-missing-field-initializers -Wno-unknown-warning-option -Wno-enum-int-mismatch -Wno-strict-prototypes
#cgo windows CFLAGS: -O2 -g -DNDEBUG=1 -std=gnu11 -fvisibility=hidden -ffast-math -fexceptions -fno-common -W -Wno-deprecated-declarations -Wno-bad-function-cast -Wno-cast-function-type -Wall -Wno-format -Wno-format-security -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-unused-function -Wno-format-extra-args -Wno-missing-field-initializers -Wno-unknown-warning-option -Wno-enum-int-mismatch -Wno-strict-prototypes
#cgo windows LDFLAGS: -lntdll
#cgo !android,linux LDFLAGS: -lrt
Expand Down
2 changes: 1 addition & 1 deletion mdbx/mdbx.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#define MDBX_BUILD_FLAGS "-std=gnu11 -fvisibility=hidden -ffast-math"
/**
_libmdbx_ (aka MDBX) is an extremely fast, compact, powerful, embeddable,
Expand Down Expand Up @@ -39,6 +38,7 @@ credits and acknowledgments.
#pragma once
#ifndef LIBMDBX_H
#define LIBMDBX_H
#define MDBX_BUILD_FLAGS "-std=gnu11 -fvisibility=hidden -ffast-math"

#if defined(__riscv) || defined(__riscv__) || defined(__RISCV) || defined(__RISCV__)
#warning "The RISC-V architecture is intentionally insecure by design. \
Expand Down

0 comments on commit 3fdda83

Please sign in to comment.