Fixed -O flags for debug builds

git-svn-id: http://svn.drobilla.net/lad/patchage@117 a436a847-0d15-0410-975c-d299462d15a1
This commit is contained in:
dave 2006-09-06 22:53:24 +00:00
parent 556991fe32
commit a99e3f04fb
2 changed files with 4 additions and 2 deletions

View File

@ -74,7 +74,7 @@ AC_ARG_ENABLE(debug,
[debug="$enableval"])
if test "$debug" = "yes"; then
# Useless POS gnomecanvasmm doesn't build w/ -pedantic
CFLAGS="-O1 -g -DDEBUG"
CFLAGS="-O0 -g -DDEBUG"
CXXFLAGS="$CFLAGS"
else
CFLAGS="$CFLAGS -DNDEBUG"

View File

@ -140,8 +140,10 @@ JackDriver::refresh()
// FIXME: leak? jack docs don't say
const char* const type_str = jack_port_type(port);
PortType port_type = JACK_AUDIO;
if (!strcmp(type_str, "8 bit raw midi"))
if (!strcmp(type_str, JACK_DEFAULT_MIDI_TYPE))
port_type = JACK_MIDI;
else if (strcmp(type_str, JACK_DEFAULT_AUDIO_TYPE))
throw "Unknown JACK port type?";
m->add_patchage_port(jack_port_short_name(port),
(jack_port_flags(port) & JackPortIsInput),