Fix build warnings

Bug: 27074067
Change-Id: I4562dd0832f578330f492ca49f6a8c59c8298933
diff --git a/pcm.c b/pcm.c
index 488ea0c..394faba 100644
--- a/pcm.c
+++ b/pcm.c
@@ -49,7 +49,6 @@
 #include <tinyalsa/asoundlib.h>
 
 #define PARAM_MAX SNDRV_PCM_HW_PARAM_LAST_INTERVAL
-#define SNDRV_PCM_HW_PARAMS_NO_PERIOD_WAKEUP (1<<2)
 
 /* Logs information into a string; follows snprintf() in that
  * offset may be greater than size, and though no characters are copied
@@ -1106,7 +1105,7 @@
     return 0;
 }
 
-int pcm_mmap_commit(struct pcm *pcm, unsigned int offset, unsigned int frames)
+int pcm_mmap_commit(struct pcm *pcm, unsigned int offset __attribute__((unused)), unsigned int frames)
 {
     /* update the application pointer in userspace and kernel */
     pcm_mmap_appl_forward(pcm, frames);
diff --git a/tinycap.c b/tinycap.c
index c838348..3e709b2 100644
--- a/tinycap.c
+++ b/tinycap.c
@@ -63,7 +63,7 @@
                             enum pcm_format format, unsigned int period_size,
                             unsigned int period_count);
 
-void sigint_handler(int sig)
+void sigint_handler(int sig __unused)
 {
     capturing = 0;
 }