mirror of
https://github.com/wfjm/w11.git
synced 2026-02-18 21:57:30 +00:00
some minor c++11 and -Weverything code updates
- use `nullptr` instead of plain '0' - use `[[noreturn]]` (clang -Wmissing-noreturn) - drop never reached returns (clang -Wunreachable-code-return) - drop `throw()` lists, use `noexcept` (clang -Wdeprecated) - add `R*_Init` prototypes (clang -Wmissing-prototypes) - Rw11VirtEthTap.cpp: BUGFIX: buffer not null terminated (coverity)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// $Id: Rlinktpp_Init.cpp 983 2018-01-02 20:35:59Z mueller $
|
||||
// $Id: Rlinktpp_Init.cpp 1061 2018-10-27 17:39:11Z mueller $
|
||||
//
|
||||
// Copyright 2011-2014 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
||||
// Copyright 2011-2018 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
||||
//
|
||||
// This program is free software; you may redistribute and/or modify it under
|
||||
// the terms of the GNU General Public License as published by the Free
|
||||
@@ -40,6 +40,8 @@
|
||||
using namespace std;
|
||||
using namespace Retro;
|
||||
|
||||
extern "C" int Rlinktpp_Init(Tcl_Interp* interp); // -Wmissing-prototypes fix
|
||||
|
||||
//------------------------------------------+-----------------------------------
|
||||
extern "C" int Rlinktpp_Init(Tcl_Interp* interp)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user