summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorMichael Warner <michael.warner.ut+libreoffice@gmail.com>2020-05-23 21:49:14 -0400
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-27 14:48:17 +0200
commit2af600f16fa59490f4444701a6a02e77c6739b5a (patch)
treed2077db349d80903406eacefbb1bb835cd0eac0f /solenv
parente07ff7bde002de026819dfad6595ce695282a623 (diff)
tdf#133331: Added explicit type casts to resolve -fpermissive errors
Change-Id: Id3dcceeddb35e3712d52ddf940eab82dab6a6da9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94746 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'solenv')
-rw-r--r--solenv/bin/concat-deps.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/solenv/bin/concat-deps.c b/solenv/bin/concat-deps.c
index 946270998c08..09416f103515 100644
--- a/solenv/bin/concat-deps.c
+++ b/solenv/bin/concat-deps.c
@@ -445,7 +445,7 @@ static struct hash* hash_create(unsigned int size)
struct hash* hash;
assert(size > 0);
- hash = calloc(1, sizeof(struct hash));
+ hash = (struct hash*)(calloc(1, sizeof(struct hash)));
if(hash)
{
size += (size >> 2) + 1; /* ~ 75% load factor */
@@ -495,7 +495,7 @@ static void hash_resize(struct hash* hash)
{
return;
}
- array = calloc(hash->size + 1, sizeof(struct hash_elem*));
+ array = (struct hash_elem**)calloc(hash->size + 1, sizeof(struct hash_elem*));
if(array)
{
hash->load_limit = hash->size - (hash->size >> 2);
@@ -555,7 +555,7 @@ static int hash_store(struct hash* hash, const char* key, int key_len)
if(!hash_elem)
{
- hash_elem = pool_alloc(hash->elems_pool);
+ hash_elem = (struct hash_elem*)pool_alloc(hash->elems_pool);
if(hash_elem)
{
hash_elem->key = key;
@@ -634,7 +634,7 @@ static char* file_load(const char* name, off_t* size, int* return_rc)
fd = open(name, FILE_O_RDONLY | FILE_O_BINARY);
if (!(fd == -1))
{
- buffer = malloc((size_t)(*size + 1));
+ buffer = (char*)malloc((size_t)(*size + 1));
#if !ENABLE_RUNTIME_OPTIMIZATIONS
if (buffer != NULL)
{
@@ -1143,7 +1143,7 @@ int main(int argc, char** argv)
if(get_var(&base_dir, "SRCDIR") || get_var(&work_dir, "WORKDIR"))
return 1;
work_dir_len = strlen(work_dir);
- phony_content_buffer = malloc(PHONY_TARGET_BUFFER);
+ phony_content_buffer = (char*)malloc(PHONY_TARGET_BUFFER);
assert(phony_content_buffer); // Don't handle OOM conditions
strcpy(phony_content_buffer, work_dir);
phony_content_buffer[work_dir_len] = '/';