]> granicus.if.org Git - transmission/commitdiff
fix unused label warning
authorJordan Lee <jordan@transmissionbt.com>
Sun, 6 Dec 2015 22:24:35 +0000 (22:24 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sun, 6 Dec 2015 22:24:35 +0000 (22:24 +0000)
some #ifdef code had a goto label 'non_sparse_out', so that goto label was
unused on platforms where all those #ifdef blocks were disabled.

libtransmission/file-posix.c

index 1fbc35a71748da0ea2958751d11d596a463db8cd..8406354d6a9cfa85d3cb36edb48a98072b451065 100644 (file)
@@ -866,7 +866,9 @@ tr_sys_file_preallocate (tr_sys_file_t    handle,
 
 #endif
 
+#if defined(HAVE_XFS_XFS_H) || defined(__APPLE__)
 non_sparse_out:
+#endif
       errno = code;
     }