Index: node-opencv/binding.gyp
--- node-opencv/binding.gyp.orig	2016-02-13 20:49:32.000000000 +0100
+++ node-opencv/binding.gyp	2016-02-13 21:00:04.742731910 +0100
@@ -40,7 +40,7 @@
         [ "OS==\"linux\" or OS==\"freebsd\" or OS==\"openbsd\" or OS==\"solaris\" or OS==\"aix\"", {
             "cflags": [
               "<!@(node utils/find-opencv.js --cflags)",
-              "-Wall"
+              "-Wno-deprecated-declarations -Wno-unused-but-set-variable -Wunused-variable -Wno-sign-compare"
             ]
         }],
         [ "OS==\"win\"", {
@@ -94,7 +94,7 @@
       "cflags_cc!": [ "-fno-rtti",  "-fno-exceptions"],
 
       "conditions": [
-        [ "OS==\"linux\"", {
+        [ "OS==\"linux\" or OS==\"freebsd\" or OS==\"openbsd\" or OS==\"solaris\" or OS==\"aix\"", {
             "cflags": [
               "<!@(node utils/find-opencv.js --cflags)",
               "-Wall"
