Upgrade: allow for build on »Trixie« with GCC-14

* need to upgrade our custom packages to current standards
 * switch those packages from CDBS to dh
 * re-build on Trixie and upgrade the Lumiera DEB-Depot

After these (in detail quite expensive) preparations,
build with Scons and GCC-14 can be started.

Fix some further (basically trivial) compile problems,
uncovered by the improved type checking of modern compilers.

Note: a tremendous amount of warnings (and depreciations) is
also indicated, which will be addressed later....
This commit is contained in:
Fischlurch 2025-04-06 18:18:52 +02:00
parent 67fb61298a
commit 8fe2deed95
6 changed files with 3394 additions and 90 deletions

View file

@ -305,14 +305,15 @@ namespace lib {
class HeteroData
: public HeteroData<meta::Node<StorageFrame<0, DATA...>, meta::NullType>>
{
using _Front = HeteroData<meta::Node<StorageFrame<0, DATA...>, meta::NullType>>;
using _FrontBlock = HeteroData<meta::Node<StorageFrame<0, DATA...>, meta::NullType>>;
public:
using NewFrame = typename _Front::Frame;
using ChainType = _Front;
using NewFrame = typename _FrontBlock::Frame;
using ChainType = _FrontBlock;
using _FrontBlock::_FrontBlock;
template<typename...INIT>
static _Front
static HeteroData
build (INIT&& ...initArgs)
{
return {initArgs ...};

View file

@ -108,6 +108,7 @@
#include "lib/meta/value-type-binding.hpp"
#include <iterator>
#include <limits>
namespace util { // see lib/util.hpp

View file

@ -154,6 +154,9 @@ namespace timeline {
auto get_vadjustment() { return contentArea_.get_vadjustment(); }
auto get_hadjustment() { return contentArea_.get_hadjustment(); }
/** a way to get and possibly (re)compute the current TrackProfile */
using ProfileGetter = std::function<TrackProfile&()>;
protected: /* ==== Interface: CanvasHook ===== */
@ -169,9 +172,6 @@ namespace timeline {
void completeLayout (DisplayEvaluation&) override;
private:/* ===== Internals ===== */
/** a way to get and possibly (re)compute the current TrackProfile */
using ProfileGetter = std::function<TrackProfile&()>;
ProfileGetter getProfile;
TimelineCanvas& getCanvas(int yPos);

View file

@ -19,6 +19,7 @@
#include "alsa.h"
#include <err.h>
#include <alsa/asoundlib.h>
static snd_pcm_t* playback_handle = 0;

View file

@ -160,10 +160,11 @@ namespace test{
CHECK (t1 == "«tuple<uint, double, char>»──(42,1.61803,7)"_expect ); // ...while the other one was picked by value => t1 unchanged
// function may return references....
auto refr = [](auto&& v) -> decltype(auto) { return v; };
int five = 5;
auto refr = [](auto& v) -> decltype(auto) { return v; };
int five{5};
int& fiveR{five};
CHECK (TYPE (refr(five)) == "int&"_expect);
CHECK (TYPE (refr(5 )) == "int&"_expect);
CHECK (TYPE (refr(fiveR)) == "int&"_expect);
auto t2r = mapEach (t2, refr);
CHECK (t2r == "«tuple<char&, char&>»──(6,6)"_expect ); // function yields references, which are placed into res-tuple

File diff suppressed because it is too large Load diff