Permalink
Browse files

trivial: Fix compiler warning

  • Loading branch information...
1 parent 3736961 commit 12ca9be289eb615a73b8372c0e4108609580a341 @ximion committed Sep 22, 2016
Showing with 11 additions and 10 deletions.
  1. +3 −2 source/backends/ubuntu/ubupkgindex.d
  2. +8 −8 source/zarchive.d
@@ -20,12 +20,13 @@
module backends.ubuntu.ubupkgindex;
+import std.container : Array, make;
+import std.array : appender;
+
import backends.debian;
import backends.interfaces;
import backends.ubuntu.ubupkg;
-import std.container : Array, make;
-
class UbuntuPackageIndex : DebianPackageIndex
{
View
@@ -33,14 +33,6 @@ version (GNU)
else
import std.concurrency : Generator, yield;
-version (unittest) {
- version (GNU) {
- extern(C) char *mkdtemp (char *) nothrow @nogc;
- } else {
- import core.sys.posix.stdlib : mkdtemp;
- }
-}
-
import bindings.libarchive;
private immutable DEFAULT_BLOCK_SIZE = 65536;
@@ -577,6 +569,14 @@ public:
}
+version (unittest) {
+ version (GNU) {
+ extern(C) char *mkdtemp (char *) nothrow @nogc;
+ } else {
+ import core.sys.posix.stdlib : mkdtemp;
+ }
+}
+
unittest
{
writeln ("TEST: ", "Compressed empty file");

0 comments on commit 12ca9be

Please sign in to comment.