Skip to content

Instantly share code, notes, and snippets.

@DylanVerstraete
Created January 10, 2020 10:25
Show Gist options
  • Save DylanVerstraete/024eb8316a09cea6417f6a58dd88dc16 to your computer and use it in GitHub Desktop.
Save DylanVerstraete/024eb8316a09cea6417f6a58dd88dc16 to your computer and use it in GitHub Desktop.
go build -ldflags '-X github.com/threefoldfoundation/tfchain/pkg/config.rawVersion=v1.2.1-2645419 -s -w' -o /home/dylan/go/bin/tfchaind ./cmd/tfchaind
# github.com/threefoldfoundation/tfchain/vendor/gopkg.in/olebedev/go-duktape.v3
In file included from _cgo_export.c:4:
debugger.go:22:13: warning: ‘_duk_debugger_attach’ defined but not used [-Wunused-function]
# github.com/threefoldfoundation/tfchain/vendor/gopkg.in/olebedev/go-duktape.v3
duk_logging.c: In function ‘duk__logger_prototype_log_shared’:
duk_logging.c:184:64: warning: ‘Z’ directive writing 1 byte into a region of size between 0 and 9 [-Wformat-overflow=]
184 | sprintf((char *) date_buf, "%04d-%02d-%02dT%02d:%02d:%02d.%03dZ",
| ^
duk_logging.c:184:2: note: ‘sprintf’ output between 25 and 85 bytes into a destination of size 32
184 | sprintf((char *) date_buf, "%04d-%02d-%02dT%02d:%02d:%02d.%03dZ",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
185 | (int) comp.year, (int) comp.month + 1, (int) comp.day,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
186 | (int) comp.hours, (int) comp.minutes, (int) comp.seconds,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
187 | (int) comp.milliseconds);
| ~~~~~~~~~~~~~~~~~~~~~~~~
go build -ldflags '-X github.com/threefoldfoundation/tfchain/pkg/config.rawVersion=v1.2.1-2645419 -s -w' -o /home/dylan/go/bin/tfchainc ./cmd/tfchainc
go build -ldflags '-X github.com/threefoldfoundation/tfchain/pkg/config.rawVersion=v1.2.1-2645419 -s -w' -o /home/dylan/go/bin/tfchaint ./cmd/tfchaint
go build -ldflags '-X github.com/threefoldfoundation/tfchain/pkg/config.rawVersion=v1.2.1-2645419 -s -w' -o /home/dylan/go/bin/bridged ./cmd/bridged
# github.com/threefoldfoundation/tfchain/vendor/gopkg.in/olebedev/go-duktape.v3
In file included from _cgo_export.c:4:
debugger.go:22:13: warning: ‘_duk_debugger_attach’ defined but not used [-Wunused-function]
# github.com/threefoldfoundation/tfchain/vendor/gopkg.in/olebedev/go-duktape.v3
duk_logging.c: In function ‘duk__logger_prototype_log_shared’:
duk_logging.c:184:64: warning: ‘Z’ directive writing 1 byte into a region of size between 0 and 9 [-Wformat-overflow=]
184 | sprintf((char *) date_buf, "%04d-%02d-%02dT%02d:%02d:%02d.%03dZ",
| ^
duk_logging.c:184:2: note: ‘sprintf’ output between 25 and 85 bytes into a destination of size 32
184 | sprintf((char *) date_buf, "%04d-%02d-%02dT%02d:%02d:%02d.%03dZ",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
185 | (int) comp.year, (int) comp.month + 1, (int) comp.day,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
186 | (int) comp.hours, (int) comp.minutes, (int) comp.seconds,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
187 | (int) comp.milliseconds);
| ~~~~~~~~~~~~~~~~~~~~~~~~
go build -ldflags '-X github.com/threefoldfoundation/tfchain/pkg/config.rawVersion=v1.2.1-2645419 -s -w' -o /home/dylan/go/bin/bridgec ./cmd/bridgec
# github.com/threefoldfoundation/tfchain/vendor/gopkg.in/olebedev/go-duktape.v3
In file included from _cgo_export.c:4:
debugger.go:22:13: warning: ‘_duk_debugger_attach’ defined but not used [-Wunused-function]
# github.com/threefoldfoundation/tfchain/vendor/gopkg.in/olebedev/go-duktape.v3
duk_logging.c: In function ‘duk__logger_prototype_log_shared’:
duk_logging.c:184:64: warning: ‘Z’ directive writing 1 byte into a region of size between 0 and 9 [-Wformat-overflow=]
184 | sprintf((char *) date_buf, "%04d-%02d-%02dT%02d:%02d:%02d.%03dZ",
| ^
duk_logging.c:184:2: note: ‘sprintf’ output between 25 and 85 bytes into a destination of size 32
184 | sprintf((char *) date_buf, "%04d-%02d-%02dT%02d:%02d:%02d.%03dZ",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
185 | (int) comp.year, (int) comp.month + 1, (int) comp.day,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
186 | (int) comp.hours, (int) comp.minutes, (int) comp.seconds,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
187 | (int) comp.milliseconds);
| ~~~~~~~~~~~~~~~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment