diff --git a/code/CMakeModules/nel.cmake b/code/CMakeModules/nel.cmake index 3c80758bf..ad57d6a42 100644 --- a/code/CMakeModules/nel.cmake +++ b/code/CMakeModules/nel.cmake @@ -881,14 +881,14 @@ MACRO(NL_SETUP_BUILD) ENDIF() IF(WITH_WARNINGS) - ADD_PLATFORM_FLAGS("-Wall -W") + ADD_PLATFORM_FLAGS("-Wall") ELSE() # Check wrong formats in printf-like functions ADD_PLATFORM_FLAGS("-Wformat -Werror=format-security") ENDIF() # never display these warnings because they are minor - ADD_PLATFORM_FLAGS("-Wno-unused-parameter") + ADD_PLATFORM_FLAGS("-Wno-unused-parameter -Wno-unused-private-field -Wno-unused-local-typedef -Wno-unused-variable") IF(ANDROID) ADD_PLATFORM_FLAGS("--sysroot=${PLATFORM_ROOT}") diff --git a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp index 9514d938f..171214384 100644 --- a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp +++ b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp @@ -501,8 +501,11 @@ bool CDriverGL::unInit() // restore default X errors handler XSetErrorHandler(NULL); - XCloseDisplay(_dpy); - _dpy = NULL; + if (_dpy) + { + XCloseDisplay(_dpy); + _dpy = NULL; + } #endif // NL_OS_UNIX diff --git a/code/nel/tools/3d/plugin_max/nel_mesh_lib/export_skinning.cpp b/code/nel/tools/3d/plugin_max/nel_mesh_lib/export_skinning.cpp index cf084901d..d5030ee9d 100644 --- a/code/nel/tools/3d/plugin_max/nel_mesh_lib/export_skinning.cpp +++ b/code/nel/tools/3d/plugin_max/nel_mesh_lib/export_skinning.cpp @@ -724,7 +724,7 @@ uint CExportNel::buildSkinning (CMesh::CMeshBuild& buildMesh, const TInodePtrInt nlassert (node); // Insert in the map - weightMap.insert (std::map::value_type (1, node)); + weightMap.insert (std::map::value_type (1.f, node)); } } diff --git a/code/nel/tools/3d/plugin_max/nel_patch_edit/np.cpp b/code/nel/tools/3d/plugin_max/nel_patch_edit/np.cpp index 980bb64d8..2d1fbd707 100644 --- a/code/nel/tools/3d/plugin_max/nel_patch_edit/np.cpp +++ b/code/nel/tools/3d/plugin_max/nel_patch_edit/np.cpp @@ -589,10 +589,10 @@ void EditPatchMod::UpdateSelectDisplay() for (j = 0; j < thePatch->tileSel.GetSize(); j++) if (thePatch->tileSel[j]) break; - buf.printf("Tile %d Selected", j + 1); + buf.printf(_T("Tile %d Selected"), j + 1); } else - buf.printf("%d Tiles Selected", num); + buf.printf(_T("%d Tiles Selected"), num); } break; } @@ -733,7 +733,7 @@ void EditPatchMod::DoVertReset () } ResolveTopoChanges(); - theHold.Accept("Reset Vertex"); + theHold.Accept(_M("Reset Vertex")); /*if (holdNeeded) { ResolveTopoChanges(); diff --git a/code/nel/tools/3d/plugin_max/nel_patch_edit/np_epm_tess.cpp b/code/nel/tools/3d/plugin_max/nel_patch_edit/np_epm_tess.cpp index 0823afbd4..9cfe2ff95 100644 --- a/code/nel/tools/3d/plugin_max/nel_patch_edit/np_epm_tess.cpp +++ b/code/nel/tools/3d/plugin_max/nel_patch_edit/np_epm_tess.cpp @@ -223,7 +223,7 @@ BOOL CALLBACK PatchObjSurfDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM ep =(EditPatchMod *)lParam; ep->hSurfPanel = hDlg; - SetWindowLongPtr(hDlg, GWLP_USERDATA, (LONG)ep); + SetWindowLongPtr(hDlg, GWLP_USERDATA, (LONG_PTR)ep); if (!ep->settingViewportTess && ep->settingDisp && ep->GetProdTess().type == TESS_SET) ep->settingDisp = FALSE; TessApprox t; diff --git a/code/nel/tools/3d/plugin_max/nel_patch_paint/DllEntry.cpp b/code/nel/tools/3d/plugin_max/nel_patch_paint/DllEntry.cpp index 7afde8938..549c033ae 100644 --- a/code/nel/tools/3d/plugin_max/nel_patch_paint/DllEntry.cpp +++ b/code/nel/tools/3d/plugin_max/nel_patch_paint/DllEntry.cpp @@ -64,7 +64,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,ULONG fdwReason,LPVOID lpvReserved) __declspec( dllexport ) const TCHAR * LibDescription() { - return "NeL patch painter"; + return _T("NeL patch painter"); } diff --git a/code/ryzom/client/src/character_cl.cpp b/code/ryzom/client/src/character_cl.cpp index c66b80576..3698ea80d 100644 --- a/code/ryzom/client/src/character_cl.cpp +++ b/code/ryzom/client/src/character_cl.cpp @@ -8852,7 +8852,7 @@ void CCharacterCL::animIndex(TAnimationType channel, CAnimation::TAnimId index) else { // Check the AnimSet needed to get the animation Id. - CHECK(_CurrentAnimSet[channel]); + CHECK(_CurrentAnimSet[channel] != NULL); // Get the Pointer on the animation state, if Null, return empty const CAnimationState *animStatePtr = _CurrentAnimSet[channel]->getAnimationState( (animState(channel)==CAnimationStateSheet::Emote)?_SubStateKey:animState(channel)); if(animStatePtr == 0) diff --git a/code/ryzom/client/src/r2/instance_map_deco.cpp b/code/ryzom/client/src/r2/instance_map_deco.cpp index fc5fe314b..add9e36c6 100644 --- a/code/ryzom/client/src/r2/instance_map_deco.cpp +++ b/code/ryzom/client/src/r2/instance_map_deco.cpp @@ -386,7 +386,7 @@ void CInstanceMapDeco::onUpdate(CGroupMap &groupMap) } float size = CV_MapEntityFarArrowSize.get(); // TMP TMP - size = size; +// size = size; float bias = 1.f; dir.normalize(); CVector2f winInter; diff --git a/dist/snap/readme.txt b/dist/snap/readme.txt new file mode 100644 index 000000000..a2585a914 --- /dev/null +++ b/dist/snap/readme.txt @@ -0,0 +1,5 @@ +- to install snapcraft : sudo apt-get install snapcraft snapd +- to generate snap : snapcraft +- to clean build directory : snapcraft clean ryzom --step build +- to install a .snap : sudo snap install --dangerous +- to uninstall an installed .snap : sudo snap remove ryzom