mirror of https://github.com/go-python/gopy.git
examples/cpkg: fix c-compilation warning
Compiling with `-Wformat-security` resulted in: ```sh gopy/_examples/cpkg/cpkg.go: In function ‘cpkg_printf’: gopy/_examples/cpkg/cpkg.go:11:2: warning: format not a string literal and no format arguments [-Wformat-security] ``` This CL is an attempted at fixing that.
This commit is contained in:
parent
e2b2b4c610
commit
5c74378c29
|
@ -8,7 +8,7 @@ package cpkg
|
|||
//#include <string.h>
|
||||
//#include <stdlib.h>
|
||||
//void cpkg_printf(const char *str) {
|
||||
// fprintf(stdout, str);
|
||||
// fprintf(stdout, "%s", str);
|
||||
// fflush(stdout);
|
||||
//}
|
||||
import "C"
|
||||
|
|
Loading…
Reference in New Issue