dxx-rebirth/common/main
Kp edc3b93c9b Switch valptridx array_size error reporting to %lu
x86_64-w64-mingw32-g++ -Wformat handling misparses the std::size_t
format string, causing a spurious error.

    common/main/valptridx.tcc: In function 'void untyped_index_mismatch_exception::prepare_report(const char*, unsigned int, const void*, long int, const void*, const void*, char (&)[229], std::size_t)':
    common/main/valptridx.tcc:36:182: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'std::size_t {aka long long unsigned int}' [-Werror=format=]

This occurs even though the processed text uses %I64u (which is correct
for a `long long unsigned int`), not %u as shown in the error message.

    static void prepare_report(const char *const filename, const unsigned lineno, const void *const array_base, const long supplied_index, const void *const expected_pointer, const void *const actual_pointer, char (&buf)[report_buffer_size], const std::size_t array_size)
    {
	snprintf(buf, sizeof(buf), "%s:%u: " "pointer/index mismatch:" " base=%p size=%" "I64u" " index=%li expected=%p actual=%p", filename, lineno, array_base, array_size, supplied_index, expected_pointer, actual_pointer);
    }

In practice, all such sizes will fit in `unsigned int` because they are
the dimension of an array of large structures.  Switch all platforms to
use `unsigned long`, which works everywhere and is at least as big as
`unsigned int`.  Using `unsigned long` produces the same size as
`std::size_t` on all platforms other than Win64, where `unsigned long`
is only 32 bits due to the strange LLP64 model Microsoft picked.
2017-04-22 21:23:55 +00:00
..
ai.h Pass object &to boss_init_all_segments 2017-03-01 02:48:41 +00:00
aistruct.h
automap.h
bm.h
cli.cpp Fix check_header_includes=1 poison.h 2017-02-19 19:33:36 +00:00
cli.h
cmd.cpp
cmd.h
cntrlcen.h Move MAX_CONTROLCEN_LINKS into control_center_triggers 2017-03-18 18:07:37 +00:00
collide.h
config.h
controls.h
credits.h
cvar.cpp
cvar.h
d_enumerate.h
digi.h
effects.h
endlevel.h Pass canvas to render_endlevel_frame 2017-03-11 19:56:28 +00:00
escort.h
fireball.h Pass canvas to draw_fireball 2017-03-11 19:56:25 +00:00
fuelcen.h
fvi.h Avoid temporarily moving boss while probing layout 2017-03-01 02:48:40 +00:00
fwd-object.h Pass canvas to render_object 2017-03-11 19:56:27 +00:00
fwd-player.h
fwd-segment.h Use valptridx<wall>::magic_constant for wall_none 2017-03-04 22:25:54 +00:00
fwd-wall.h Use valptridx<wall>::magic_constant for wall_none 2017-03-04 22:25:54 +00:00
fwd-weapon.h
game.h Inline the sole use of MAX_FLICKERING_LIGHTS 2017-03-18 18:07:36 +00:00
gamefont.h Pass canvas to LINE_SPACING 2017-02-11 21:42:42 +00:00
gamemine.h Use unsigned for sides/verts in more places 2017-02-19 19:33:38 +00:00
gamepal.h
gamesave.h
gameseg.h Move compute_segment_center body to dcx 2017-02-22 03:05:44 +00:00
gameseq.h
gauges.h Pass canvas to draw_hud 2017-03-11 19:56:22 +00:00
hostage.h Pass canvas to draw_hostage 2017-03-11 19:56:26 +00:00
hudmsg.h Pass canvas to HUD_render_message_frame 2017-03-11 19:56:21 +00:00
inferno.h
kconfig.h
kmatrix.h
laser.h Pass canvas to Laser_render 2017-03-11 19:56:26 +00:00
lighting.h Pass object &to toggle_headlight_active 2017-04-22 21:23:55 +00:00
menu.h
mission.h
morph.h Pass canvas to draw_morph_object 2017-03-11 19:56:27 +00:00
multi.h Move _WIN32_WINNT setup to SConf 2017-04-22 21:23:55 +00:00
multibot.h
multiinternal.h
net_udp.h
newdemo.h
newmenu.h Pass canvas &to nm_draw_background 2017-04-08 16:48:20 +00:00
nvparse.h
object.h Separate hoard/proximity tracking 2017-03-18 18:07:36 +00:00
objnum.h
paging.h
physics.h
piggy.h
player-callsign.h
player-flags.h
player.h
playsave.h Add experimental MP-aware mouselook 2017-03-25 19:34:02 +00:00
polyobj.h Pass polymodel &to free_model 2017-02-19 19:33:44 +00:00
powerup.h Pass canvas to draw_powerup 2017-03-11 19:56:26 +00:00
render.h Pass canvas to render_mine 2017-03-10 01:22:28 +00:00
render_state.h
robot.h Play boss looping immediately on loading saved game 2017-02-26 10:21:10 +08:00
scores.h
screens.h
segiter.h
segment.h Make segment vertices unsigned 2017-02-19 19:33:37 +00:00
segpoint.h
slew.h
songs.h
sounds.h
state.h
switch.h
terrain.h Pass canvas to render_terrain 2017-03-11 19:56:26 +00:00
texmerge.h
text.h
textures.h
titles.h Move intro_played to dsx 2017-03-18 18:07:35 +00:00
valptridx.tcc Switch valptridx array_size error reporting to %lu 2017-04-22 21:23:55 +00:00
vclip.h Pass vclip to draw_vclip_object 2017-03-11 19:56:25 +00:00
vers_id.h
wall.h Fix check_header_includes=1 wall.h 2017-02-19 19:33:36 +00:00
weapon.h
weapon_id.h Reduce D1 spreadfire cost 2017-02-19 19:33:45 +00:00