[En-Nut-Discussion] [RESENT] Nutdisc: cast from DISCOVERY_TELE* to int loses precision

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Wed May 30 12:25:18 CEST 2012


on my Opensuse 12.1 X86-64 system, compilation aborts in nutdisc with 

udpthread.cpp: In member function ‘virtual void* CUdpThread::Entry()’:
udpthread.cpp:155:35: error: cast from ‘DISCOVERY_TELE*’ to ‘int’\
 loses precision [-fpermissive]
make[2]: *** [nutdisc-udpthread.o] Fehler 1

By adding -fpermissev as below, things compile. Is this the right solution
or has anybody a better fix?

Thanks
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Index: src/Makefile.am
===================================================================
--- src/Makefile.am     (Revision 4172)
+++ src/Makefile.am     (Arbeitskopie)
@@ -10,7 +10,7 @@
 if BUILD_NUTDISC
 
 AM_CPPFLAGS = \
-       $(WX_CXXFLAGS) \
+       $(WX_CXXFLAGS) -fpermissive \
        -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
        -DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
        -DPACKAGE_DATA_DIR=\""$(datadir)"\" $(NUTDISC_CFLAGS)
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion



More information about the En-Nut-Discussion mailing list