mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-24 02:53:57 +08:00
Avoided use of AM_CFLAGS, which is not used in some situations; fixed warning.
This commit is contained in:
@@ -27,12 +27,10 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
AM_CFLAGS = -Wall
|
||||
|
||||
noinst_PROGRAMS = ec_dc_user_example
|
||||
|
||||
ec_dc_user_example_SOURCES = main.c
|
||||
ec_dc_user_example_CFLAGS = -I$(top_srcdir)/include
|
||||
ec_dc_user_example_CFLAGS = -I$(top_srcdir)/include -Wall
|
||||
ec_dc_user_example_LDFLAGS = -L$(top_builddir)/lib/.libs -lethercat -lrt
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@@ -27,12 +27,10 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
AM_CFLAGS = -Wall
|
||||
|
||||
noinst_PROGRAMS = ec_user_example
|
||||
|
||||
ec_user_example_SOURCES = main.c
|
||||
ec_user_example_CFLAGS = -I$(top_srcdir)/include
|
||||
ec_user_example_CFLAGS = -I$(top_srcdir)/include -Wall
|
||||
ec_user_example_LDFLAGS = -L$(top_builddir)/lib/.libs -lethercat
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@@ -255,8 +255,6 @@ void read_sdo(void)
|
||||
|
||||
void cyclic_task()
|
||||
{
|
||||
int i;
|
||||
|
||||
// receive process data
|
||||
ecrt_master_receive(master);
|
||||
ecrt_domain_process(domain1);
|
||||
|
||||
+1
-3
@@ -28,14 +28,12 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
AM_CFLAGS = -Wall
|
||||
|
||||
lib_LTLIBRARIES = libethercat.la
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
libethercat_la_CFLAGS = -I$(srcdir)/.. -fno-strict-aliasing -Wall
|
||||
libethercat_la_LDFLAGS = -version-info 1:0:0
|
||||
libethercat_la_CFLAGS = -I$(srcdir)/.. -fno-strict-aliasing
|
||||
libethercat_la_SOURCES = \
|
||||
common.c \
|
||||
domain.c \
|
||||
|
||||
Reference in New Issue
Block a user