Browse Source

compile warning trivia

pull/1/head
Sami Vaarala 11 years ago
parent
commit
255bac54a6
  1. 4
      src/duk_hthread_builtins.c
  2. 4
      src/duk_unicode_support.c

4
src/duk_hthread_builtins.c

@ -490,14 +490,14 @@ void duk_hthread_create_builtin_objects(duk_hthread *thr) {
#ifdef DUK_USE_INITJS
/* FIXME: compression */
duk_eval_string(ctx, duk_initjs_data); /* initjs data is NUL terminated */
duk_eval_string(ctx, (const char *) duk_initjs_data); /* initjs data is NUL terminated */
duk_pop(ctx);
#endif /* DUK_USE_INITJS */
#ifdef DUK_USE_USER_INITJS
/* FIXME: compression, at least as an option? */
/* FIXME: unused now */
duk_eval_string(ctx, DUK_USE_USER_INITJS);
duk_eval_string(ctx, (const char *) DUK_USE_USER_INITJS);
duk_pop(ctx);
#endif /* DUK_USE_USER_INITJS */

4
src/duk_unicode_support.c

@ -841,7 +841,11 @@ static duk_codepoint_t case_transform_helper(duk_hthread *thr,
}
return cp;
/* unused now, not needed until Turkish/Azeri */
#if 0
nochar:
#endif
return -1;
}

Loading…
Cancel
Save