Commit Graph

11 Commits

Author SHA1 Message Date
Harald Welte 14bfba54a7 fix compilation with modern gcc-11
This addresses missing 'extern'' declarations in header filesr

/usr/bin/ld: lmsim.o:/space/home/laforge/projects/git/linmodem/v34priv.h:179: multiple definition of `trellis_trans_16'; lm.o:/space/home/laforge/projects/git/linmodem/v34priv.h:179: first defined here
2021-12-29 23:41:35 +01:00
Harald Welte c4ca232363 fix various compiler warnings 2019-12-30 03:16:43 +01:00
Harald Welte 77a9a7dccd lmstates.h: Don't use #pragma once
In 63eae6dd99 we introduced #pragma once
for all header files.  However, lmstates.h is a special header file,
and if we use it here, lm.c will fail as follows:

lm.c: In function ‘sm_process’:
lm.c:199:13: warning: array subscript 0 is above array bounds of ‘char *[0]’ [-Warray-bounds]
  199 |             printf("%s: state: %s\n", sm->name, sm_states_str[sm->state]);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lm.c:152:7: note: while referencing ‘sm_states_str’
  152 | char *sm_states_str[] = {
      |       ^~~~~~~~~~~~~
2019-12-30 03:14:08 +01:00
Harald Welte 670ee693dd HACK: switch X from 16bit to 24bit visual 2018-01-01 16:11:30 +01:00
Harald Welte 63eae6dd99 use '#pragma once' in all header files 2018-01-01 16:11:25 +01:00
Harald Welte 4f2509cf1b Add .sw files to .gitignore file 2018-01-01 16:11:08 +01:00
Geoffrey Thomas 7d5596faf5 Switch to UNIX 98 (ptmx) pty handling 2014-07-20 19:57:03 -07:00
Geoffrey Thomas 37829b6d75 Add nodisplay.c stubs to permit compiling without USE_X11 2014-07-20 19:44:40 -07:00
Geoffrey Thomas d2bf855fd6 Fix LDFLAGS order for modern toolchains 2014-07-20 18:32:25 -07:00
Geoffrey Thomas 0467bb55ae .gitignore 2014-07-20 18:32:17 -07:00
Geoffrey Thomas 0457e3a587 Initial import of linmodem-0.2.5.tgz 2014-07-20 18:28:02 -07:00