mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 22:43:04 +01:00
Kill a couple unneeded volatiles
This commit is contained in:
parent
160e99ad56
commit
363564555e
@ -24,7 +24,7 @@
|
|||||||
//
|
//
|
||||||
//____________________________________________________________
|
//____________________________________________________________
|
||||||
//
|
//
|
||||||
// $Id: alice.cpp,v 1.53 2004-03-07 07:58:06 robocop Exp $
|
// $Id: alice.cpp,v 1.54 2004-03-11 05:43:14 skidder Exp $
|
||||||
//
|
//
|
||||||
// 2001.07.06 Sean Leyne - Code Cleanup, removed "#ifdef READONLY_DATABASE"
|
// 2001.07.06 Sean Leyne - Code Cleanup, removed "#ifdef READONLY_DATABASE"
|
||||||
// conditionals, as the engine now fully supports
|
// conditionals, as the engine now fully supports
|
||||||
@ -475,8 +475,7 @@ int common_main(int argc,
|
|||||||
if (--argc <= 0) {
|
if (--argc <= 0) {
|
||||||
ALICE_error(13); // msg 13: user name required
|
ALICE_error(13); // msg 13: user name required
|
||||||
}
|
}
|
||||||
tdgbl->ALICE_data.ua_user =
|
tdgbl->ALICE_data.ua_user = reinterpret_cast<UCHAR*>(*argv++);
|
||||||
const_cast<UCHAR* volatile>(reinterpret_cast<UCHAR*>(*argv++));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (table->in_sw_value & sw_password) {
|
if (table->in_sw_value & sw_password) {
|
||||||
@ -585,8 +584,7 @@ int common_main(int argc,
|
|||||||
ret = EXE_action(database, switches);
|
ret = EXE_action(database, switches);
|
||||||
|
|
||||||
// cast away volatile
|
// cast away volatile
|
||||||
const SLONG* ua_val_errors =
|
const SLONG* ua_val_errors = tdgbl->ALICE_data.ua_val_errors;
|
||||||
const_cast<SLONG*>(tdgbl->ALICE_data.ua_val_errors);
|
|
||||||
|
|
||||||
if (!ua_val_errors[VAL_INVALID_DB_VERSION])
|
if (!ua_val_errors[VAL_INVALID_DB_VERSION])
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user