diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2002-12-17 17:00:03 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2002-12-17 17:00:03 +0000 |
commit | c68b7cd014d336057908f1e435510b6199598d0d (patch) | |
tree | dfa49725e042fc7431ac60733a12a3a53e58b14c /lib/sbin/create_c_stuff.pl | |
parent | 91ac5248655fb225c248b2f1637ec99cb179bcf7 (diff) |
Do an explicit cast when assigning value of structure member to a local
variable for a parameter. This solves the 'cannot cast from char ** to const
char **' problem for c++ under gcc 3.2, plus probably other compilers.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3049 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/create_c_stuff.pl')
-rw-r--r-- | lib/sbin/create_c_stuff.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sbin/create_c_stuff.pl b/lib/sbin/create_c_stuff.pl index b7d15826..cf635e5a 100644 --- a/lib/sbin/create_c_stuff.pl +++ b/lib/sbin/create_c_stuff.pl @@ -199,7 +199,7 @@ sub CreateCStructureParameterHeader my $realname = $rhparameter_db->{"\U$rhparameters->{$parameter} $parameter\E realname"}; push(@data, " $type_string $realname$suffix;"); - push(@definition, " const $type_string $varprefix$parameter = $structure.$realname; \\"); + push(@definition, " const $type_string $varprefix$parameter = (const $type_string $varprefix)$structure.$realname; \\"); push(@use, " (void) ($parameter + 0); \\"); } |