GNOME Bugzilla – Bug 666331
[Patch] Silence a few warnings
Last modified: 2012-01-04 19:59:08 UTC
Since we now depend on mozjs185, we can now drop the check for const char* need in js_localeTounicode. Also, passing all constructors to macros introduced some warnings about argv not being used.
Created attachment 203615 [details] [review] drop JS_LOCALETOUNICODE_NEEDS_CONST_CHAR check
Created attachment 203616 [details] [review] silence warnings about argv not being used
Review of attachment 203615 [details] [review]: Sure.
Review of attachment 203616 [details] [review]: I'd prefer it if you put G_GNUC_UNUSED in the actual macro.
Created attachment 203638 [details] [review] silence warnings about argv not being used That's the way I did things the first time I submitted a patch for this warning when it came up some times ago, I also proposed an alternative, not using GJS_NATIVE_CONSTRUCTOR_VARIABLES in those cases and only declaring JSObject *object = NULL, but I was told to do it this way, so it was for consistency. Though, here is a patch using G_GNUC_UNUSED and btw removing the oter argv casts to void
Review of attachment 203638 [details] [review]: Please squash the two patches. Otherwise looks fine.
Created attachment 204597 [details] [review] drop JS_LOCALETOUNICODE_NEEDS_CONST_CHAR check and silence warnings
Attachment 204597 [details] pushed as 4cecec9 - drop JS_LOCALETOUNICODE_NEEDS_CONST_CHAR check and silence warnings