Fix compiler warnings from GCC 8.1
authorStafford Horne <shorne@gmail.com>
Thu, 4 Oct 2018 14:07:48 +0000 (23:07 +0900)
committerStafford Horne <shorne@gmail.com>
Thu, 4 Oct 2018 14:07:48 +0000 (23:07 +0900)
commitdafdb8df7269a9e083a04245e1e65ccf12c6ea4f
tree8de8e3aa45e635ae6dd55d35710ceadec50bfcd3
parent2be520546318335e5caabf58537c6c928d4e4ac1
Fix compiler warnings from GCC 8.1

Fix these 2 warnings:

 litex/build/sim/core/libdylib.c:42:5: warning: 'strncpy' specified bound 2048 equals destination size
 [-Wstringop-truncation]
     strncpy(last_err, s, ERR_MAX_SIZE);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 In function 'set_last_error',

 litex/soc/software/libbase/exception.c:28:13: warning: function declaration isn't a prototype [-Wstrict-prototypes]
  static char emerg_getc()
litex/build/sim/core/libdylib.c
litex/soc/software/libbase/exception.c