Просмотр исходного кода

Fix null conversion warning

Avoid this compilation warning:

    warning: implicit conversion of NULL constant to 'MIDIEntityRef' (aka 'unsigned int') [-Wnull-conversion]
andrew morton 11 лет назад
Родитель
Сommit
9948f9be32
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      RtMidi.cpp

+ 1 - 1
RtMidi.cpp

@@ -653,7 +653,7 @@ CFStringRef EndpointName( MIDIEndpointRef endpoint, bool isExternal )
     CFRelease( str );
   }
 
-  MIDIEntityRef entity = NULL;
+  MIDIEntityRef entity = 0;
   MIDIEndpointGetEntity( endpoint, &entity );
   if ( entity == 0 )
     // probably virtual