Jump to content

Compilation Issues


Guest Shade

Recommended Posts

Guest Shade

I just upgraded to gcc 4.2.0 and attempting to compile GemRB throws the following error:

cc1plus: warnings being treated as errors
Actions.cpp: In static member function 'static void GameScript::JoinParty(Scriptable*, Action*)':
Actions.cpp:2362: warning: deprecated conversion from string constant to 'char*'
make[3]: *** [Actions.lo] Error 1

 

I see two options. Either fix it and stop relying on nonportable hacks, or simply remove warning and/or pedantic flags from the compile line until it goes away.

Link to comment

Hey!

 

It wasn't a 'nonportable hack'. It was simply an omission of a 'const'.

While I don't deny there ARE gazillions of hacks in GemRB, and some might even be nonportable, a simple improvement in the pedantic level of a compiler is unforeseeable.

 

The difference between omission and hack is:

The hack is done knowingly and sometimes it is just a sacrifice of readability for performance.

The omission of the 'const' is simply because no one complained because of it :(

 

If that is the only problem you got with the new gcc, i'm very happy. It is somewhat strange as well, i'm sure i had more of these missing consts.

Link to comment

I forgot to say, if anyone got any more of those, just report it in this thread.

The pedantic flag was set with good reason, to find stuff like this.

 

I'm also aware that if i raise the warning level to 4 in MS Visual Studio, i'll get thousands of errors, but I consider linux/gcc the main platform.

 

So people, don't report warnings with level 4 in msvc :(

Link to comment
Guest Shade

Reducing the pedantry should reduce errors to warnings, this can be helpful to the end-user. :(

 

I'll assume you weren't aware that this particular case was a problem, so I take my statement regarding hacks back.

 

At the time of writing, the problem still occurs with a cvs upgrade. It's probably not synced yet.

 

I'll report any further problems regarding compiling here.

Link to comment
Guest Guest

At the time of writing, the problem still occurs with a cvs upgrade. It's probably not synced yet.

We migrated to svn months ago.

The svn service has no lag.

 

Got it.

There's one more occurance in GameControl.cpp

 

GameControl.cpp: In member function 'virtual void GameControl::OnKeyRelease(unsigned char, short unsigned int)':
GameControl.cpp:594: warning: deprecated conversion from string constant to 'char*'

Link to comment
Guest Shade

More:

Interface.cpp:4166: warning: deprecated conversion from string constant to 'char*'
Interface.cpp:4166: warning: deprecated conversion from string constant to 'char*'
Interface.cpp:4166: warning: deprecated conversion from string constant to 'char*'
Interface.cpp:4166: warning: deprecated conversion from string constant to 'char*'
Interface.cpp:4181: warning: deprecated conversion from string constant to 'char*'
Interface.cpp:4181: warning: deprecated conversion from string constant to 'char*'
Interface.cpp:4181: warning: deprecated conversion from string constant to 'char*'
Interface.cpp: In member function 'void Interface::LoadProgress(int)':
Interface.cpp:4275: warning: deprecated conversion from string constant to 'char*'

Link to comment
Guest Guest

Okay, as there were countless of these errors, I decided to fix them myself, rather than reporting them all here. Now I just need to figure out how to make a patch that excludes all the autoshit junk left over from the build process...

Link to comment
I forgot to say, if anyone got any more of those, just report it in this thread.

 

Why don't you stick this post ? (or make another one like "compilation warnings, come here please") ?

 

BTW, is CVS still updated, even if later than SVN ?

 

(this is just curiosity, I use SVN)

Link to comment

I forgot to say, if anyone got any more of those, just report it in this thread.

 

Why don't you stick this post ? (or make another one like "compilation warnings, come here please") ?

 

BTW, is CVS still updated, even if later than SVN ?

 

(this is just curiosity, I use SVN)

No, we migrated to SVN, the CVS remains at the state it was at the time of migration.

Which was around April.

Link to comment
Guest Drizzt

Hi,

I got a lot of that stuff with 0.3.0 and SVN HEAD (5130) for GUIScript.cpp:

GUIScript.cpp: In function ‘PyObject* GemRB_SetInfoTextColor(PyObject*, PyObject*)’:
GUIScript.cpp:297: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetGameString(PyObject*, PyObject*)’:
GUIScript.cpp:346: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_LoadGame(PyObject*, PyObject*)’:
GUIScript.cpp:374: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_MoveTAText(PyObject*, PyObject*)’:
GUIScript.cpp:413: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_RewindTA(PyObject*, PyObject*)’:
GUIScript.cpp:441: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetTAHistory(PyObject*, PyObject*)’:
GUIScript.cpp:463: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_StatComment(PyObject*, PyObject*)’:
GUIScript.cpp:487: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetString(PyObject*, PyObject*)’:
GUIScript.cpp:514: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_LoadWindowPack(PyObject*, PyObject*)’:
GUIScript.cpp:545: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_LoadWindow(PyObject*, PyObject*)’:
GUIScript.cpp:574: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetWindowSize(PyObject*, PyObject*)’:
GUIScript.cpp:604: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetWindowFrame(PyObject*, PyObject*)’:
GUIScript.cpp:629: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_LoadWindowFrame(PyObject*, PyObject*)’:
GUIScript.cpp:652: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_EnableCheatKeys(PyObject*, PyObject*)’:
GUIScript.cpp:703: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetWindowPicture(PyObject*, PyObject*)’:
GUIScript.cpp:722: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetWindowPos(PyObject*, PyObject*)’:
GUIScript.cpp:761: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_LoadTable(PyObject*, PyObject*)’:
GUIScript.cpp:819: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_UnloadTable(PyObject*, PyObject*)’:
GUIScript.cpp:838: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetTableValue(PyObject*, PyObject*)’:
GUIScript.cpp:862: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_FindTableValue(PyObject*, PyObject*)’:
GUIScript.cpp:943: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetTableRowIndex(PyObject*, PyObject*)’:
GUIScript.cpp:963: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetTableRowName(PyObject*, PyObject*)’:
GUIScript.cpp:984: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetTableColumnName(PyObject*, PyObject*)’:
GUIScript.cpp:1008: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetTableRowCount(PyObject*, PyObject*)’:
GUIScript.cpp:1032: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetTableColumnCount(PyObject*, PyObject*)’:
GUIScript.cpp:1053: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_LoadSymbol(PyObject*, PyObject*)’:
GUIScript.cpp:1073: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_UnloadSymbol(PyObject*, PyObject*)’:
GUIScript.cpp:1093: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetSymbolValue(PyObject*, PyObject*)’:
GUIScript.cpp:1115: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetControl(PyObject*, PyObject*)’:
GUIScript.cpp:1148: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_HasControl(PyObject*, PyObject*)’:
GUIScript.cpp:1169: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_QueryText(PyObject*, PyObject*)’:
GUIScript.cpp:1194: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetBufferLength(PyObject*, PyObject*)’:
GUIScript.cpp:1222: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetText(PyObject*, PyObject*)’:
GUIScript.cpp:1251: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_TextAreaAppend(PyObject*, PyObject*)’:
GUIScript.cpp:1305: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_TextAreaClear(PyObject*, PyObject*)’:
GUIScript.cpp:1367: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_TextAreaScroll(PyObject*, PyObject*)’:
GUIScript.cpp:1395: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetTooltip(PyObject*, PyObject*)’:
GUIScript.cpp:1423: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetVisible(PyObject*, PyObject*)’:
GUIScript.cpp:1473: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetMasterScript(PyObject*, PyObject*)’:
GUIScript.cpp:1499: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_ShowModal(PyObject*, PyObject*)’:
GUIScript.cpp:1518: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetTimedEvent(PyObject*, PyObject*)’:
GUIScript.cpp:1541: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetEvent(PyObject*, PyObject*)’:
GUIScript.cpp:1564: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetNextScript(PyObject*, PyObject*)’:
GUIScript.cpp:1590: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetControlStatus(PyObject*, PyObject*)’:
GUIScript.cpp:1610: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetVarAssoc(PyObject*, PyObject*)’:
GUIScript.cpp:1634: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_UnloadWindow(PyObject*, PyObject*)’:
GUIScript.cpp:1664: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_InvalidateWindow(PyObject*, PyObject*)’:
GUIScript.cpp:1689: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_CreateWindow(PyObject*, PyObject*)’:
GUIScript.cpp:1713: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_CreateLabelOnButton(PyObject*, PyObject*)’:
GUIScript.cpp:1734: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_CreateLabel(PyObject*, PyObject*)’:
GUIScript.cpp:1771: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetLabelTextColor(PyObject*, PyObject*)’:
GUIScript.cpp:1804: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_CreateTextEdit(PyObject*, PyObject*)’:
GUIScript.cpp:1830: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_CreateButton(PyObject*, PyObject*)’:
GUIScript.cpp:1870: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetButtonSprites(PyObject*, PyObject*)’:
GUIScript.cpp:1904: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetButtonOverlay(PyObject*, PyObject*)’:
GUIScript.cpp:1953: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetButtonBorder(PyObject*, PyObject*)’:
GUIScript.cpp:1982: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_EnableButtonBorder(PyObject*, PyObject*)’:
GUIScript.cpp:2007: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetButtonFont(PyObject*, PyObject*)’:
GUIScript.cpp:2032: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetButtonTextColor(PyObject*, PyObject*)’:
GUIScript.cpp:2055: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_DeleteControl(PyObject*, PyObject*)’:
GUIScript.cpp:2086: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_AdjustScrolling(PyObject*, PyObject*)’:
GUIScript.cpp:2112: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_CreateMovement(PyObject*, PyObject*)’:
GUIScript.cpp:2131: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetDestinationArea(PyObject*, PyObject*)’:
GUIScript.cpp:2156: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_CreateWorldMapControl(PyObject*, PyObject*)’:
GUIScript.cpp:2209: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetWorldMapTextColor(PyObject*, PyObject*)’:
GUIScript.cpp:2250: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_CreateMapControl(PyObject*, PyObject*)’:
GUIScript.cpp:2282: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp:2286: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetControlPos(PyObject*, PyObject*)’:
GUIScript.cpp:2358: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetControlSize(PyObject*, PyObject*)’:
GUIScript.cpp:2383: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetLabelUseRGB(PyObject*, PyObject*)’:
GUIScript.cpp:2407: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GameSetPartySize(PyObject*, PyObject*)’:
GUIScript.cpp:2430: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GameSetProtagonistMode(PyObject*, PyObject*)’:
GUIScript.cpp:2453: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GameSetExpansion(PyObject*, PyObject*)’:
GUIScript.cpp:2476: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GameSetScreenFlags(PyObject*, PyObject*)’:
GUIScript.cpp:2502: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GameControlSetScreenFlags(PyObject*, PyObject*)’:
GUIScript.cpp:2530: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GameControlSetTargetMode(PyObject*, PyObject*)’:
GUIScript.cpp:2560: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetButtonFlags(PyObject*, PyObject*)’:
GUIScript.cpp:2597: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetTextAreaFlags(PyObject*, PyObject*)’:
GUIScript.cpp:2629: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetButtonState(PyObject*, PyObject*)’:
GUIScript.cpp:2660: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetButtonPictureClipping(PyObject*, PyObject*)’:
GUIScript.cpp:2684: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetButtonPicture(PyObject*, PyObject*)’:
GUIScript.cpp:2711: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetButtonMOS(PyObject*, PyObject*)’:
GUIScript.cpp:2761: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetButtonPLT(PyObject*, PyObject*)’:
GUIScript.cpp:2820: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetButtonBAM(PyObject*, PyObject*)’:
GUIScript.cpp:2953: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetAnimation(PyObject*, PyObject*)’:
GUIScript.cpp:2974: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_PlaySound(PyObject*, PyObject*)’:
GUIScript.cpp:3018: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_LoadMusicPL(PyObject*, PyObject*)’:
GUIScript.cpp:3067: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetToken(PyObject*, PyObject*)’:
GUIScript.cpp:3110: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetVar(PyObject*, PyObject*)’:
GUIScript.cpp:3129: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetToken(PyObject*, PyObject*)’:
GUIScript.cpp:3161: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetVar(PyObject*, PyObject*)’:
GUIScript.cpp:3182: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_CheckVar(PyObject*, PyObject*)’:
GUIScript.cpp:3205: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetGlobal(PyObject*, PyObject*)’:
GUIScript.cpp:3237: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetGameVar(PyObject*, PyObject*)’:
GUIScript.cpp:3266: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_PlayMovie(PyObject*, PyObject*)’:
GUIScript.cpp:3286: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SaveCharacter(PyObject*, PyObject*)’:
GUIScript.cpp:3312: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SaveGame(PyObject*, PyObject*)’:
GUIScript.cpp:3339: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_DeleteSaveGame(PyObject*, PyObject*)’:
GUIScript.cpp:3369: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetSaveGameAttrib(PyObject*, PyObject*)’:
GUIScript.cpp:3425: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetSaveGamePortrait(PyObject*, PyObject*)’:
GUIScript.cpp:3465: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetSaveGamePreview(PyObject*, PyObject*)’:
GUIScript.cpp:3519: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetGamePreview(PyObject*, PyObject*)’:
GUIScript.cpp:3566: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetGamePortraitPreview(PyObject*, PyObject*)’:
GUIScript.cpp:3588: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_Roll(PyObject*, PyObject*)’:
GUIScript.cpp:3610: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetPortraits(PyObject*, PyObject*)’:
GUIScript.cpp:3625: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetCharSounds(PyObject*, PyObject*)’:
GUIScript.cpp:3643: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetCharacters(PyObject*, PyObject*)’:
GUIScript.cpp:3661: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GameSetReputation(PyObject*, PyObject*)’:
GUIScript.cpp:3712: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_IncreaseReputation(PyObject*, PyObject*)’:
GUIScript.cpp:3746: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GameSetPartyGold(PyObject*, PyObject*)’:
GUIScript.cpp:3793: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GameGetFormation(PyObject*, PyObject*)’:
GUIScript.cpp:3819: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GameSetFormation(PyObject*, PyObject*)’:
GUIScript.cpp:3841: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetJournalSize(PyObject*, PyObject*)’:
GUIScript.cpp:3866: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetJournalEntry(PyObject*, PyObject*)’:
GUIScript.cpp:3889: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GameIsBeastKnown(PyObject*, PyObject*)’:
GUIScript.cpp:3921: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetINIQuestsKey(PyObject*, PyObject*)’:
GUIScript.cpp:3949: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetINIBeastsKey(PyObject*, PyObject*)’:
GUIScript.cpp:3967: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetINIPartyKey(PyObject*, PyObject*)’:
GUIScript.cpp:3985: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_CreatePlayer(PyObject*, PyObject*)’:
GUIScript.cpp:4005: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetPlayerStates(PyObject*, PyObject*)’:
GUIScript.cpp:4044: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetPlayerName(PyObject*, PyObject*)’:
GUIScript.cpp:4067: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetPlayerName(PyObject*, PyObject*)’:
GUIScript.cpp:4091: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetPlayerSound(PyObject*, PyObject*)’:
GUIScript.cpp:4118: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetSlotType(PyObject*, PyObject*)’:
GUIScript.cpp:4145: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetPCStats(PyObject*, PyObject*)’:
GUIScript.cpp:4199: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GameSelectPC(PyObject*, PyObject*)’:
GUIScript.cpp:4286: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GameIsPCSelected(PyObject*, PyObject*)’:
GUIScript.cpp:4319: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GameSelectPCSingle(PyObject*, PyObject*)’:
GUIScript.cpp:4344: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GameGetSelectedPCSingle(PyObject*, PyObject*)’:
GUIScript.cpp:4362: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetPlayerPortrait(PyObject*, PyObject*)’:
GUIScript.cpp:4407: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetPlayerString(PyObject*, PyObject*)’:
GUIScript.cpp:4430: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetPlayerStat(PyObject*, PyObject*)’:
GUIScript.cpp:4447: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetPlayerStat(PyObject*, PyObject*)’:
GUIScript.cpp:4463: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetPlayerScript(PyObject*, PyObject*)’:
GUIScript.cpp:4484: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetPlayerScript(PyObject*, PyObject*)’:
GUIScript.cpp:4508: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_FillPlayerInfo(PyObject*, PyObject*)’:
GUIScript.cpp:4531: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetSpellIcon(PyObject*, PyObject*)’:
GUIScript.cpp:4649: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetItemIcon(PyObject*, PyObject*)’:
GUIScript.cpp:4771: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_EnterStore(PyObject*, PyObject*)’:
GUIScript.cpp:4791: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetContainer(PyObject*, PyObject*)’:
GUIScript.cpp:4840: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetContainerItem(PyObject*, PyObject*)’:
GUIScript.cpp:4886: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_ChangeContainerItem(PyObject*, PyObject*)’:
GUIScript.cpp:4941: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetStore(PyObject*, PyObject*)’:
GUIScript.cpp:5078: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_IsValidStoreItem(PyObject*, PyObject*)’:
GUIScript.cpp:5152: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetPurchasedAmount(PyObject*, PyObject*)’:
GUIScript.cpp:5211: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_ChangeStoreItem(PyObject*, PyObject*)’:
GUIScript.cpp:5251: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetStoreItem(PyObject*, PyObject*)’:
GUIScript.cpp:5369: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetStoreDrink(PyObject*, PyObject*)’:
GUIScript.cpp:5441: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetStoreCure(PyObject*, PyObject*)’:
GUIScript.cpp:5582: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_ExecuteString(PyObject*, PyObject*)’:
GUIScript.cpp:5611: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_RunEventHandler(PyObject*, PyObject*)’:
GUIScript.cpp:5638: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_EvaluateString(PyObject*, PyObject*)’:
GUIScript.cpp:5654: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_MoveToArea(PyObject*, PyObject*)’:
GUIScript.cpp:5707: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetMemorizableSpellsCount(PyObject*, PyObject*)’:
GUIScript.cpp:5743: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetMemorizableSpellsCount(PyObject*, PyObject*)’:
GUIScript.cpp:5767: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetKnownSpellsCount(PyObject*, PyObject*)’:
GUIScript.cpp:5794: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetKnownSpell(PyObject*, PyObject*)’:
GUIScript.cpp:5817: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetMemorizedSpellsCount(PyObject*, PyObject*)’:
GUIScript.cpp:5853: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetMemorizedSpell(PyObject*, PyObject*)’:
GUIScript.cpp:5880: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetSpell(PyObject*, PyObject*)’:
GUIScript.cpp:5913: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_LearnSpell(PyObject*, PyObject*)’:
GUIScript.cpp:5946: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_RemoveSpell(PyObject*, PyObject*)’:
GUIScript.cpp:5968: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_MemorizeSpell(PyObject*, PyObject*)’:
GUIScript.cpp:5996: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_UnmemorizeSpell(PyObject*, PyObject*)’:
GUIScript.cpp:6025: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetSlotItem(PyObject*, PyObject*)’:
GUIScript.cpp:6053: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_ChangeItemFlag(PyObject*, PyObject*)’:
GUIScript.cpp:6094: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_CanUseItemType(PyObject*, PyObject*)’:
GUIScript.cpp:6122: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetSlots(PyObject*, PyObject*)’:
GUIScript.cpp:6158: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetItem(PyObject*, PyObject*)’:
GUIScript.cpp:6215: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_DragItem(PyObject*, PyObject*)’:
GUIScript.cpp:6360: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_DropDraggedItem(PyObject*, PyObject*)’:
GUIScript.cpp:6432: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetSystemVariable(PyObject*, PyObject*)’:
GUIScript.cpp:6575: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_CreateItem(PyObject*, PyObject*)’:
GUIScript.cpp:6598: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetMapnote(PyObject*, PyObject*)’:
GUIScript.cpp:6636: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_CreateCreature(PyObject*, PyObject*)’:
GUIScript.cpp:6671: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_RevealArea(PyObject*, PyObject*)’:
GUIScript.cpp:6703: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_ExploreArea(PyObject*, PyObject*)’:
GUIScript.cpp:6730: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetRumour(PyObject*, PyObject*)’:
GUIScript.cpp:6757: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GamePause(PyObject*, PyObject*)’:
GUIScript.cpp:6776: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_CheckFeatCondition(PyObject*, PyObject*)’:
GUIScript.cpp:6816: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetAbilityBonus(PyObject*, PyObject*)’:
GUIScript.cpp:6872: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_LeaveParty(PyObject*, PyObject*)’:
GUIScript.cpp:6905: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetActionIcon(PyObject*, PyObject*)’:
GUIScript.cpp:7026: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_HasResource(PyObject*, PyObject*)’:
GUIScript.cpp:7046: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetupEquipmentIcons(PyObject*, PyObject*)’:
GUIScript.cpp:7067: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetupSpellIcons(PyObject*, PyObject*)’:
GUIScript.cpp:7167: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetupControls(PyObject*, PyObject*)’:
GUIScript.cpp:7290: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_ClearAction(PyObject*, PyObject*)’:
GUIScript.cpp:7519: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetDefaultActions(PyObject*, PyObject*)’:
GUIScript.cpp:7558: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetEquippedQuickSlot(PyObject*, PyObject*)’:
GUIScript.cpp:7576: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetEquippedQuickSlot(PyObject*, PyObject*)’:
GUIScript.cpp:7602: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_GetEquippedAmmunition(PyObject*, PyObject*)’:
GUIScript.cpp:7644: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetModalState(PyObject*, PyObject*)’:
GUIScript.cpp:7675: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SpellCast(PyObject*, PyObject*)’:
GUIScript.cpp:7703: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_UseItem(PyObject*, PyObject*)’:
GUIScript.cpp:7772: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetGamma(PyObject*, PyObject*)’:
GUIScript.cpp:7843: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetMouseScrollSpeed(PyObject*, PyObject*)’:
GUIScript.cpp:7865: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetTooltipDelay(PyObject*, PyObject*)’:
GUIScript.cpp:7883: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_SetFullScreen(PyObject*, PyObject*)’:
GUIScript.cpp:7901: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_RestParty(PyObject*, PyObject*)’:
GUIScript.cpp:7918: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_HasSpecialItem(PyObject*, PyObject*)’:
GUIScript.cpp:7939: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_HasSpecialSpell(PyObject*, PyObject*)’:
GUIScript.cpp:7982: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_ApplyEffect(PyObject*, PyObject*)’:
GUIScript.cpp:8030: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_CountEffects(PyObject*, PyObject*)’:
GUIScript.cpp:8076: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_ModifyEffect(PyObject*, PyObject*)’:
GUIScript.cpp:8104: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In function ‘PyObject* GemRB_DisplayString(PyObject*, PyObject*)’:
GUIScript.cpp:8170: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: At global scope:
GUIScript.cpp:8423: warning: deprecated conversion from string constant to ‘char*’
[This one is repeated quite often]
GUIScript.cpp: In function ‘void initGemRB()’:
GUIScript.cpp:8427: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp: In member function ‘virtual bool GUIScript::Init()’:
GUIScript.cpp:8481: warning: deprecated conversion from string constant to ‘char*’
GUIScript.cpp:8538: warning: deprecated conversion from string constant to ‘char*’
make[4]: *** [GUIScript.lo] Fehler 1
make[4]: Leaving directory `~/gemrb/gemrb+svn20080407/gemrb/plugins/GUIScript'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `~/gemrb/gemrb+svn20080407/gemrb/plugins'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `~/gemrb/gemrb+svn20080407/gemrb'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `~/gemrb/gemrb+svn20080407'
make: *** [all] Fehler 2

And as I had no time to look at the code yet, I just report it here.

 

Greetings,

Drizzt

 

P.S.: Would you appreciate a Debian package?

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...