try to fix various warnings from gcc when optimization flags are enabled

This commit is contained in:
Paul Davis 2013-11-04 21:32:41 -05:00
parent 342237bf9c
commit 0cca272431
15 changed files with 44 additions and 20 deletions

View file

@ -490,7 +490,7 @@ static void
note_from_int(char *buf, int note_number)
{
int note, octave;
char *names[] = {"C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"};
const char *names[] = {"C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"};
octave = note_number / 12 - 1;
note = note_number % 12;