Package: nwipe
Version: 0.14-1
Severity: minor
Tags: patch
User: [email protected]
Usertags: clang-ftbfs

Dear Maintainer,

Your package fails to build with clang instead of gcc. [-Wreturn-type]
The attached patch fixes it.
Buildlogs and patch are here:
https://github.com/nonas/debian-clang/tree/master/buildlogs/nwipe

Regards,
Nicolas

-- System Information:
Debian Release: jessie/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- a/src/method.c
+++ b/src/method.c
@@ -156,8 +156,8 @@
 		nwipe_log( NWIPE_LOG_FATAL, "Unable to seed the %s method.", nwipe_dod522022m_label );
 
 		/* Ensure a negative return. */
-		if( r < 0 ) { c->result = r; return; }
-		else        { c->result = -1; return; }
+		if( r < 0 ) { c->result = r; return NULL; }
+		else        { c->result = -1; return NULL; }
 
 	}
 
@@ -215,8 +215,8 @@
 		nwipe_log( NWIPE_LOG_FATAL, "Unable to seed the %s method.", nwipe_dodshort_label );
 
 		/* Ensure a negative return. */
-		if( r < 0 ) { c->result = r; return; }
-		else        { c->result = -1; return; }
+		if( r < 0 ) { c->result = r; return NULL; }
+		else        { c->result = -1; return NULL; }
 
 	}
 
@@ -312,8 +312,8 @@
 		nwipe_log( NWIPE_LOG_FATAL, "Unable to seed the %s method.", nwipe_gutmann_label );
 		
 		/* Ensure a negative return. */
-		if( r < 0 ) { c->result = r; return; }
-		else        { c->result = -1; return; }
+		if( r < 0 ) { c->result = r; return NULL; }
+		else        { c->result = -1; return NULL; }
 	}
 
 
@@ -406,7 +406,7 @@
 		nwipe_perror( errno, __FUNCTION__, "malloc" );
 		nwipe_log( NWIPE_LOG_FATAL, "Unable to allocate the random character array." );
 		c->result = -1;
-		return;
+		return NULL;
 	}
 
 	/* Allocate the array of complement characters. */
@@ -417,7 +417,7 @@
 		nwipe_perror( errno, __FUNCTION__, "malloc" );
 		nwipe_log( NWIPE_LOG_FATAL, "Unable to allocate the complement character array." );
 		c->result = -1;
-		return;
+		return NULL;
 	}
 
 
@@ -432,7 +432,7 @@
 		nwipe_perror( errno, __FUNCTION__, "malloc" );
 		nwipe_log( NWIPE_LOG_FATAL, "Unable to allocate the pattern array." );
 		c->result = -1;
-		return;
+		return NULL;
 	}
 
 
@@ -446,8 +446,8 @@
 		nwipe_log( NWIPE_LOG_FATAL, "Unable to seed the %s method.", nwipe_ops2_label );
 		
 		/* Ensure a negative return. */
-		if( r < 0 ) { c->result = r; return; }
-		else        { c->result = -1; return; }
+		if( r < 0 ) { c->result = r; return NULL; }
+		else        { c->result = -1; return NULL; }
 	}
 
 

Reply via email to