Skip to content

Commit

Permalink
trivial: Fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ximion committed Sep 22, 2016
1 parent 3736961 commit 12ca9be
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
5 changes: 3 additions & 2 deletions source/backends/ubuntu/ubupkgindex.d
Expand Up @@ -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
{

Expand Down
16 changes: 8 additions & 8 deletions source/zarchive.d
Expand Up @@ -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;
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 12ca9be

Please sign in to comment.