dxx-rebirth/similar
Kp da268c6d21 Preprocess out glmprintf in normal builds
Using sizeof(con_printf A) was a trick to avoid code generation, but it
interacts badly with gcc-6 and the other macros that con_printf
produces.  On >=gcc-6, `DXX_ALWAYS_ERROR_FUNCTION` is a complicated hack
to work around undesirable changes in `__builtin_constant_p`.  That hack
includes introducing a dummy type.  gcc-6 rejects declaring a type
inside a statement expression inside a sizeof.  gcc-7 permits this, so
it went unnoticed.

This particular usage was to prevent future regressions in calls that
had been broken for years without anyone noticing.  As such, reverting
to not checking those calls is unlikely to matter.

Reported-by: Ambaire <https://github.com/dxx-rebirth/dxx-rebirth/issues/393#issuecomment-401565872>
Fixes: 9b17450914 ("Fix up long broken glmprintf support")
2018-06-30 21:53:55 +00:00
..
2d Allow longer mission titles in New Game dialog 2018-06-27 03:34:34 +00:00
3d
arch Preprocess out glmprintf in normal builds 2018-06-30 21:53:55 +00:00
editor Eliminate some uses of valptridx::operator-> 2018-06-24 05:06:15 +00:00
main Fix gauges.cpp for gcc-5 2018-06-30 21:53:55 +00:00
misc