diff --git a/src/mod/endpoints/mod_portaudio/mod_portaudio.c b/src/mod/endpoints/mod_portaudio/mod_portaudio.c
index 37c969279f..d3d941257e 100644
--- a/src/mod/endpoints/mod_portaudio/mod_portaudio.c
+++ b/src/mod/endpoints/mod_portaudio/mod_portaudio.c
@@ -1181,7 +1181,6 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
 
 	if (outbound_profile->destination_number && !strncasecmp(outbound_profile->destination_number, "endpoint", sizeof("endpoint")-1)) {
 		codec_ms = -1;
-		samples_per_packet = -1;
 		endpoint = NULL;
 		endpoint_name = switch_core_strdup(outbound_profile->pool, outbound_profile->destination_number);
 		endpoint_name = strchr(endpoint_name, '/');
@@ -2081,7 +2080,6 @@ static switch_status_t devlist(char **argv, int argc, switch_stream_handle_t *st
 					stream->write_function(stream, ",");
 				}
 				stream->write_function(stream, "o");
-				prev = 1;
 			}
 
 			stream->write_function(stream, "\n");
@@ -2862,7 +2860,7 @@ static switch_status_t answer_call(char **argv, int argc, switch_stream_handle_t
 static switch_status_t do_flags(char **argv, int argc, switch_stream_handle_t *stream)
 {
 	char *action = argv[0];
-	char *flag_str = argv[1];
+	char *flag_str;
 	GFLAGS flags = GFLAG_NONE;
 	char *p;
 	int x = 0;
@@ -3248,7 +3246,7 @@ SWITCH_STANDARD_API(pa_cmd)
 		}
 
 		switch_mutex_lock(globals.pa_mutex);
-		status = func(&argv[lead], argc - lead, stream);
+		func(&argv[lead], argc - lead, stream);
 		status = SWITCH_STATUS_SUCCESS; /*if func was defined we want to always return success as the command was found */
 		switch_mutex_unlock(globals.pa_mutex);
 
diff --git a/src/mod/endpoints/mod_portaudio/pablio.c b/src/mod/endpoints/mod_portaudio/pablio.c
index fc4a2b9b40..aae15eb00c 100644
--- a/src/mod/endpoints/mod_portaudio/pablio.c
+++ b/src/mod/endpoints/mod_portaudio/pablio.c
@@ -169,7 +169,6 @@ long WriteAudioStream(PABLIO_Stream * aStream, void *data, long numFrames, int c
 
 	bytesWritten = PaUtil_WriteRingBuffer(&aStream->outFIFOs[chan], p, numBytes);
 	numBytes -= bytesWritten;
-	p += bytesWritten;
 
 	if (numBytes > 0) {
 		PaUtil_FlushRingBuffer(&aStream->outFIFOs[chan]);
@@ -197,7 +196,6 @@ long ReadAudioStream(PABLIO_Stream * aStream, void *data, long numFrames, int ch
 		//printf("AVAILABLE BYTES %ld pass %d\n", avail, 5000 - max);
 		if (avail >= neededBytes * 6) {
 			PaUtil_FlushRingBuffer(&aStream->inFIFOs[chan]);
-			avail = 0;
 		} else {
 
 			bytesRead = 0;