Skip to content

Commit

Permalink
Fixes #38 - added CGO_CFLAGS to specific targets that emit warnings t…
Browse files Browse the repository at this point in the history
…o suppress warnings that library users are unlikely to fix or address.
  • Loading branch information
jamelt committed May 31, 2023
1 parent c29ad64 commit e3672cc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions unarrc/zip_parse-zip.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ package unarrc

/*
#include "external/unarr/zip/parse-zip.c"
#cgo CFLAGS: -Wno-typedef-redefinition
*/
import "C"
1 change: 1 addition & 0 deletions unarrc/zip_uncompress-zip.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ package unarrc

/*
#include "external/unarr/zip/uncompress-zip.c"
#cgo CFLAGS: -Wno-typedef-redefinition
*/
import "C"
1 change: 1 addition & 0 deletions unarrc/zip_zip.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ package unarrc

/*
#include "external/unarr/zip/zip.c"
#cgo CFLAGS: -Wno-typedef-redefinition
*/
import "C"
1 change: 1 addition & 0 deletions unarrc/zlib_adler32.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ package unarrc

/*
#include "external/zlib/adler32.c"
#cgo CFLAGS: -Wno-deprecated-non-prototype
*/
import "C"

0 comments on commit e3672cc

Please sign in to comment.