Sfoglia il codice sorgente

Fix "unused function" warning by marking as unused

- I'm assuming that the reason this is still around is that
  it's useful to have around when debugging. If it's actually
  not used then it's probably best to just delete it.
Nur Monson 12 anni fa
parent
commit
d94db0b9b6
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      Core/Contents/Source/PolyCocoaCore.mm

+ 2 - 0
Core/Contents/Source/PolyCocoaCore.mm

@@ -587,6 +587,8 @@ static void hatValueToXY(CFIndex value, CFIndex range, int * outX, int * outY) {
 }
 }
 
 
 
 
+// Marked as unused to avoid a warning, assuming that this is useful for debugging.
+__attribute__((unused))
 static int IOHIDDeviceGetIntProperty(IOHIDDeviceRef deviceRef, CFStringRef key) {
 static int IOHIDDeviceGetIntProperty(IOHIDDeviceRef deviceRef, CFStringRef key) {
 	CFTypeRef typeRef;
 	CFTypeRef typeRef;
 	int value;
 	int value;