Skip to content
Snippets Groups Projects
Commit 28b23082 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

build: more checks for travis builds

parent e638f9fb
Branches
Tags
No related merge requests found
......@@ -24,9 +24,11 @@ env:
global:
- PKG_CONFIG_PATH="${HOME}/.local/lib/pkgconfig"
- PATH="${HOME}/.local/bin:/usr/local/bin:${PATH}"
- CFLAGS="-O0 -g -fno-omit-frame-pointer"
- CFLAGS="-O2 -g -fno-omit-frame-pointer -DMP_FREELIST_SIZE=0"
- LD_LIBRARY_PATH="${HOME}/.local/lib"
- DYLD_LIBRARY_PATH="${HOME}/.local/lib"
- MALLOC_CHECK_=3
- MALLOC_PERTURB_=223
before_script:
- ./scripts/bootstrap-depends.sh ${HOME}/.local
script:
......
......@@ -16,7 +16,7 @@ char *PRINTF_FMT(1, 2) afmt(const char *fmt, ...)
return ptr;
}
#if !HAVE_ASPRINTF
#if !HAVE_ASPRINTF && !defined(__USE_FORTIFY_LEVEL)
#include <stdarg.h>
#include <stdlib.h>
......
......@@ -12,7 +12,7 @@
*/
char *PRINTF_FMT(1, 2) afmt(const char *fmt, ...);
#if HAVE_ASPRINTF
#if HAVE_ASPRINTF || defined(__USE_FORTIFY_LEVEL)
#include <stdio.h>
#else
#include <stdarg.h>
......
......@@ -111,7 +111,7 @@ static uv_handle_t *ioreq_spawn(struct qr_task *task, int socktype)
struct session *session = handle->data;
session->outgoing = true;
int ret = array_push(session->tasks, task);
if (ret != 0) {
if (ret < 0) {
io_deinit(handle);
req_release(task->worker, (struct req *)handle);
return NULL;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment