diff options
Diffstat (limited to 'src/cl-utils.c')
-rw-r--r-- | src/cl-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cl-utils.c b/src/cl-utils.c index 9f984169..5f3be316 100644 --- a/src/cl-utils.c +++ b/src/cl-utils.c @@ -266,7 +266,7 @@ cl_program load_program(const char *filename, cl_context ctx, return 0; } - snprintf(cflags, 1023, "-Werror "); + cflags[0] = '\0'; strncat(cflags, "-I"DATADIR"/crystfel/ ", 1023-strlen(cflags)); strncat(cflags, "-cl-no-signed-zeros ", 1023-strlen(cflags)); strncat(cflags, extra_cflags, 1023-strlen(cflags)); |