Use C99 standard in bazel builds.

This commit is contained in:
iphydf 2018-01-18 21:51:45 +00:00
parent 18a33169b8
commit 0a5be3cbc5
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
5 changed files with 10 additions and 2 deletions

View File

@ -12,6 +12,7 @@ cc_library(
size = "small", size = "small",
srcs = [src], srcs = [src],
copts = [ copts = [
"-std=c99",
"-Wno-parentheses", "-Wno-parentheses",
], ],
deps = [ deps = [

View File

@ -42,7 +42,7 @@ static void save_data_encrypted(void)
FILE *f = fopen(savefile, "w"); FILE *f = fopen(savefile, "w");
off_t size = tox_get_savedata_size(t); size_t size = tox_get_savedata_size(t);
uint8_t *clear = (uint8_t *)malloc(size); uint8_t *clear = (uint8_t *)malloc(size);
/*this function does not write any data at all*/ /*this function does not write any data at all*/

View File

@ -28,6 +28,9 @@ cc_library(
"toxav.h", "toxav.h",
"video.h", "video.h",
], ],
copts = [
"-std=c99",
],
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
deps = [ deps = [
"//c-toxcore/toxcore", "//c-toxcore/toxcore",

View File

@ -21,7 +21,7 @@ cc_library(
hdrs = [ hdrs = [
"crypto_core.h", "crypto_core.h",
], ],
visibility = ["//visibility:public"], visibility = ["//c-toxcore:__subpackages__"],
deps = [ deps = [
":ccompat", ":ccompat",
"@libsodium", "@libsodium",
@ -74,6 +74,7 @@ cc_library(
"util.h", "util.h",
], ],
copts = [ copts = [
"-std=c99",
"-Wno-parentheses", "-Wno-parentheses",
], ],
linkopts = ["-lpthread"], linkopts = ["-lpthread"],

View File

@ -13,6 +13,9 @@ cc_library(
"defines.h", "defines.h",
"toxencryptsave.h", "toxencryptsave.h",
], ],
copts = [
"-std=c99",
],
visibility = [ visibility = [
"//visibility:public", "//visibility:public",
], ],