Opened 5 years ago

Closed 5 years ago

#4701 closed defect (fixed)

Compiler warning

Reported by: gabberhead Owned by:
Priority: Please fill in Component: ! Please select...
Severity: Please fill in Keywords:
Cc: Sensitive: no

Description

Revision

First Seen today. But can be few revisions earlier

Issue Description

It gives a Compiler warning, but compiles fine. I build native for debian. And on debian with toolchains for arm, mipsel and sh4. But the warning i get only for mipsel.

When the issue occurs

Always

[ 80%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_smargo.o
[ 81%] Building C object csctapi/CMakeFiles/csctapi.dir/atr.o
/home/gabberhead/oscam-mipsel/csctapi/atr.c:46:23: warning: 'atr_i_table' defined but not used [-Wunused-const-variable=]

static const uint32_t atr_i_table[4] = {25, 50, 100, 0};


/home/gabberhead/oscam-mipsel/csctapi/atr.c:33:23: warning: 'atr_num_ib_table' defined but not used [-Wunused-const-variable=]

static const uint32_t atr_num_ib_table[16] = {0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4};

~

Linking C static library libcsctapi.a
[ 81%] Built target csctapi

Change History (2)

comment:1 by Opti, 5 years ago

I use Debian and here no warnings with the mipsel-toolchain.

    ___  ____   ___
   / _ \/ ___| / __|__ _ _ __ ___
  | | | \___ \| |  / _` | '_ ` _ \ 
  | |_| |___) | |_| (_| | | | | | |
   \___/|____/ \___\__,_|_| |_| |_|
   
+-------------------------------------------------------------------------------
| OSCam ver: 1.20_svn rev: 11447 target: mipsel-unknown-linux-gnu-ssl-libusb
| Tools:
|  CROSS    = /opt/s3/support/toolchains/mipsel/bin/mipsel-unknown-linux-gnu-
|  CC       = /opt/s3/support/toolchains/mipsel/bin/mipsel-unknown-linux-gnu-gcc
| Settings:
|  CONF_DIR = /var/tuxbox/config
|  CC_OPTS  = -Os -ggdb -pipe -ffunction-sections -fdata-sections -finline-functions -fno-short-enums -freg-struct-return
|  CC_WARN  = -W -Wall -Wshadow -Wredundant-decls -Wstrict-prototypes -Wold-style-definition
|  CFLAGS   = -DWITH_SSL=1 -DWITH_LIBCRYPTO=1 -DWITH_LIBUSB=1 -DWITH_UTF8=1 -DWITH_UTF8
|  LDFLAGS  = -Wl,--gc-sections -DWITH_SSL=1 -DWITH_LIBCRYPTO=1 -DWITH_LIBUSB=1 -DWITH_UTF8=1 -DWITH_UTF8
|  LIBS     = -lssl -lcrypto -lusb-1.0 -lrt -lm -lpthread -ldl
|  UseFlags = USE_SSL=1 USE_LIBCRYPTO=1 USE_LIBUSB=1 USE_UTF8=1
| Config:
|  Addons   : WEBIF WEBIF_LIVELOG WEBIF_JQUERY TOUCH WITH_SSL HAVE_DVBAPI READ_SDT_CHARSETS IRDETO_GUESSING CS_ANTICASC WITH_DEBUG MODULE_MONITOR WITH_LB CS_CACHEEX CW_CYCLE_CHECK
|  Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM CCCSHARE GBOX RADEGAST SCAM SERIAL CONSTCW PANDORA GHTTP
|  Readers  : NAGRA NAGRA_MERLIN IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG BULCRYPT GRIFFIN DGCRYPT
|  CardRdrs : PHOENIX INTERNAL MP35 SMARGO STINGER SMART
|  Compiler : mipsel-unknown-linux-gnu-gcc (crosstool-NG-1.3.3) 4.3.2
|  Config   : build/mipsel-unknown-linux-gnu-ssl-libusb/config.mak
|  Binary   : /opt/s3/support/binaries/oscam-svn11447-mipsel-webif-dvbapi-ssl-libusb
+-------------------------------------------------------------------------------
HOSTCC	webif/pages_gen
GEN	webif/pages.c
GEN	Compressed 439024 template bytes into 178578 bytes. 260446 saved bytes (59.32%).
CC	cscrypt/i_ecb.c
CC	cscrypt/i_cbc.c
CC	cscrypt/i_skey.c
CC	cscrypt/fast_aes.c
CC	cscrypt/aescbc.c
CC	cscrypt/rc6.c
CC	cscrypt/sha256.c
CC	cscrypt/des.c
CC	cscrypt/md5.c
CC	cscrypt/mdc2.c
CC	csctapi/atr.c
CC	csctapi/io_serial.c
CC	csctapi/icc_async.c
CC	csctapi/protocol_t0.c
CC	csctapi/protocol_t1.c
CC	csctapi/ifd_mp35.c
CC	csctapi/ifd_phoenix.c
CC	csctapi/ifd_sci.c
CC	csctapi/ifd_smargo.c
CC	csctapi/ifd_smartreader.c
CC	minilzo/minilzo.c
CC	csctapi/ifd_stinger.c
CC	module-anticasc.c
CC	module-cacheex.c
CC	module-camd35-cacheex.c
CC	module-camd35.c
CC	module-cccam-cacheex.c
CC	module-cccam.c
CC	module-cccshare.c
CC	module-constcw.c
CC	module-csp.c
CC	module-cw-cycle-check.c
CC	module-dvbapi-chancache.c
CC	module-dvbapi.c
CC	module-gbox-helper.c
CC	module-gbox-sms.c
CC	module-gbox-remm.c
CC	module-gbox-cards.c
CC	module-gbox.c
CC	module-monitor.c
CC	module-ird-guess.c
CC	module-newcamd.c
CC	module-newcamd-des.c
CC	module-pandora.c
CC	module-ghttp.c
CC	module-radegast.c
CC	module-scam.c
CC	module-serial.c
CC	module-stat.c
CC	module-webif-tpl.c
CC	module-webif-lib.c
CC	webif/pages.c
CC	module-webif.c
CC	reader-common.c
CC	reader-bulcrypt.c
CC	reader-conax.c
CC	reader-cryptoworks.c
CC	reader-dgcrypt.c
CC	reader-dre.c
CC	reader-dre-cas.c
CC	reader-dre-common.c
CC	reader-dre-st20.c
CC	reader-griffin.c
CC	reader-nagra.c
CC	reader-irdeto.c
CC	reader-seca.c
CC	reader-tongfang.c
CC	reader-nagracak7.c
CC	reader-viaccess.c
CC	reader-videoguard-common.c
CC	reader-videoguard1.c
CC	reader-videoguard12.c
CC	reader-videoguard2.c
CC	oscam-aes.c
CC	oscam-array.c
CC	oscam-hashtable.c
CC	oscam-cache.c
CC	oscam-chk.c
CC	oscam-client.c
CC	oscam-conf.c
CC	oscam-conf-chk.c
CC	oscam-conf-mk.c
CC	oscam-config-account.c
CC	oscam-config-global.c
CC	oscam-config-reader.c
CC	oscam-config.c
CC	oscam-ecm.c
CC	oscam-emm.c
CC	oscam-emm-cache.c
CC	oscam-failban.c
CC	oscam-files.c
CC	oscam-garbage.c
CC	oscam-lock.c
CC	oscam-log.c
CC	oscam-log-reader.c
CC	oscam-net.c
CC	oscam-llist.c
CC	oscam-reader.c
CC	oscam-simples.c
CC	oscam-string.c
CC	oscam-time.c
CC	oscam-work.c
CONF	build/mipsel-unknown-linux-gnu-ssl-libusb/config.c
BUILD	Distribution/list_smargo-1.20_svn11447-mipsel-unknown-linux-gnu-ssl-libusb
CC	oscam.c
LINK	/opt/s3/support/binaries/oscam-svn11447-mipsel-webif-dvbapi-ssl-libusb.debug
STRIP	/opt/s3/support/binaries/oscam-svn11447-mipsel-webif-dvbapi-ssl-libusb

comment:2 by gabberhead, 5 years ago

Resolution: fixed
Status: newclosed

fixed in 11474

Note: See TracTickets for help on using tickets.