diff --git a/binding.gyp b/binding.gyp index d43b6ed..67cd83c 100644 --- a/binding.gyp +++ b/binding.gyp @@ -11,7 +11,10 @@ ], "sources": ["src/constants.cc", "src/cld.cc"], "defines": [], - "cflags_cc": ["-Wall"] + "cflags_cc": ["-Wall"], + "xcode_settings": { + "OTHER_CFLAGS": ["-Wall"] + } } ] } diff --git a/cld/binding.gyp b/cld/binding.gyp index 8bc0311..e01afc0 100644 --- a/cld/binding.gyp +++ b/cld/binding.gyp @@ -33,7 +33,10 @@ "internal/cld_generated_score_quad_octa_0122.cc" ], "defines": [], - "cflags_cc": ["-w"] + "cflags_cc": ["-w"], + "xcode_settings": { + "OTHER_CFLAGS": ["-w"] + } } ] } diff --git a/src/cld.cc b/src/cld.cc index b5d5529..6ca0a1a 100644 --- a/src/cld.cc +++ b/src/cld.cc @@ -113,7 +113,6 @@ namespace NodeCld { NodeCldDetected rawLanguage = rawDetected->at(i); detected->Set(static_cast(i), NanNew(rawLanguage.name)); } - //NanAssignPersistent(detected, NanNew()); target->Set(NanNew("DETECTED_LANGUAGES"), detected); // set all languages @@ -123,7 +122,6 @@ namespace NodeCld { NodeCldLanguage rawLanguage = rawLanguages->at(i); languages->Set(NanNew(rawLanguage.name), NanNew(rawLanguage.code)); } - //NanAssignPersistent(languages, NanNew()); target->Set(NanNew("LANGUAGES"), languages); // set encodings @@ -133,7 +131,6 @@ namespace NodeCld { NodeCldEncoding rawEncoding = rawEncodings->at(i); encodings->Set(static_cast(i), NanNew(rawEncoding.name)); } - //NanAssignPersistent(encodings, NanNew()); target->Set(NanNew("ENCODINGS"), encodings); NODE_SET_METHOD(target, "detect", Detect);