[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sqlite-users
Subject:    Re: [sqlite] Version 2.8.14
From:       Frank Baumgart <godot () uni-paderborn ! de>
Date:       2004-06-19 10:21:55
Message-ID: 40D413C3.7040502 () uni-paderborn ! de
[Download RAW message or body]

Nuno Lucas wrote:
> On Visual Studio .NET 2003, there is a warning that can be easily eliminated
> on "os.c", line 836:
> 
> ---- os.c, line 835 -----------
>   }else{
>     zDir = sqlite_temp_directory;
>   }
> -------------------------------
> 
> The compiler warns about assigning a const pointer to a non-const pointer.
> Casting it, fixes the warning (I believe it is a safe thing to do it in
> this context).
> 
> ---- os.c, line 836 -----------
>     zDir = (char*)sqlite_temp_directory;
> -------------------------------

"const char *zDir;" looks more appropriate to me.

Frank

---------------------------------------------------------------------
To unsubscribe, e-mail: sqlite-users-unsubscribe@sqlite.org
For additional commands, e-mail: sqlite-users-help@sqlite.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic