]> granicus.if.org Git - transmission/commitdiff
Fix build on E2K with LCC (patch by Michael Shigorin, ALT Linux)
authorMike Gelfand <mikedld@mikedld.com>
Sun, 10 Mar 2019 16:35:10 +0000 (19:35 +0300)
committerMike Gelfand <mikedld@mikedld.com>
Sun, 10 Mar 2019 16:35:10 +0000 (19:35 +0300)
libtransmission/file-posix.c

index 8bd434f1635fe2a222d30aca5172444f9ff4dbd1..a24a4da3f72858ea97b7d24f2de573756a2b8a5e 100644 (file)
@@ -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);