Changeset 96

Show
Ignore:
Timestamp:
08/03/07 00:54:09 (5 years ago)
Author:
welshbyte
Message:

A bit of housekeeping to shut the compiler warnings up

Location:
branches/smonkey
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/smonkey/js.c

    r95 r96  
    3434        char * charset; 
    3535        iconv_t conv; 
    36         int nconv; 
     36        size_t nconv; 
    3737        size_t localbytesleft; 
    3838        size_t utf16bytesleft; 
     
    9494 */ 
    9595static JSBool 
    96 js_print(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { 
     96js_print(JSContext *cx, JSObject __attribute__((unused)) *obj, uintN argc, jsval *argv, jsval __attribute__((unused)) *rval) { 
    9797        JSString *jsmsg; 
    9898        size_t len; 
    99         int i; 
     99        uintN i; 
    100100         
    101101        jschar * ucmsg; 
     
    191191// Provides a javascript function to query an sqlite3 database 
    192192static JSBool 
    193 js_doquery(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { 
     193js_doquery(JSContext *cx, JSObject __attribute__((unused)) *obj, uintN argc, jsval *argv, jsval *rval) { 
    194194        struct db_result *dbres; 
    195195        char *dbname; 
    196196        char *query; 
    197         struct JSPropertySpec myspec[3]; 
    198197        JSObject *result; // result object were creating 
    199198        JSObject *resarray; 
    200         JSBool ok; 
    201199 
    202200        if (argc != 2) { 
     
    247245        char * charset; 
    248246        iconv_t conv; 
    249         int nconv; 
     247        size_t nconv; 
    250248        size_t localbytesleft; 
    251249        size_t utf16bytesleft; 
     
    385383/* Taken from the spidermonkey tutorial at Kicken's World */ 
    386384static void  
    387 js_error_handler(JSContext *cx, const char *msg, JSErrorReport *er) 
     385js_error_handler(JSContext __attribute__((unused)) *cx, const char *msg, JSErrorReport *er) 
    388386{ 
    389387        char *pointer=NULL; 
  • branches/smonkey/sqlite.c

    r95 r96  
    1414        } 
    1515        return db; 
     16} 
     17 
     18void 
     19db_close(sqlite3 *db) 
     20{ 
     21        printf("Closing database %p\n", (void *)db); 
     22        sqlite3_close(db); 
    1623} 
    1724 
     
    161168} 
    162169 
    163 void db_close(sqlite3 *db) 
    164 { 
    165         printf("Closing database %p\n", (void *)db); 
    166         sqlite3_close(db); 
    167 } 
    168