Schimmelreiter / oscam-smod

modern & emu based oscam, but in-line with the latest trunk too
GNU General Public License v3.0
24 stars 31 forks source link

Compiler Error: Build without CCcam not possible #45

Closed t5b6de closed 4 years ago

t5b6de commented 4 years ago

Get this output while compiling without cccam

CC oscam-config.c oscam-config.c: In function ‘chk_cccam_cfg_F_more’: oscam-config.c:1521:27: error: ‘struct s_auth’ has no member named ‘cccreshare’ if(!cno && !(account->cccreshare)){ ^~ oscam-config.c:1523:15: error: ‘struct s_auth’ has no member named ‘cccreshare’ account->cccreshare=(int32_t)reshare; ^~ oscam-config.c: In function ‘read_cccamcfg’: oscam-config.c:1597:15: warning: unused variable ‘prid’ [-Wunused-variable] int32_t caid,prid; ^~~~ oscam-config.c:1597:10: warning: unused variable ‘caid’ [-Wunused-variable] int32_t caid,prid; ^~~~

t5b6de commented 4 years ago

Seems to be fixed, only a compiler-warning is left:

CC      oscam-config.c
oscam-config.c: In function ‘chk_cccam_cfg_F_more’:
oscam-config.c:1488:38: warning: unused variable ‘reshare’ [-Wunused-variable]
  int32_t p1=0,off=0,no=0,cno=0,dno=0,reshare=0;
                                      ^~~~~~~
oscam-config.c: In function ‘read_cccamcfg’:
oscam-config.c:1599:15: warning: unused variable ‘prid’ [-Wunused-variable]
  int32_t caid,prid;
               ^~~~
oscam-config.c:1599:10: warning: unused variable ‘caid’ [-Wunused-variable]
  int32_t caid,prid;
          ^~~~