rfb: Avoid unused argument warnings in headers
Don't force users of these headers to squash compiler
warnings about unused arguments, annotate with __unused_attr.
diff --git a/common/rfb/PixelBuffer.h b/common/rfb/PixelBuffer.h
index 75caa63..d89793f 100644
--- a/common/rfb/PixelBuffer.h
+++ b/common/rfb/PixelBuffer.h
@@ -28,6 +28,7 @@
#include <rfb/PixelFormat.h>
#include <rfb/Rect.h>
#include <rfb/Pixel.h>
+#include <rfb/util.h>
namespace rfb {
@@ -85,7 +86,7 @@
// Ensure that the specified rectangle of buffer is up to date.
// Overridden by derived classes implementing framebuffer access
// to copy the required display data into place.
- virtual void grabRegion(const Region& region) {}
+ virtual void grabRegion(const Region& __unused_attr region) {}
protected:
PixelBuffer();