src/client/renderer/r_image.cpp: In function ‘image_t* R_LoadImageData(const char*, const byte*, int, int, imagetype_t)’: src/client/renderer/r_image.cpp:500:38: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const unsigned int*’ increases required alignment of target type [-Wcast-align] R_UploadTexture((const unsigned* ) pic, width, height, image); ^ src/client/renderer/r_main.cpp: In function ‘void R_RenderFrame()’: src/client/renderer/r_main.cpp:310:44: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); ^ src/client/renderer/r_main.cpp:423:44: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); ^ n file included from src/client/renderer/../../common/../shared/byte.h:30:0, from src/client/renderer/../../common/common.h:29, from src/client/renderer/r_local.h:28, from src/client/renderer/r_model_alias.cpp:26: src/client/renderer/r_model_alias.cpp: In function ‘bool R_ModLoadMDX(model_t*)’: src/client/renderer/r_model_alias.cpp:256:37: warning: cast from ‘byte* {aka unsigned char*}’ to ‘uint32_t* {aka unsigned int*}’ increases required alignment of target type [-Wcast-align] version = LittleLong(*(uint32_t*) buffer); ^ /usr/include/SDL2/SDL_endian.h:212:26: note: in definition of macro ‘SDL_SwapLE32’ #define SDL_SwapLE32(X) (X) ^ src/client/renderer/r_model_alias.cpp:256:13: note: in expansion of macro ‘LittleLong’ version = LittleLong(*(uint32_t*) buffer); ^ src/client/renderer/r_model_alias.cpp:264:29: warning: cast from ‘byte* {aka unsigned char*}’ to ‘const int32_t* {aka const int*}’ increases required alignment of target type [-Wcast-align] intbuf = (const int32_t*) buffer; ^ src/client/renderer/r_model_brush.cpp: In function ‘void R_ModLoadVertexes(const lump_t*)’: src/client/renderer/r_model_brush.cpp:69:71: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const dBspVertex_t*’ increases required alignment of target type [-Wcast-align] const dBspVertex_t* in = (const dBspVertex_t*) (mod_base + l->fileofs); ^ src/client/renderer/r_model_brush.cpp: In function ‘void R_ModLoadNormals(const lump_t*)’: src/client/renderer/r_model_brush.cpp:89:70: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const dBspNormal_t*’ increases required alignment of target type [-Wcast-align] const dBspNormal_t* in = (const dBspNormal_t*)(mod_base + l->fileofs); ^ src/client/renderer/r_model_brush.cpp: In function ‘void R_ModLoadSubmodels(const lump_t*)’: src/client/renderer/r_model_brush.cpp:126:69: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const dBspModel_t*’ increases required alignment of target type [-Wcast-align] const dBspModel_t* in = (const dBspModel_t*) (mod_base + l->fileofs); ^ src/client/renderer/r_model_brush.cpp: In function ‘void R_ModLoadEdges(const lump_t*)’: src/client/renderer/r_model_brush.cpp:153:67: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const dBspEdge_t*’ increases required alignment of target type [-Wcast-align] const dBspEdge_t* in = (const dBspEdge_t*) (mod_base + l->fileofs); ^ src/client/renderer/r_model_brush.cpp: In function ‘void R_ModLoadTexinfo(const char*, const lump_t*)’: src/client/renderer/r_model_brush.cpp:175:73: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const dBspTexinfo_t* {aka const texinfo_s*}’ increases required alignment of target type [-Wcast-align] const dBspTexinfo_t* in = (const dBspTexinfo_t*) (mod_base + l->fileofs); ^ src/client/renderer/r_model_brush.cpp: In function ‘void R_ModLoadSurfaces(bool, const lump_t*)’: src/client/renderer/r_model_brush.cpp:271:73: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const dBspSurface_t*’ increases required alignment of target type [-Wcast-align] const dBspSurface_t* in = (const dBspSurface_t*) (mod_base + l->fileofs); ^ src/client/renderer/r_model_brush.cpp: In function ‘void R_ModLoadNodes(const lump_t*)’: src/client/renderer/r_model_brush.cpp:340:67: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const dBspNode_t*’ increases required alignment of target type [-Wcast-align] const dBspNode_t* in = (const dBspNode_t*) (mod_base + l->fileofs); ^ src/client/renderer/r_model_brush.cpp: In function ‘void R_ModLoadLeafs(const lump_t*)’: src/client/renderer/r_model_brush.cpp:394:67: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const dBspLeaf_t*’ increases required alignment of target type [-Wcast-align] const dBspLeaf_t* in = (const dBspLeaf_t*) (mod_base + l->fileofs); ^ src/client/renderer/r_model_brush.cpp: In function ‘void R_ModLoadSurfedges(const lump_t*)’: src/client/renderer/r_model_brush.cpp:416:53: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const int*’ increases required alignment of target type [-Wcast-align] const int* in = (const int*) (mod_base + l->fileofs); ^ src/client/renderer/r_model_brush.cpp: In function ‘void R_ModLoadPlanes(const lump_t*)’: src/client/renderer/r_model_brush.cpp:439:69: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const dBspPlane_t*’ increases required alignment of target type [-Wcast-align] const dBspPlane_t* in = (const dBspPlane_t*) (mod_base + l->fileofs); ^ src/client/renderer/r_model_brush.cpp: In function ‘void R_ModAddMapTile(const char*, const char*, bool, int, int, int)’: src/client/renderer/r_model_brush.cpp:1034:27: warning: cast from ‘byte* {aka unsigned char*}’ to ‘dBspHeader_t*’ increases required alignment of target type [-Wcast-align] header = (dBspHeader_t*) buffer; ^ In file included from src/client/renderer/../../common/../shared/byte.h:30:0, from src/client/renderer/../../common/common.h:29, from src/client/renderer/r_local.h:28, from src/client/renderer/r_model.cpp:26: src/client/renderer/r_model.cpp: In function ‘void R_LoadModelAsync(model_t*, byte*, int)’: src/client/renderer/r_model.cpp:111:35: warning: cast from ‘byte* {aka unsigned char*}’ to ‘unsigned int*’ increases required alignment of target type [-Wcast-align] switch (LittleLong(*(unsigned* ) buf)) { ^ /usr/include/SDL2/SDL_endian.h:212:26: note: in definition of macro ‘SDL_SwapLE32’ #define SDL_SwapLE32(X) (X) ^ src/client/renderer/r_model.cpp:111:10: note: in expansion of macro ‘LittleLong’ switch (LittleLong(*(unsigned* ) buf)) { ^ ===> CXX [ufo] src/client/renderer/r_model_md3.cpp src/client/renderer/r_model_md2.cpp: In function ‘void R_ModLoadTags(model_t*, void*, int)’: src/client/renderer/r_model_md2.cpp:60:60: warning: cast from ‘byte* {aka unsigned char*}’ to ‘float*’ increases required alignment of target type [-Wcast-align] float* inmat = (float*) ((byte*) pintag + pheader.ofs_tags); ^ ===> CXX [ufo] src/client/renderer/r_model_obj.cpp src/client/renderer/r_model_md3.cpp: In function ‘void R_ModLoadAliasMD3Model(model_t*, byte*, int)’: src/client/renderer/r_model_md3.cpp:40:31: warning: cast from ‘byte* {aka unsigned char*}’ to ‘dmd3_t*’ increases required alignment of target type [-Wcast-align] const dmd3_t* md3 = (dmd3_t*)buffer; ^ ===> CXX [ufo] src/client/renderer/r_particle.cpp src/client/renderer/r_model_md3.cpp:70:99: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const dmd3frame_t*’ increases required alignment of target type [-Wcast-align] const dmd3frame_t* pinframe = (const dmd3frame_t*)((const byte*)md3 + LittleLong(md3->ofs_frames)); ^ src/client/renderer/r_model_md3.cpp:91:92: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const dmd3tag_t*’ increases required alignment of target type [-Wcast-align] const dmd3tag_t* pintag = (const dmd3tag_t*)((const byte*)md3 + LittleLong(md3->ofs_tags)); ^ src/client/renderer/r_model_md3.cpp:110:96: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const dmd3mesh_t*’ increases required alignment of target type [-Wcast-align] const dmd3mesh_t* pinmesh = (const dmd3mesh_t*)((const byte*)md3 + LittleLong(md3->ofs_meshes)); ^ src/client/renderer/r_model_md3.cpp:141:104: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const dmd3skin_t*’ increases required alignment of target type [-Wcast-align] const dmd3skin_t* pinskin = (const dmd3skin_t*)((const byte*)pinmesh + LittleLong(pinmesh->ofs_skins)); ^ src/client/renderer/r_model_md2.cpp: In function ‘void R_ModLoadAliasMD2MeshUnindexed(model_t*, const dMD2Model_t*, int, bool)’: src/client/renderer/r_model_md2.cpp:171:81: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const dMD2Triangle_t*’ increases required alignment of target type [-Wcast-align] pintri = (const dMD2Triangle_t*) ((const byte*) md2 + LittleLong(md2->ofs_tris)); ^ src/client/renderer/r_model_md2.cpp:172:78: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const dMD2Coord_t*’ increases required alignment of target type [-Wcast-align] pincoord = (const dMD2Coord_t*) ((const byte*) md2 + LittleLong(md2->ofs_st)); ^ src/client/renderer/r_model_md3.cpp:151:98: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const int32_t* {aka const int*}’ increases required alignment of target type [-Wcast-align] const int32_t* pinindex = (const int32_t*)((const byte*)pinmesh + LittleLong(pinmesh->ofs_tris)); ^ src/client/renderer/r_model_md3.cpp:161:105: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const dmd3coord_t*’ increases required alignment of target type [-Wcast-align] const dmd3coord_t* pincoord = (const dmd3coord_t*)((const byte*)pinmesh + LittleLong(pinmesh->ofs_tcs)); ^ src/client/renderer/r_model_md3.cpp:170:108: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const dmd3vertex_t*’ increases required alignment of target type [-Wcast-align] const dmd3vertex_t* pinvert = (const dmd3vertex_t*)((const byte*)pinmesh + LittleLong(pinmesh->ofs_verts)); ^ src/client/renderer/r_model_md3.cpp:195:85: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const dmd3mesh_t*’ increases required alignment of target type [-Wcast-align] pinmesh = (const dmd3mesh_t*)((const byte*)pinmesh + LittleLong(pinmesh->meshsize)); ^ src/client/renderer/r_model_md2.cpp:241:118: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const dMD2Frame_t* {aka const dAliasFrame_s*}’ increases required alignment of target type [-Wcast-align] const dMD2Frame_t* pinframe = (const dMD2Frame_t*) ((const byte*) md2 + LittleLong(md2->ofs_frames) + i * frameSize); ^ src/client/renderer/r_model_md2.cpp: In function ‘void R_ModLoadAliasMD2MeshIndexed(model_t*, const dMD2Model_t*, int)’: src/client/renderer/r_model_md2.cpp:342:81: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const dMD2Triangle_t*’ increases required alignment of target type [-Wcast-align] pintri = (const dMD2Triangle_t*) ((const byte*) md2 + LittleLong(md2->ofs_tris)); ^ src/client/renderer/r_model_md2.cpp:343:78: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const dMD2Coord_t*’ increases required alignment of target type [-Wcast-align] pincoord = (const dMD2Coord_t*) ((const byte*) md2 + LittleLong(md2->ofs_st)); ^ src/client/renderer/r_model_md2.cpp:376:118: warning: cast from ‘const byte* {aka const unsigned char*}’ to ‘const dMD2Frame_t* {aka const dAliasFrame_s*}’ increases required alignment of target type [-Wcast-align] const dMD2Frame_t* pinframe = (const dMD2Frame_t*) ((const byte*) md2 + LittleLong(md2->ofs_frames) + i * frameSize); ^ src/client/renderer/r_model_md2.cpp: In function ‘void R_ModLoadLevelOfDetailData(model_t*, bool)’: src/client/renderer/r_model_md2.cpp:473:31: warning: cast from ‘byte* {aka unsigned char*}’ to ‘const dMD2Model_t*’ increases required alignment of target type [-Wcast-align] md2 = (const dMD2Model_t*) buf; ^ src/client/renderer/r_model_md2.cpp: In function ‘void R_ModLoadAliasMD2Model(model_t*, byte*, int, bool)’: src/client/renderer/r_model_md2.cpp:492:23: warning: cast from ‘byte* {aka unsigned char*}’ to ‘dMD2Model_t*’ increases required alignment of target type [-Wcast-align] md2 = (dMD2Model_t*) buffer; ^