From 1194c2b59c1da2dce1db1425ff999440f0e67181 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Wed, 9 Jun 2021 12:16:27 +0200 Subject: [PATCH] Cleaned warnings --- src/main.c | 8 +++++--- src/scheduler.c | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index e6f3ecb..9b07e0a 100644 --- a/src/main.c +++ b/src/main.c @@ -52,7 +52,9 @@ int main(int argc, char **argv) arrowList->space = (int*) malloc(sizeof(int)*ARROW_NUMBER); arrowList->size = ARROW_NUMBER; - printf("globalPreemptionSpace: %p, size: %d\n", globalPreemptionSpace, globalDrawingSpace->size); - printf("globalDrawingSpace: %p, size: %d\n", globalDrawingSpace, globalDrawingSpace->size); - printf("arrowList: %p, size: %d\n", arrowList, arrowList->size); + printf("globalPreemptionSpace: %p, size: %lu\n", globalPreemptionSpace, globalDrawingSpace->size); + printf("globalDrawingSpace: %p, size: %lu\n", globalDrawingSpace, globalDrawingSpace->size); + printf("arrowList: %p, size: %lu\n", arrowList, arrowList->size); + + return 0; } diff --git a/src/scheduler.c b/src/scheduler.c index e69de29..784221b 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -0,0 +1,32 @@ +//=-------------------------------------------------------------------------=// +// Scheduler module // +// // +// Copyright © 2021 The Gem-graph Project // +// // +// This file is part of gem-graph. // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as // +// published by the Free Software Foundation, either version 3 of the // +// License, or (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +//=-------------------------------------------------------------------------=// + +#include +#include +#include +#include "../include/types.h" +#include "../include/localthread.h" + +int SchedInit(BoolArray_t *globalePreemptionSpace, IntArray_t *transitionsTree, + IntArray_t *arrowList, int nmaxThread, int nmaxCycles) +{ + return 0; +}