From 36110e18c4c4728bea3f72702120d6fbcb7b9c09 Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Sun, 10 Mar 2019 19:35:10 +0300 Subject: [PATCH] Fix build on E2K with LCC (patch by Michael Shigorin, ALT Linux) --- libtransmission/file-posix.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libtransmission/file-posix.c b/libtransmission/file-posix.c index 8bd434f16..a24a4da3f 100644 --- a/libtransmission/file-posix.c +++ b/libtransmission/file-posix.c @@ -1134,10 +1134,7 @@ bool tr_sys_dir_create_temp(char* path_template, tr_error** error) tr_sys_dir_t tr_sys_dir_open(char const* path, tr_error** error) { -#ifndef __clang__ - /* Clang gives "static_assert expression is not an integral constant expression" error */ - TR_STATIC_ASSERT(TR_BAD_SYS_DIR == NULL, "values should match"); -#endif + TR_STATIC_ASSERT((void*)TR_BAD_SYS_DIR == NULL, "values should match"); TR_ASSERT(path != NULL); -- 2.40.0