mirror of
https://github.com/OpenEtherCATsociety/SOEM.git
synced 2026-09-26 03:24:21 +08:00
Enable and fix warnings (#123)
* cleanup CMakeLists.txt * build with more warnings, warnings as errors * fix expression has no effect warning * fix unused parameter warnings * fix loss of precision warning * remove obsolete files
This commit is contained in:
committed by
nakarlsson
parent
0ece3165a0
commit
da7d55e893
@@ -1,3 +0,0 @@
|
||||
|
||||
LIBNAME = osal
|
||||
include $(PRJ_ROOT)/make/lib.mk
|
||||
Regular → Executable
+2
-1
@@ -25,12 +25,13 @@ int osal_gettimeofday(struct timeval *tv, struct timezone *tz)
|
||||
{
|
||||
struct timespec ts;
|
||||
int return_value;
|
||||
(void)tz; /* Not used */
|
||||
|
||||
/* Use clock_gettime to prevent possible live-lock.
|
||||
* Gettimeofday uses CLOCK_REALTIME that can get NTP timeadjust.
|
||||
* If this function preempts timeadjust and it uses vpage it live-locks.
|
||||
* Also when using XENOMAI, only clock_gettime is RT safe */
|
||||
return_value = clock_gettime(CLOCK_MONOTONIC, &ts), 0;
|
||||
return_value = clock_gettime(CLOCK_MONOTONIC, &ts);
|
||||
tv->tv_sec = ts.tv_sec;
|
||||
tv->tv_usec = ts.tv_nsec / 1000;
|
||||
return return_value;
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
LIBNAME = osal
|
||||
include $(PRJ_ROOT)/make/lib.mk
|
||||
@@ -1,21 +0,0 @@
|
||||
#******************************************************************************
|
||||
# * *** ***
|
||||
# *** *** ***
|
||||
# *** **** ********** *** ***** *** **** *****
|
||||
# ********* ********** *** ********* ************ *********
|
||||
# **** *** *** *** *** **** ***
|
||||
# *** *** ****** *** *********** *** **** *****
|
||||
# *** *** ****** *** ************* *** **** *****
|
||||
# *** **** **** *** *** *** **** ***
|
||||
# *** ******* ***** ************** ************* *********
|
||||
# *** ***** *** ******* ** ** ****** *****
|
||||
# t h e r e a l t i m e t a r g e t e x p e r t s
|
||||
#
|
||||
# http://www.rt-labs.com
|
||||
# Copyright (C) 2009. rt-labs AB, Sweden. All rights reserved.
|
||||
#------------------------------------------------------------------------------
|
||||
# $Id: Makefile 262 2012-08-14 06:14:07Z rtlaka $
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
LIBNAME = osal
|
||||
include $(PRJ_ROOT)/make/lib.mk
|
||||
Reference in New Issue
Block a user