Skip to content

Commit

Permalink
Silence warnings, issue #41
Browse files Browse the repository at this point in the history
  • Loading branch information
gen2brain committed Apr 23, 2024
1 parent 17a9a01 commit 13f578c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions unarrc/unarrc_cgo.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package unarrc

/*
#cgo !debug CFLAGS: -DNDEBUG
#cgo CFLAGS: -std=c99 -DHAVE_7Z -DHAVE_ZLIB -DHAVE_BZIP2 -D_7ZIP_PPMD_SUPPPORT
#cgo CFLAGS: -Iexternal/lzma -Iexternal/zlib -Iexternal/bzip2 -Iexternal/unarr -fomit-frame-pointer -Wno-typedef-redefinition
#cgo !debug CFLAGS: -DNDEBUG -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
#cgo CFLAGS: -std=c99 -DHAVE_7Z -DHAVE_ZLIB -DHAVE_BZIP2 -D_7ZIP_PPMD_SUPPPORT -DBZ_NO_STDIO
#cgo CFLAGS: -Iexternal/lzma -Iexternal/zlib -Iexternal/bzip2 -Iexternal/unarr -fomit-frame-pointer -Wno-typedef-redefinition -Wno-unknown-warning
#cgo amd64 arm64 arm64be loong64 mips64 mips64le ppc64 ppc64le riscv64 s390x sparc64 CFLAGS: -D_FILE_OFFSET_BITS=64
void bz_internal_error (int errcode) {};
*/
import "C"

0 comments on commit 13f578c

Please sign in to comment.