diff --git a/src/share/grabbag/cuesheet.c b/src/share/grabbag/cuesheet.c
index 6325934..e0a5ddd 100644
--- a/src/share/grabbag/cuesheet.c
+++ b/src/share/grabbag/cuesheet.c
@@ -585,7 +585,6 @@ static FLAC__bool local__cuesheet_parse_(FILE *file, const char **error_message,
 		return false;
 	}
 	return true;
-#undef FLAC__STRCASECMP
 }
 
 FLAC__StreamMetadata *grabbag__cuesheet_parse(FILE *file, const char **error_message, unsigned *last_line_read, unsigned sample_rate, FLAC__bool is_cdda, FLAC__uint64 lead_out_offset)
diff --git a/src/share/win_utf8_io/win_utf8_io.c b/src/share/win_utf8_io/win_utf8_io.c
index 6cc90df..4e507a0 100644
--- a/src/share/win_utf8_io/win_utf8_io.c
+++ b/src/share/win_utf8_io/win_utf8_io.c
@@ -44,7 +44,6 @@
 
 #include "share/compat.h"
 #include "share/win_utf8_io.h"
-#include "share/compat.h"
 
 static UINT win_utf8_io_codepage = CP_ACP;
 
diff --git a/test/test_replaygain.sh b/test/test_replaygain.sh
index a847983..95aa1a9 100755
--- a/test/test_replaygain.sh
+++ b/test/test_replaygain.sh
@@ -135,7 +135,6 @@ tonegenerator ()
 REPLAYGAIN_FREQ=
 REPLAYGAIN_FREQ="$REPLAYGAIN_FREQ  8000/-12.73"
 REPLAYGAIN_FREQ="$REPLAYGAIN_FREQ 11025/-12.93"
-REPLAYGAIN_FREQ="$REPLAYGAIN_FREQ 11025/-12.93"
 REPLAYGAIN_FREQ="$REPLAYGAIN_FREQ 12000/-12.98"
 REPLAYGAIN_FREQ="$REPLAYGAIN_FREQ 16000/-13.27"
 REPLAYGAIN_FREQ="$REPLAYGAIN_FREQ 18900/-13.41"
