Commit 7cf79111 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Fix shenanigans GCC11 is complaining about

parent e8462f43
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ namespace allpix {
            /**
             * @brief Erases the queue and release waiting threads on destruction
             */
            ~SafeQueue();
            ~SafeQueue() { invalidate(); };

            /**
             * @brief Get the top value from the appropriate queue
+0 −2
Original line number Diff line number Diff line
@@ -16,8 +16,6 @@ namespace allpix {
    ThreadPool::SafeQueue<T>::SafeQueue(unsigned int max_standard_size, unsigned max_priority_size)
        : max_standard_size_(max_standard_size), max_priority_size_(max_priority_size) {}

    template <typename T> ThreadPool::SafeQueue<T>::~SafeQueue<T>() { invalidate(); }

    /*
     * Block until a value is available if the wait parameter is set to true. The wait exits when the queue is invalidated.
     */
+1 −1
Original line number Diff line number Diff line
@@ -377,7 +377,7 @@ void GenericPropagationModule::create_output_plots(uint64_t event_num, OutputPlo
            for(auto& [deposit, points] : output_plot_points) {
                auto diff = static_cast<unsigned long>(
                    std::round((deposit.getGlobalTime() - start_time) / config_.get<long double>("output_plots_step")));
                if(static_cast<long>(plot_idx) - static_cast<long>(diff) < 0) {
                if(plot_idx < diff) {
                    min_idx_diff = std::min(min_idx_diff, diff - plot_idx);
                    continue;
                }