Changeset bfb9bf5


Ignore:
Timestamp:
Mar 14, 2022, 3:00:06 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
c7f2d9b
Parents:
884f3f67
Message:

Fixed some warnings

Location:
libcfa/src/concurrency
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/io/setup.cfa

    r884f3f67 rbfb9bf5  
    3939
    4040#else
     41#pragma GCC diagnostic push
     42#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
    4143        #include <errno.h>
    4244        #include <stdint.h>
     
    5961        #include "kernel_private.hfa"
    6062        #include "thread.hfa"
     63#pragma GCC diagnostic pop
    6164
    6265        void ?{}(io_context_params & this) {
  • libcfa/src/concurrency/kernel.cfa

    r884f3f67 rbfb9bf5  
    1919// #define __CFA_DEBUG_PRINT_RUNTIME_CORE__
    2020
     21#pragma GCC diagnostic push
     22#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
     23
    2124//C Includes
    2225#include <errno.h>
     
    2528#include <signal.h>
    2629#include <unistd.h>
     30
    2731extern "C" {
    2832        #include <sys/eventfd.h>
     
    4044#define __CFA_INVOKE_PRIVATE__
    4145#include "invoke.h"
     46#pragma GCC diagnostic pop
    4247
    4348#if !defined(__CFA_NO_STATISTICS__)
  • libcfa/src/concurrency/kernel/cluster.cfa

    r884f3f67 rbfb9bf5  
    354354                /* paranoid */ verifyf( ocount >= ncount, "Error in shrinking size calculation, %zu >= %zu", ocount, ncount );
    355355                /* paranoid */ verifyf( ncount == target * __shard_factor.readyq || ncount == __readyq_single_shard,
    356                 /* paranoid */          "Error in shrinking size calculation, expected %u or %u, got %zu", target * __shard_factor.readyq, ncount );
     356                /* paranoid */          "Error in shrinking size calculation, expected %u or %u, got %zu", target * __shard_factor.readyq, __readyq_single_shard, ncount );
    357357
    358358                readyQ.count = ncount;
  • libcfa/src/concurrency/kernel_private.hfa

    r884f3f67 rbfb9bf5  
    410410static struct {
    411411        const unsigned readyq;
    412 } __shard_factor = { 2 };
     412} __shard_factor __attribute__((unused)) = { 2 };
    413413
    414414// Local Variables: //
  • libcfa/src/concurrency/ready_queue.cfa

    r884f3f67 rbfb9bf5  
    186186// try to pop from a lane given by index w
    187187static inline struct thread$ * try_pop(struct cluster * cltr, unsigned w __STATS(, __stats_readyQ_pop_t & stats)) with (cltr->sched) {
    188         const size_t lanes_count = readyQ.count;
    189         /* paranoid */ verify( w < lanes_count );
     188        /* paranoid */ verify( w < readyQ.count );
    190189        __STATS( stats.attempt++; )
    191190
Note: See TracChangeset for help on using the changeset viewer.