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",
srcs = [src],
copts = [
"-std=c99",
"-Wno-parentheses",
],
deps = [

View File

@ -42,7 +42,7 @@ static void save_data_encrypted(void)
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);
/*this function does not write any data at all*/

View File

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

View File

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

View File

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