askbook / csharp-sqlite

Automatically exported from code.google.com/p/csharp-sqlite
Other
0 stars 0 forks source link

73 warnings and 2 Errors compiling on Mono .NET 3.5 #158

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Download the current project from 
http://code.google.com/p/csharp-sqlite/source/checkout
2. Pull current code (rev 80)
3. Open Community.CsharpSqlite with MonoDevelop 3
4. Change Target Framework to Mono / .NET 3.5
5. Compile

What is the expected output? 

Compilation completed.

What do you see instead?

/Community.CsharpSqlite/src/attach_c.cs(313,10): warning CS1717: Assignment 
made to same variable; did you mean to assign something else?
/Community.CsharpSqlite/src/attach_c.cs(378,7): warning CS0219: The variable 
`rc' is assigned but its value is never used
/Community.CsharpSqlite/src/btree_c.cs(2147,38): warning CS0429: Unreachable 
expression code detected
/Community.CsharpSqlite/src/btree_c.cs(2148,38): warning CS0429: Unreachable 
expression code detected
/Community.CsharpSqlite/src/btree_c.cs(2669,8): warning CS0219: The variable 
`nPageHeader' is assigned but its value is never used
/Community.CsharpSqlite/src/btree_c.cs(7758,16): warning CS0219: The variable 
`pSpace' is assigned but its value is never used
/Community.CsharpSqlite/src/btree_c.cs(9204,17): warning CS0219: The variable 
`zErr' is assigned but its value is never used
/Community.CsharpSqlite/src/build_c.cs(2651,15): warning CS0219: The variable 
`n' is assigned but its value is never used
/Community.CsharpSqlite/src/crypto.cs(549,15): warning CS0219: The variable 
`pPager' is assigned but its value is never used
/Community.CsharpSqlite/src/delete_c.cs(262,14): warning CS0219: The variable 
`zDb' is assigned but its value is never used
/Community.CsharpSqlite/src/delete_c.cs(269,19): warning CS0219: The variable 
`sContext' is assigned but its value is never used
/Community.CsharpSqlite/src/expr_c.cs(946,14): warning CS0219: The variable 
`zAlloc' is assigned but its value is never used
/Community.CsharpSqlite/src/expr_c.cs(971,15): warning CS0219: The variable 
`nNewSize' is assigned but its value is never used
/Community.CsharpSqlite/src/expr_c.cs(988,17): warning CS0219: The variable 
`nSize' is assigned but its value is never used
/Community.CsharpSqlite/src/expr_c.cs(1005,20): warning CS0219: The variable 
`zToken' is assigned but its value is never used
/Community.CsharpSqlite/src/expr_c.cs(1236,15): warning CS0219: The variable 
`db' is assigned but its value is never used
/Community.CsharpSqlite/src/func_c.cs(1263,11): warning CS0219: The variable 
`nPattern' is assigned but its value is never used
/Community.CsharpSqlite/src/func_c.cs(1264,11): warning CS0219: The variable 
`nRep' is assigned but its value is never used
/Community.CsharpSqlite/src/insert_c.cs(92,17): warning CS0219: The variable 
`db' is assigned but its value is never used
/Community.CsharpSqlite/src/insert_c.cs(137,17): warning CS0219: The variable 
`db' is assigned but its value is never used
/Community.CsharpSqlite/src/insert_c.cs(506,14): warning CS0219: The variable 
`zDb' is assigned but its value is never used
/Community.CsharpSqlite/src/loadext_c.cs(439,14): warning CS0219: The variable 
`xInit' is assigned but its value is never used
/Community.CsharpSqlite/src/main_c.cs(259,23): warning CS0219: The variable 
`pHash' is assigned but its value is never used
/Community.CsharpSqlite/src/main_c.cs(863,11): warning CS0219: The variable `n' 
is assigned but its value is never used
/Community.CsharpSqlite/src/memjournal_c.cs(227,19): warning CS0219: The 
variable `pTmp' is assigned but its value is never used
/Community.CsharpSqlite/src/os_win_c.cs(837,25): warning CS0219: The variable 
`e' is assigned but its value is never used
/Community.CsharpSqlite/src/os_win_c.cs(940,25): warning CS0219: The variable 
`e' is assigned but its value is never used
/Community.CsharpSqlite/src/os_win_c.cs(1002,27): warning CS0219: The variable 
`e' is assigned but its value is never used
/Community.CsharpSqlite/src/os_win_c.cs(1071,27): warning CS0219: The variable 
`e' is assigned but its value is never used
/Community.CsharpSqlite/src/os_win_c.cs(1235,27): warning CS0219: The variable 
`e' is assigned but its value is never used
/Community.CsharpSqlite/src/os_win_c.cs(1334,29): warning CS0219: The variable 
`e' is assigned but its value is never used
/Community.CsharpSqlite/src/os_win_c.cs(1387,27): warning CS0219: The variable 
`e' is assigned but its value is never used
/Community.CsharpSqlite/src/os_win_c.cs(1434,27): warning CS0219: The variable 
`e' is assigned but its value is never used
/Community.CsharpSqlite/src/os_win_c.cs(1513,29): warning CS0219: The variable 
`e' is assigned but its value is never used
/Community.CsharpSqlite/src/os_win_c.cs(1566,27): warning CS0219: The variable 
`e' is assigned but its value is never used
/Community.CsharpSqlite/src/os_win_c.cs(1580,27): warning CS0219: The variable 
`e' is assigned but its value is never used
/Community.CsharpSqlite/src/os_win_c.cs(2655,29): warning CS0219: The variable 
`e' is assigned but its value is never used
/Community.CsharpSqlite/src/os_win_c.cs(2819,31): warning CS0219: The variable 
`e' is assigned but its value is never used
/Community.CsharpSqlite/src/os_win_c.cs(2850,31): warning CS0219: The variable 
`e' is assigned but its value is never used
/Community.CsharpSqlite/src/os_win_c.cs(2958,31): warning CS0219: The variable 
`e' is assigned but its value is never used
/Community.CsharpSqlite/src/os_win_c.cs(2975,27): warning CS0219: The variable 
`e' is assigned but its value is never used
/Community.CsharpSqlite/src/os_win_c.cs(3068,28): warning CS0219: The variable 
`e' is assigned but its value is never used
/Community.CsharpSqlite/src/pager_c.cs(4255,12): warning CS0219: The variable 
`pTmp' is assigned but its value is never used
/Community.CsharpSqlite/src/pager_c.cs(4883,11): warning CS0219: The variable 
`journalFileSize' is assigned but its value is never used
/Community.CsharpSqlite/src/pager_c.cs(4888,11): warning CS0219: The variable 
`pcacheSize' is assigned but its value is never used
/Community.CsharpSqlite/src/pager_c.cs(4891,11): warning CS0219: The variable 
`nUri' is assigned but its value is never used
/Community.CsharpSqlite/src/pager_c.cs(4927,16): warning CS0219: The variable 
`z' is assigned but its value is never used
/Community.CsharpSqlite/src/pcache1_c.cs(735,9): warning CS0162: Unreachable 
code detected
/Community.CsharpSqlite/src/pragma_c.cs(1783,71): warning CS0219: The variable 
`pPager' is assigned but its value is never used
/Community.CsharpSqlite/src/random_c.cs(140,12): warning CS0219: The variable 
`zBuf' is assigned but its value is never used
/Community.CsharpSqlite/src/resolve_c.cs(1119,15): warning CS0219: The variable 
`db' is assigned but its value is never used
/Community.CsharpSqlite/src/select_c.cs(441,17): warning CS0219: The variable 
`iRightCol' is assigned but its value is never used
/Community.CsharpSqlite/src/select_c.cs(1587,15): warning CS0219: The variable 
`db' is assigned but its value is never used
/Community.CsharpSqlite/src/select_c.cs(4044,15): warning CS0219: The variable 
`db' is assigned but its value is never used
/Community.CsharpSqlite/src/trigger_c.cs(124,11): warning CS0219: The variable 
`iTabDb' is assigned but its value is never used
/Community.CsharpSqlite/src/util_c.cs(921,11): warning CS0219: The variable 
`result' is assigned but its value is never used
/Community.CsharpSqlite/src/vdbeapi_c.cs(809,13): warning CS0219: The variable 
`nMalloc' is assigned but its value is never used
/Community.CsharpSqlite/src/vdbeapi_c.cs(1439,13): warning CS0162: Unreachable 
code detected
/Community.CsharpSqlite/src/vdbeaux_c.cs(1124,13): warning CS0219: The variable 
`nField' is assigned but its value is never used
/Community.CsharpSqlite/src/vdbeaux_c.cs(1554,17): warning CS0219: The variable 
`db' is assigned but its value is never used
/Community.CsharpSqlite/src/vdbeaux_c.cs(2135,45): error CS0172: Type of 
conditional expression cannot be determined as `int' and `short' convert 
implicitly to each other
/Community.CsharpSqlite/src/vdbeaux_c.cs(3392,7): warning CS0162: Unreachable 
code detected
/Community.CsharpSqlite/src/vdbeaux_c.cs(3549,9): warning CS0162: Unreachable 
code detected
/Community.CsharpSqlite/src/vdbemem_c.cs(52,9): warning CS0162: Unreachable 
code detected
/Community.CsharpSqlite/src/vdbemem_c.cs(752,9): warning CS0162: Unreachable 
code detected
/Community.CsharpSqlite/src/vdbemem_c.cs(1359,9): warning CS0162: Unreachable 
code detected
/Community.CsharpSqlite/src/vdbemem_c.cs(1596,9): warning CS0162: Unreachable 
code detected
/Community.CsharpSqlite/src/vdbetrace_c.cs(186,11): warning CS0162: Unreachable 
code detected
/Community.CsharpSqlite/src/vdbe_c.cs(248,44): warning CS0429: Unreachable 
expression code detected
/Community.CsharpSqlite/src/vdbe_c.cs(523,9): warning CS0162: Unreachable code 
detected
/Community.CsharpSqlite/src/vdbe_c.cs(3024,53): warning CS0429: Unreachable 
expression code detected
/Community.CsharpSqlite/src/vdbe_c.cs(3025,17): warning CS0162: Unreachable 
code detected
/Community.CsharpSqlite/src/vdbe_c.cs(3033,17): warning CS0162: Unreachable 
code detected
/Community.CsharpSqlite/src/vdbe_c.cs(4738,15): warning CS0162: Unreachable 
code detected
/Community.CsharpSqlite/src/vdbe_c.cs(6873,72): error CS0172: Type of 
conditional expression cannot be determined as `int' and `byte' convert 
implicitly to each other

What version of the product are you using? 

3.7.7.1

On what operating system?

OSX 10.6.8

Please provide any additional information below.

MonoDevelop 3.0 (3.0.1)
Installation UUID: f4523800-16f6-41bd-b9f9-4c324c0540eb
Runtime:
    Mono 2.10.9 (tarball Mon May  7 20:25:51 EDT 2012)
    GTK 2.24.10
    GTK# (2.12.0.0)
    Package version: 210090011
Apple Developer Tools:
     Xcode 4.2 (828)
     Build 4C199
Monotouch: 5.2.11
Mono for Android: 4.2.1.196198126
Android SDK: /android-sdk-mac_x86
Supported Android versions:
    Version: 1.6    ApiLevel: 4
    Version: 2.1    ApiLevel: 7
    Version: 2.2    ApiLevel: 8
    Version: 2.3    ApiLevel: 10
    Version: 3.1    ApiLevel: 12
    Version: 4.0    ApiLevel: 14
    Version: 4.0.3  ApiLevel: 15
Java SDK: /usr/bin

Build information:
    Release ID: 30001000
    Git revision: 6642975fcf75fabbaf71a2ce79cdd65cd7db812a-dirty
    Build date: 2012-05-14 11:09:56+0000
    Xamarin addins: a1563f182f5d7a68e0ba06beda0a39f9fe073016
Operating System:
    Mac OS X 10.6.8
    Darwin XXX.local 10.8.0 Darwin Kernel Version 10.8.0
        Tue Jun  7 16:33:36 PDT 2011
        root:xnu-1504.15.3~1/RELEASE_I386 i386

Original issue reported on code.google.com by alessand...@ilz.it on 15 May 2012 at 2:32

GoogleCodeExporter commented 8 years ago
I have seen the "/Community.CsharpSqlite/src/vdbe_c.cs(6873,72): error CS0172: 
Type of conditional expression cannot be determined as `int' and `byte' convert 
implicitly to each other" errors.  

Those are easy enough to fix by inserting a dummy, bucket brigade style 
variable declaration into the code and using explicit casts over a few lines.  
There aren't but a few of them.

If it's helpful, I'll try to add those quick hacks to this thread tonight, but 
it's really pretty self-explanatory if you go into the code.  (Or if you have 
the code handy and can post those lines, I'll hack him here...)

The rest looks like warnings, and you can turn those off and get it to compile.

Now afterwards, after compiling successfully, I haven't had much luck.
http://groups.google.com/group/csharp-sqlite/browse_thread/thread/a2c8df80b8a422
45

Original comment by rufw...@gmail.com on 16 May 2012 at 2:14

GoogleCodeExporter commented 8 years ago
This issue was closed by revision cc723d700680.

Original comment by noah.hart@gmail.com on 18 May 2012 at 11:07