.pc/crypto++-8.3.patch/encrypt_stream_aes.cpp:1:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
.pc/crypto++-8.3.patch/encrypt_stream_aes.cpp:2:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
.pc/crypto++-8.3.patch/encrypt_stream_aes.cpp:3:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
.pc/crypto++-8.3.patch/encrypt_stream_aes.cpp:4:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
encrypt_stream_aes.h:1:0: information: Include file: <cryptopp/modes.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <cryptopp/modes.h>
^
encrypt_stream_aes.h:2:0: information: Include file: <cryptopp/aes.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <cryptopp/aes.h>
^
encrypt_stream_aes.h:12:3: style: The destructor '~encrypt_stream_aes' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride]
 ~encrypt_stream_aes();
  ^
encrypt_stream.h:5:11: note: Virtual destructor in base class
 virtual ~encrypt_stream();
          ^
encrypt_stream_aes.h:12:3: note: Destructor in derived class
 ~encrypt_stream_aes();
  ^
encrypt_stream_aes.h:14:6: style: The function 'get_ivec_size' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 int get_ivec_size();
     ^
encrypt_stream.h:9:14: note: Virtual function in base class
 virtual int get_ivec_size() = 0;
             ^
encrypt_stream_aes.h:14:6: note: Function in derived class
 int get_ivec_size();
     ^
encrypt_stream_aes.h:15:6: style: The function 'get_key_size' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 int get_key_size();
     ^
encrypt_stream.h:10:14: note: Virtual function in base class
 virtual int get_key_size() = 0;
             ^
encrypt_stream_aes.h:15:6: note: Function in derived class
 int get_key_size();
     ^
encrypt_stream_aes.h:17:7: style: The function 'init' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false);
      ^
encrypt_stream.h:12:15: note: Virtual function in base class
 virtual bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false) = 0;
              ^
encrypt_stream_aes.h:17:7: note: Function in derived class
 bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false);
      ^
encrypt_stream_aes.h:19:14: style: The function 'get_name' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 std::string get_name();
             ^
encrypt_stream.h:14:22: note: Virtual function in base class
 virtual std::string get_name() = 0;
                     ^
encrypt_stream_aes.h:19:14: note: Function in derived class
 std::string get_name();
             ^
encrypt_stream_aes.h:21:7: style: The function 'encrypt' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 void encrypt(unsigned char *p_in, int len, unsigned char *p_out);
      ^
encrypt_stream.h:16:15: note: Virtual function in base class
 virtual void encrypt(unsigned char *p_in, int len, unsigned char *p_out) = 0;
              ^
encrypt_stream_aes.h:21:7: note: Function in derived class
 void encrypt(unsigned char *p_in, int len, unsigned char *p_out);
      ^
encrypt_stream_aes.h:22:7: style: The function 'decrypt' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 void decrypt(unsigned char *p_in, int len, unsigned char *p_out);
      ^
encrypt_stream.h:17:15: note: Virtual function in base class
 virtual void decrypt(unsigned char *p_in, int len, unsigned char *p_out) = 0;
              ^
encrypt_stream_aes.h:22:7: note: Function in derived class
 void decrypt(unsigned char *p_in, int len, unsigned char *p_out);
      ^
.pc/crypto++-8.3.patch/encrypt_stream_aes.cpp:33:46: style: inconclusive: Function 'init' argument 1 names different: declaration 'key' definition 'key_in'. [funcArgNamesDifferent]
bool encrypt_stream_aes::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                             ^
encrypt_stream_aes.h:17:27: note: Function 'init' argument 1 names different: declaration 'key' definition 'key_in'.
 bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false);
                          ^
.pc/crypto++-8.3.patch/encrypt_stream_aes.cpp:33:46: note: Function 'init' argument 1 names different: declaration 'key' definition 'key_in'.
bool encrypt_stream_aes::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                             ^
.pc/crypto++-8.3.patch/encrypt_stream_aes.cpp:33:82: style: inconclusive: Function 'init' argument 3 names different: declaration 'ivec' definition 'ivec_in'. [funcArgNamesDifferent]
bool encrypt_stream_aes::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                                                                 ^
encrypt_stream_aes.h:17:60: note: Function 'init' argument 3 names different: declaration 'ivec' definition 'ivec_in'.
 bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false);
                                                           ^
.pc/crypto++-8.3.patch/encrypt_stream_aes.cpp:33:82: note: Function 'init' argument 3 names different: declaration 'ivec' definition 'ivec_in'.
bool encrypt_stream_aes::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                                                                 ^
.pc/crypto++-8.3.patch/encrypt_stream_aes.cpp:59:49: style: inconclusive: Function 'encrypt' argument 1 names different: declaration 'p_in' definition 'p'. [funcArgNamesDifferent]
void encrypt_stream_aes::encrypt(unsigned char *p, int len, unsigned char *p_out)
                                                ^
encrypt_stream_aes.h:21:30: note: Function 'encrypt' argument 1 names different: declaration 'p_in' definition 'p'.
 void encrypt(unsigned char *p_in, int len, unsigned char *p_out);
                             ^
.pc/crypto++-8.3.patch/encrypt_stream_aes.cpp:59:49: note: Function 'encrypt' argument 1 names different: declaration 'p_in' definition 'p'.
void encrypt_stream_aes::encrypt(unsigned char *p, int len, unsigned char *p_out)
                                                ^
.pc/crypto++-8.3.patch/encrypt_stream_aes.cpp:76:49: style: inconclusive: Function 'decrypt' argument 1 names different: declaration 'p_in' definition 'p'. [funcArgNamesDifferent]
void encrypt_stream_aes::decrypt(unsigned char *p, int len, unsigned char *p_out)
                                                ^
encrypt_stream_aes.h:22:30: note: Function 'decrypt' argument 1 names different: declaration 'p_in' definition 'p'.
 void decrypt(unsigned char *p_in, int len, unsigned char *p_out);
                             ^
.pc/crypto++-8.3.patch/encrypt_stream_aes.cpp:76:49: note: Function 'decrypt' argument 1 names different: declaration 'p_in' definition 'p'.
void encrypt_stream_aes::decrypt(unsigned char *p, int len, unsigned char *p_out)
                                                ^
.pc/crypto++-8.3.patch/encrypt_stream_camellia.cpp:1:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
.pc/crypto++-8.3.patch/encrypt_stream_camellia.cpp:2:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
.pc/crypto++-8.3.patch/encrypt_stream_camellia.cpp:3:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
.pc/crypto++-8.3.patch/encrypt_stream_camellia.cpp:4:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
encrypt_stream_camellia.h:1:0: information: Include file: <cryptopp/modes.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <cryptopp/modes.h>
^
encrypt_stream_camellia.h:2:0: information: Include file: <cryptopp/camellia.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <cryptopp/camellia.h>
^
encrypt_stream_camellia.h:12:3: style: The destructor '~encrypt_stream_camellia' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride]
 ~encrypt_stream_camellia();
  ^
encrypt_stream.h:5:11: note: Virtual destructor in base class
 virtual ~encrypt_stream();
          ^
encrypt_stream_camellia.h:12:3: note: Destructor in derived class
 ~encrypt_stream_camellia();
  ^
encrypt_stream_camellia.h:14:6: style: The function 'get_ivec_size' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 int get_ivec_size();
     ^
encrypt_stream.h:9:14: note: Virtual function in base class
 virtual int get_ivec_size() = 0;
             ^
encrypt_stream_camellia.h:14:6: note: Function in derived class
 int get_ivec_size();
     ^
encrypt_stream_camellia.h:15:6: style: The function 'get_key_size' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 int get_key_size();
     ^
encrypt_stream.h:10:14: note: Virtual function in base class
 virtual int get_key_size() = 0;
             ^
encrypt_stream_camellia.h:15:6: note: Function in derived class
 int get_key_size();
     ^
encrypt_stream_camellia.h:17:7: style: The function 'init' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false);
      ^
encrypt_stream.h:12:15: note: Virtual function in base class
 virtual bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false) = 0;
              ^
encrypt_stream_camellia.h:17:7: note: Function in derived class
 bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false);
      ^
encrypt_stream_camellia.h:19:14: style: The function 'get_name' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 std::string get_name();
             ^
encrypt_stream.h:14:22: note: Virtual function in base class
 virtual std::string get_name() = 0;
                     ^
encrypt_stream_camellia.h:19:14: note: Function in derived class
 std::string get_name();
             ^
encrypt_stream_camellia.h:21:7: style: The function 'encrypt' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 void encrypt(unsigned char *p_in, int len, unsigned char *p_out);
      ^
encrypt_stream.h:16:15: note: Virtual function in base class
 virtual void encrypt(unsigned char *p_in, int len, unsigned char *p_out) = 0;
              ^
encrypt_stream_camellia.h:21:7: note: Function in derived class
 void encrypt(unsigned char *p_in, int len, unsigned char *p_out);
      ^
encrypt_stream_camellia.h:22:7: style: The function 'decrypt' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 void decrypt(unsigned char *p_in, int len, unsigned char *p_out);
      ^
encrypt_stream.h:17:15: note: Virtual function in base class
 virtual void decrypt(unsigned char *p_in, int len, unsigned char *p_out) = 0;
              ^
encrypt_stream_camellia.h:22:7: note: Function in derived class
 void decrypt(unsigned char *p_in, int len, unsigned char *p_out);
      ^
.pc/crypto++-8.3.patch/encrypt_stream_camellia.cpp:33:51: style: inconclusive: Function 'init' argument 1 names different: declaration 'key' definition 'key_in'. [funcArgNamesDifferent]
bool encrypt_stream_camellia::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                                  ^
encrypt_stream_camellia.h:17:27: note: Function 'init' argument 1 names different: declaration 'key' definition 'key_in'.
 bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false);
                          ^
.pc/crypto++-8.3.patch/encrypt_stream_camellia.cpp:33:51: note: Function 'init' argument 1 names different: declaration 'key' definition 'key_in'.
bool encrypt_stream_camellia::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                                  ^
.pc/crypto++-8.3.patch/encrypt_stream_camellia.cpp:33:87: style: inconclusive: Function 'init' argument 3 names different: declaration 'ivec' definition 'ivec_in'. [funcArgNamesDifferent]
bool encrypt_stream_camellia::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                                                                      ^
encrypt_stream_camellia.h:17:60: note: Function 'init' argument 3 names different: declaration 'ivec' definition 'ivec_in'.
 bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false);
                                                           ^
.pc/crypto++-8.3.patch/encrypt_stream_camellia.cpp:33:87: note: Function 'init' argument 3 names different: declaration 'ivec' definition 'ivec_in'.
bool encrypt_stream_camellia::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                                                                      ^
.pc/crypto++-8.3.patch/encrypt_stream_camellia.cpp:60:54: style: inconclusive: Function 'encrypt' argument 1 names different: declaration 'p_in' definition 'p'. [funcArgNamesDifferent]
void encrypt_stream_camellia::encrypt(unsigned char *p, int len, unsigned char *p_out)
                                                     ^
encrypt_stream_camellia.h:21:30: note: Function 'encrypt' argument 1 names different: declaration 'p_in' definition 'p'.
 void encrypt(unsigned char *p_in, int len, unsigned char *p_out);
                             ^
.pc/crypto++-8.3.patch/encrypt_stream_camellia.cpp:60:54: note: Function 'encrypt' argument 1 names different: declaration 'p_in' definition 'p'.
void encrypt_stream_camellia::encrypt(unsigned char *p, int len, unsigned char *p_out)
                                                     ^
.pc/crypto++-8.3.patch/encrypt_stream_camellia.cpp:77:54: style: inconclusive: Function 'decrypt' argument 1 names different: declaration 'p_in' definition 'p'. [funcArgNamesDifferent]
void encrypt_stream_camellia::decrypt(unsigned char *p, int len, unsigned char *p_out)
                                                     ^
encrypt_stream_camellia.h:22:30: note: Function 'decrypt' argument 1 names different: declaration 'p_in' definition 'p'.
 void decrypt(unsigned char *p_in, int len, unsigned char *p_out);
                             ^
.pc/crypto++-8.3.patch/encrypt_stream_camellia.cpp:77:54: note: Function 'decrypt' argument 1 names different: declaration 'p_in' definition 'p'.
void encrypt_stream_camellia::decrypt(unsigned char *p, int len, unsigned char *p_out)
                                                     ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:116:0: information: Include file: "stdint.h" not found. [missingInclude]
#include "stdint.h"
^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:117:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:118:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:119:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:121:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:122:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:123:0: information: Include file: <ftdi.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <ftdi.h>
^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:173:34: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn]
  QWQNG& operator=(QWQNG const&){};
                                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:300:45: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn]
    QngStatus& operator=(QngStatus const&) {};
                                            ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:51:8: warning: Member variable 'QWQNG::statusString_' is not initialized in the constructor. Member variables of native types, pointers, or references are left uninitialized when the class is instantiated. That may cause bugs or undefined behavior. [uninitMemberVarPrivate]
QWQNG::QWQNG() : pDevice(NULL) {
       ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:51:8: warning: Member variable 'QWQNG::devId_' is not initialized in the constructor. Member variables of native types, pointers, or references are left uninitialized when the class is instantiated. That may cause bugs or undefined behavior. [uninitMemberVarPrivate]
QWQNG::QWQNG() : pDevice(NULL) {
       ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:170:3: warning: Member variable 'QWQNG::pDevice' is not initialized in the copy constructor. Member variables of native types, pointers, or references are left uninitialized when the class is instantiated. That may cause bugs or undefined behavior. [uninitMemberVarPrivate]
  QWQNG(QWQNG const&){};
  ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:170:3: warning: Member variable 'QWQNG::statusString_' is not initialized in the copy constructor. Member variables of native types, pointers, or references are left uninitialized when the class is instantiated. That may cause bugs or undefined behavior. [uninitMemberVarPrivate]
  QWQNG(QWQNG const&){};
  ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:170:3: warning: Member variable 'QWQNG::devId_' is not initialized in the copy constructor. Member variables of native types, pointers, or references are left uninitialized when the class is instantiated. That may cause bugs or undefined behavior. [uninitMemberVarPrivate]
  QWQNG(QWQNG const&){};
  ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:173:10: warning: Member variable 'QWQNG::pDevice' is not assigned a value in 'QWQNG::operator='. [operatorEqVarError]
  QWQNG& operator=(QWQNG const&){};
         ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:173:10: warning: Member variable 'QWQNG::statusString_' is not assigned a value in 'QWQNG::operator='. [operatorEqVarError]
  QWQNG& operator=(QWQNG const&){};
         ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:173:10: warning: Member variable 'QWQNG::devId_' is not assigned a value in 'QWQNG::operator='. [operatorEqVarError]
  QWQNG& operator=(QWQNG const&){};
         ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:297:5: warning: Member variable 'QngStatus::status_' is not initialized in the copy constructor. Member variables of native types, pointers, or references are left uninitialized when the class is instantiated. That may cause bugs or undefined behavior. [uninitMemberVarPrivate]
    QngStatus(QngStatus const&) {};
    ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:297:5: warning: inconclusive: Member variable 'QngStatus::statusString_' is not assigned in the copy constructor. Should it be copied? [missingMemberCopy]
    QngStatus(QngStatus const&) {};
    ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:300:16: warning: Member variable 'QngStatus::status_' is not assigned a value in 'QngStatus::operator='. [operatorEqVarError]
    QngStatus& operator=(QngStatus const&) {};
               ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:300:16: warning: inconclusive: Member variable 'QngStatus::statusString_' is not assigned a value in 'QngStatus::operator='. [operatorEqVarError]
    QngStatus& operator=(QngStatus const&) {};
               ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:173:10: style: 'operator=' should return reference to 'this' instance. [operatorEqRetRefThis]
  QWQNG& operator=(QWQNG const&){};
         ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:300:16: style: 'operator=' should return reference to 'this' instance. [operatorEqRetRefThis]
    QngStatus& operator=(QngStatus const&) {};
               ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:274:12: performance: inconclusive: The member function 'FtdiDevice::Uint48ToUniform' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances? And maybe it is more appropriate to move this function to an unnamed namespace. [functionStatic]
    double Uint48ToUniform(uint64_t uint48);
           ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:726:20: note: Technically the member function 'FtdiDevice::Uint48ToUniform' can be static (but you may consider moving to unnamed namespace).
double FtdiDevice::Uint48ToUniform(uint64_t uint48) {
                   ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:274:12: note: Technically the member function 'FtdiDevice::Uint48ToUniform' can be static (but you may consider moving to unnamed namespace).
    double Uint48ToUniform(uint64_t uint48);
           ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:275:11: performance: inconclusive: The member function 'FtdiDevice::CalcEntropy' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances? And maybe it is more appropriate to move this function to an unnamed namespace. [functionStatic]
    float CalcEntropy(double p);
          ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:737:19: note: Technically the member function 'FtdiDevice::CalcEntropy' can be static (but you may consider moving to unnamed namespace).
float FtdiDevice::CalcEntropy(double p) {
                  ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:275:11: note: Technically the member function 'FtdiDevice::CalcEntropy' can be static (but you may consider moving to unnamed namespace).
    float CalcEntropy(double p);
          ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:287:10: style: inconclusive: The member function 'QngStatus::GetStatus' can be made a const function. Making this function 'const' should not cause compiler errors. Even though the function can be made const function technically it may not make sense conceptually. Think about your design and the task of the function first - is it a function that must not change object internal state? [functionConst]
    long GetStatus();
         ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:765:17: note: Technically the member function 'QngStatus::GetStatus' can be const.
long QngStatus::GetStatus() {
                ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:287:10: note: Technically the member function 'QngStatus::GetStatus' can be const.
    long GetStatus();
         ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:251:18: style: Virtual function 'Open' is called from constructor 'FtdiDevice()' at line 203. Dynamic binding is not used. [virtualCallInConstructor]
    virtual void Open();
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:203:5: note: Calling Open
    Open();
    ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:251:18: note: Open is a virtual function
    virtual void Open();
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:252:18: style: Virtual function 'Close' is called from destructor '~FtdiDevice()' at line 209. Dynamic binding is not used. [virtualCallInConstructor]
    virtual void Close();
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:209:5: note: Calling Close
    Close();
    ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:252:18: note: Close is a virtual function
    virtual void Close();
                 ^
math.h:12:2: style: Class 'bit_count_estimator' has a constructor with 1 argument that is not explicit. Such, so called "Converting constructors", should in general be explicit for type safety reasons as that prevents unintended implicit conversions. [noExplicitConstructor]
 bit_count_estimator(const bit_count_estimator_type_t type_in);
 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:251:18: style: The function 'Open' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
    virtual void Open();
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:188:18: note: Virtual function in base class
    virtual void Open() = 0;
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:251:18: note: Function in derived class
    virtual void Open();
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:252:18: style: The function 'Close' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
    virtual void Close();
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:189:18: note: Virtual function in base class
    virtual void Close() = 0;
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:252:18: note: Function in derived class
    virtual void Close();
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:253:18: style: The function 'Clear' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
    virtual void Clear();
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:190:18: note: Virtual function in base class
    virtual void Clear() = 0;
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:253:18: note: Function in derived class
    virtual void Clear();
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:254:18: style: The function 'Reset' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
    virtual void Reset();
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:191:18: note: Virtual function in base class
    virtual void Reset() = 0;
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:254:18: note: Function in derived class
    virtual void Reset();
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:255:18: style: The function 'GetBytes' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
    virtual void GetBytes(char* bytes, int bytesRequested);
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:193:18: note: Virtual function in base class
    virtual void GetBytes(char* bytes, int bytesRequested) = 0;
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:255:18: note: Function in derived class
    virtual void GetBytes(char* bytes, int bytesRequested);
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:256:18: style: The function 'GetInt32' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
    virtual void GetInt32(int32_t* int32);
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:194:18: note: Virtual function in base class
    virtual void GetInt32(int32_t* int32) = 0;
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:256:18: note: Function in derived class
    virtual void GetInt32(int32_t* int32);
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:257:18: style: The function 'GetUniform' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
    virtual void GetUniform(double* uniform);
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:195:18: note: Virtual function in base class
    virtual void GetUniform(double* uniform) = 0;
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:257:18: note: Function in derived class
    virtual void GetUniform(double* uniform);
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:258:18: style: The function 'GetNormal' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
    virtual void GetNormal(double* normal);
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:196:18: note: Virtual function in base class
    virtual void GetNormal(double* normal) = 0;
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:258:18: note: Function in derived class
    virtual void GetNormal(double* normal);
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:259:18: style: The function 'GetRuntimeInfo' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
    virtual void GetRuntimeInfo(float* runtimeInfo);
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:198:18: note: Virtual function in base class
    virtual void GetRuntimeInfo(float* testData) = 0;
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.hpp:259:18: note: Function in derived class
    virtual void GetRuntimeInfo(float* runtimeInfo);
                 ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:53:13: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
  pDevice = (IDevice*)new FtdiDevice(); // create new instance
            ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:97:21: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
  pDevice->GetInt32((int32_t*)pVal);
                    ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:609:41: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
    ftdiStatus = ftdi_read_data(&ftdic, (unsigned char*)receiveBuffer, bytesRequested);
                                        ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:629:41: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
    ftdiStatus = ftdi_read_data(&ftdic, (unsigned char*)receiveBuffer, bytesRequested);
                                        ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:645:42: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
    ftdiStatus = ftdi_write_data(&ftdic, (unsigned char*)transmitBuffer, bytesToTransmit);
                                         ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:434:9: style: The scope of the variable 'ret' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced:
void f(int x)
{
    int i = 0;
    if (x) {
        // it's safe to move 'int i = 0;' here
        for (int n = 0; n < 10; ++n) {
            // it is possible but not safe to move 'int i = 0;' here
            do_something(&i);
        }
    }
}
When you see this message it is always safe to reduce the variable scope 1 level. [variableScope]
    int ret=0;  // # of devices returned status
        ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:71:15: performance: inconclusive: The const variable 'statusString' is assigned a copy of the data. You can avoid the unnecessary data copying by converting 'statusString' to const reference. [redundantCopyLocalConst]
  std::string statusString = QngStatus::Instance().GetStatusString();
              ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:84:15: performance: inconclusive: The const variable 'deviceId' is assigned a copy of the data. You can avoid the unnecessary data copying by converting 'deviceId' to const reference. [redundantCopyLocalConst]
  std::string deviceId = pDevice->GetDeviceId();
              ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:434:12: style: Variable 'ret' is assigned a value that is never used. [unreadVariable]
    int ret=0;  // # of devices returned status
           ^
.pc/gcc-11.patch/server_ext_proc.cpp:1:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
.pc/gcc-11.patch/server_ext_proc.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
.pc/gcc-11.patch/server_ext_proc.cpp:3:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
.pc/gcc-11.patch/server_ext_proc.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
.pc/gcc-11.patch/server_ext_proc.cpp:5:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
.pc/gcc-11.patch/server_ext_proc.cpp:6:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
.pc/gcc-11.patch/server_ext_proc.cpp:7:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
.pc/gcc-11.patch/server_ext_proc.cpp:8:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
.pc/gcc-11.patch/server_ext_proc.cpp:9:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
.pc/gcc-11.patch/server_ext_proc.cpp:10:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
.pc/gcc-11.patch/server_ext_proc.cpp:11:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
.pc/gcc-11.patch/server_ext_proc.cpp:12:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
.pc/gcc-11.patch/server_ext_proc.cpp:13:0: information: Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fcntl.h>
^
.pc/gcc-11.patch/server_ext_proc.cpp:14:0: information: Include file: <termios.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <termios.h>
^
.pc/gcc-11.patch/server_ext_proc.cpp:15:0: information: Include file: <sys/wait.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/wait.h>
^
random_source.h:1:0: information: Include file: <cryptopp/osrng.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <cryptopp/osrng.h>
^
log.h:1:0: information: Include file: <syslog.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <syslog.h>
^
.pc/gcc-11.patch/server_ext_proc.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
protocol.h:39:15: style: inconclusive: The member function 'protocol::get_max_get_put_size' can be made a const function. Making this function 'const' should not cause compiler errors. Even though the function can be made const function technically it may not make sense conceptually. Think about your design and the task of the function first - is it a function that must not change object internal state? [functionConst]
 unsigned int get_max_get_put_size() { return max_get_put_size; }
              ^
statistics_user.h:9:7: warning: The class 'statistics_user' defines member function with name 'register_msg' also defined in its parent class 'statistics'. [duplInheritedMember]
 void register_msg(bool is_put);
      ^
statistics.h:62:7: note: Parent function 'statistics::register_msg'
 void register_msg(bool is_put);
      ^
statistics_user.h:9:7: note: Derived function 'statistics_user::register_msg'
 void register_msg(bool is_put);
      ^
random_source.h:17:2: style: Class 'random_source' has a constructor with 1 argument that is not explicit. Such, so called "Converting constructors", should in general be explicit for type safety reasons as that prevents unintended implicit conversions. [noExplicitConstructor]
 random_source(const random_source_t rst);
 ^
statistics_global.h:25:3: style: The destructor '~statistics_global' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride]
 ~statistics_global();
  ^
statistics.h:48:11: note: Virtual destructor in base class
 virtual ~statistics();
          ^
statistics_global.h:25:3: note: Destructor in derived class
 ~statistics_global();
  ^
.pc/gcc-11.patch/server_push_file.cpp:1:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
.pc/gcc-11.patch/server_push_file.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
.pc/gcc-11.patch/server_push_file.cpp:3:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
.pc/gcc-11.patch/server_push_file.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
.pc/gcc-11.patch/server_push_file.cpp:5:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
.pc/gcc-11.patch/server_push_file.cpp:6:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
.pc/gcc-11.patch/server_push_file.cpp:7:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
.pc/gcc-11.patch/server_push_file.cpp:8:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
.pc/gcc-11.patch/server_push_file.cpp:9:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
.pc/gcc-11.patch/server_push_file.cpp:10:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
.pc/gcc-11.patch/server_push_file.cpp:11:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
.pc/gcc-11.patch/server_push_file.cpp:12:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
.pc/gcc-11.patch/server_push_file.cpp:13:0: information: Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fcntl.h>
^
.pc/gcc-11.patch/server_push_file.cpp:14:0: information: Include file: <termios.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <termios.h>
^
.pc/gcc-11.patch/server_push_file.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
.pc/gcc-11.patch/server_push_file.cpp:138:19: warning: Either the condition '!file' is redundant or there is possible null pointer dereference: file. [nullPointerRedundantCheck]
 FILE *fh = fopen(file, "rb");
                  ^
.pc/gcc-11.patch/server_push_file.cpp:131:6: note: Assuming that condition '!file' is not redundant
 if (!file)
     ^
.pc/gcc-11.patch/server_push_file.cpp:138:19: note: Null pointer dereference
 FILE *fh = fopen(file, "rb");
                  ^
.pc/gcc-11.patch/server_smartcard.cpp:1:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
.pc/gcc-11.patch/server_smartcard.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
.pc/gcc-11.patch/server_smartcard.cpp:3:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
.pc/gcc-11.patch/server_smartcard.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
.pc/gcc-11.patch/server_smartcard.cpp:5:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
.pc/gcc-11.patch/server_smartcard.cpp:6:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
.pc/gcc-11.patch/server_smartcard.cpp:7:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
.pc/gcc-11.patch/server_smartcard.cpp:8:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
.pc/gcc-11.patch/server_smartcard.cpp:9:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
.pc/gcc-11.patch/server_smartcard.cpp:10:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
.pc/gcc-11.patch/server_smartcard.cpp:11:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
.pc/gcc-11.patch/server_smartcard.cpp:12:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
.pc/gcc-11.patch/server_smartcard.cpp:13:0: information: Include file: <winscard.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <winscard.h>
^
.pc/gcc-11.patch/server_smartcard.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
.pc/gcc-11.patch/server_stream.cpp:1:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
.pc/gcc-11.patch/server_stream.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
.pc/gcc-11.patch/server_stream.cpp:3:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
.pc/gcc-11.patch/server_stream.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
.pc/gcc-11.patch/server_stream.cpp:5:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
.pc/gcc-11.patch/server_stream.cpp:6:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
.pc/gcc-11.patch/server_stream.cpp:7:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
.pc/gcc-11.patch/server_stream.cpp:8:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
.pc/gcc-11.patch/server_stream.cpp:9:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
.pc/gcc-11.patch/server_stream.cpp:10:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
.pc/gcc-11.patch/server_stream.cpp:11:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
.pc/gcc-11.patch/server_stream.cpp:12:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
.pc/gcc-11.patch/server_stream.cpp:13:0: information: Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fcntl.h>
^
.pc/gcc-11.patch/server_stream.cpp:14:0: information: Include file: <termios.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <termios.h>
^
.pc/gcc-11.patch/server_stream.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
.pc/gcc-11.patch/server_stream.cpp:44:42: style: Parameter 'pars_in' can be declared as pointer to const [constParameterPointer]
void set_serial_parameters(int fd, char *pars_in)
                                         ^
.pc/gcc-11.patch/server_timers.cpp:1:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
.pc/gcc-11.patch/server_timers.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
.pc/gcc-11.patch/server_timers.cpp:3:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
.pc/gcc-11.patch/server_timers.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
.pc/gcc-11.patch/server_timers.cpp:5:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
.pc/gcc-11.patch/server_timers.cpp:6:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
.pc/gcc-11.patch/server_timers.cpp:7:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
.pc/gcc-11.patch/server_timers.cpp:8:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
.pc/gcc-11.patch/server_timers.cpp:9:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
.pc/gcc-11.patch/server_timers.cpp:10:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
.pc/gcc-11.patch/server_timers.cpp:11:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
.pc/gcc-11.patch/server_timers.cpp:12:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
.pc/gcc-11.patch/server_timers.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
.pc/gcc-11.patch/server_usb.cpp:1:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
.pc/gcc-11.patch/server_usb.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
.pc/gcc-11.patch/server_usb.cpp:3:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
.pc/gcc-11.patch/server_usb.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
.pc/gcc-11.patch/server_usb.cpp:5:0: information: Include file: <time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <time.h>
^
.pc/gcc-11.patch/server_usb.cpp:6:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
.pc/gcc-11.patch/server_usb.cpp:7:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
.pc/gcc-11.patch/server_usb.cpp:8:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
.pc/gcc-11.patch/server_usb.cpp:9:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
.pc/gcc-11.patch/server_usb.cpp:10:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
.pc/gcc-11.patch/server_usb.cpp:11:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
.pc/gcc-11.patch/server_usb.cpp:12:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
.pc/gcc-11.patch/server_usb.cpp:13:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
.pc/gcc-11.patch/server_usb.cpp:16:0: information: Include file: <libusb-1.0/libusb.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <libusb-1.0/libusb.h>
^
.pc/gcc-11.patch/server_usb.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
.pc/gcc-11.patch/server_usb.cpp:197:10: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 devhs = (libusb_device_handle **)malloc(sizeof(libusb_device_handle *) * n);
         ^
.pc/localtime.patch/graph.cpp:1:0: information: Include file: <gd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <gd.h>
^
.pc/localtime.patch/graph.cpp:3:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
.pc/localtime.patch/graph.cpp:4:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
.pc/localtime.patch/graph.cpp:5:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
.pc/localtime.patch/graph.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
graph.h:6:7: performance: inconclusive: The member function 'graph::calc_text_width' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances? And maybe it is more appropriate to move this function to an unnamed namespace. [functionStatic]
 void calc_text_width(std::string font_descr, double font_height, std::string str, int *width, int *height);
      ^
.pc/localtime.patch/graph.cpp:19:13: note: Technically the member function 'graph::calc_text_width' can be static (but you may consider moving to unnamed namespace).
void graph::calc_text_width(std::string font_descr, double font_height, std::string str, int *width, int *height)
            ^
graph.h:6:7: note: Technically the member function 'graph::calc_text_width' can be static (but you may consider moving to unnamed namespace).
 void calc_text_width(std::string font_descr, double font_height, std::string str, int *width, int *height);
      ^
graph.h:7:7: performance: inconclusive: The member function 'graph::draw_text' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances? And maybe it is more appropriate to move this function to an unnamed namespace. [functionStatic]
 void draw_text(gdImagePtr im, std::string font_descr, double font_height, int color, std::string str, int x, int y);
      ^
.pc/localtime.patch/graph.cpp:31:13: note: Technically the member function 'graph::draw_text' can be static (but you may consider moving to unnamed namespace).
void graph::draw_text(gdImagePtr im, std::string font_descr, double font_height, int color, std::string str, int x, int y)
            ^
graph.h:7:7: note: Technically the member function 'graph::draw_text' can be static (but you may consider moving to unnamed namespace).
 void draw_text(gdImagePtr im, std::string font_descr, double font_height, int color, std::string str, int x, int y);
      ^
graph.h:8:14: performance: inconclusive: The member function 'graph::shorten' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances? And maybe it is more appropriate to move this function to an unnamed namespace. [functionStatic]
 std::string shorten(double value);
             ^
.pc/localtime.patch/graph.cpp:38:20: note: Technically the member function 'graph::shorten' can be static (but you may consider moving to unnamed namespace).
std::string graph::shorten(double value)
                   ^
graph.h:8:14: note: Technically the member function 'graph::shorten' can be static (but you may consider moving to unnamed namespace).
 std::string shorten(double value);
             ^
graph.h:11:2: style: Class 'graph' has a constructor with 1 argument that is not explicit. Such, so called "Converting constructors", should in general be explicit for type safety reasons as that prevents unintended implicit conversions. [noExplicitConstructor]
 graph(std::string font_in);
 ^
.pc/localtime.patch/graph.cpp:259:9: warning: inconclusive: Either the condition '!fh' is redundant or there is possible null pointer dereference: fh. [nullPointerRedundantCheck]
 fclose(fh);
        ^
.pc/localtime.patch/graph.cpp:254:6: note: Assuming that condition '!fh' is not redundant
 if (!fh)
     ^
.pc/localtime.patch/graph.cpp:259:9: note: Null pointer dereference
 fclose(fh);
        ^
.pc/localtime.patch/graph.cpp:23:56: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 const char *err = gdImageStringFT(NULL, &brect[0], 0, (char *)font_descr.c_str(), font_height, 0., 0, 0, (char *)str.c_str());
                                                       ^
.pc/localtime.patch/graph.cpp:35:40: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 gdImageStringFT(im, &brect[0], color, (char *)font_descr.c_str(), font_height, 0., x, y, (char *)str.c_str());
                                       ^
.pc/localtime.patch/graph.cpp:88:73: style: inconclusive: Function 'do_draw' argument 4 names different: declaration 't' definition 'ts'. [funcArgNamesDifferent]
void graph::do_draw(int width, int height, std::string title, long int *ts, double *values, int n_values, char **result, size_t *result_len)
                                                                        ^
graph.h:14:67: note: Function 'do_draw' argument 4 names different: declaration 't' definition 'ts'.
 void do_draw(int width, int height, std::string title, long int *t, double *v, int n_values, char **result, size_t *result_len);
                                                                  ^
.pc/localtime.patch/graph.cpp:88:73: note: Function 'do_draw' argument 4 names different: declaration 't' definition 'ts'.
void graph::do_draw(int width, int height, std::string title, long int *ts, double *values, int n_values, char **result, size_t *result_len)
                                                                        ^
.pc/localtime.patch/graph.cpp:88:85: style: inconclusive: Function 'do_draw' argument 5 names different: declaration 'v' definition 'values'. [funcArgNamesDifferent]
void graph::do_draw(int width, int height, std::string title, long int *ts, double *values, int n_values, char **result, size_t *result_len)
                                                                                    ^
graph.h:14:78: note: Function 'do_draw' argument 5 names different: declaration 'v' definition 'values'.
 void do_draw(int width, int height, std::string title, long int *t, double *v, int n_values, char **result, size_t *result_len);
                                                                             ^
.pc/localtime.patch/graph.cpp:88:85: note: Function 'do_draw' argument 5 names different: declaration 'v' definition 'values'.
void graph::do_draw(int width, int height, std::string title, long int *ts, double *values, int n_values, char **result, size_t *result_len)
                                                                                    ^
.pc/localtime.patch/graph.cpp:11:26: performance: Parameter 'font_in' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
graph::graph(std::string font_in) : font(font_in)
                         ^
.pc/localtime.patch/graph.cpp:88:56: performance: Parameter 'title' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void graph::do_draw(int width, int height, std::string title, long int *ts, double *values, int n_values, char **result, size_t *result_len)
                                                       ^
.pc/localtime.patch/graph.cpp:88:73: style: Parameter 'ts' can be declared as pointer to const [constParameterPointer]
void graph::do_draw(int width, int height, std::string title, long int *ts, double *values, int n_values, char **result, size_t *result_len)
                                                                        ^
.pc/localtime.patch/graph.cpp:88:85: style: Parameter 'values' can be declared as pointer to const [constParameterPointer]
void graph::do_draw(int width, int height, std::string title, long int *ts, double *values, int n_values, char **result, size_t *result_len)
                                                                                    ^
.pc/localtime.patch/graph.cpp:160:14: style: Variable 'tm' can be declared as pointer to const [constVariablePointer]
  struct tm *tm = localtime(&epoch);
             ^
ComScire_R2000KU/qwqng.hpp:116:0: information: Include file: "stdint.h" not found. [missingInclude]
#include "stdint.h"
^
ComScire_R2000KU/qwqng.hpp:117:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
ComScire_R2000KU/qwqng.hpp:118:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
ComScire_R2000KU/qwqng.hpp:119:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
ComScire_R2000KU/qwqng.hpp:121:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
ComScire_R2000KU/qwqng.hpp:122:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
ComScire_R2000KU/qwqng.hpp:123:0: information: Include file: <ftdi.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <ftdi.h>
^
ComScire_R2000KU/qwqng.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
ComScire_R2000KU/qwqng.hpp:173:34: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn]
  QWQNG& operator=(QWQNG const&){};
                                 ^
ComScire_R2000KU/qwqng.hpp:300:45: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn]
    QngStatus& operator=(QngStatus const&) {};
                                            ^
ComScire_R2000KU/qwqng.cpp:51:8: warning: Member variable 'QWQNG::statusString_' is not initialized in the constructor. Member variables of native types, pointers, or references are left uninitialized when the class is instantiated. That may cause bugs or undefined behavior. [uninitMemberVarPrivate]
QWQNG::QWQNG() : pDevice(NULL) {
       ^
ComScire_R2000KU/qwqng.cpp:51:8: warning: Member variable 'QWQNG::devId_' is not initialized in the constructor. Member variables of native types, pointers, or references are left uninitialized when the class is instantiated. That may cause bugs or undefined behavior. [uninitMemberVarPrivate]
QWQNG::QWQNG() : pDevice(NULL) {
       ^
ComScire_R2000KU/qwqng.hpp:170:3: warning: Member variable 'QWQNG::pDevice' is not initialized in the copy constructor. Member variables of native types, pointers, or references are left uninitialized when the class is instantiated. That may cause bugs or undefined behavior. [uninitMemberVarPrivate]
  QWQNG(QWQNG const&){};
  ^
ComScire_R2000KU/qwqng.hpp:170:3: warning: Member variable 'QWQNG::statusString_' is not initialized in the copy constructor. Member variables of native types, pointers, or references are left uninitialized when the class is instantiated. That may cause bugs or undefined behavior. [uninitMemberVarPrivate]
  QWQNG(QWQNG const&){};
  ^
ComScire_R2000KU/qwqng.hpp:170:3: warning: Member variable 'QWQNG::devId_' is not initialized in the copy constructor. Member variables of native types, pointers, or references are left uninitialized when the class is instantiated. That may cause bugs or undefined behavior. [uninitMemberVarPrivate]
  QWQNG(QWQNG const&){};
  ^
ComScire_R2000KU/qwqng.hpp:173:10: warning: Member variable 'QWQNG::pDevice' is not assigned a value in 'QWQNG::operator='. [operatorEqVarError]
  QWQNG& operator=(QWQNG const&){};
         ^
ComScire_R2000KU/qwqng.hpp:173:10: warning: Member variable 'QWQNG::statusString_' is not assigned a value in 'QWQNG::operator='. [operatorEqVarError]
  QWQNG& operator=(QWQNG const&){};
         ^
ComScire_R2000KU/qwqng.hpp:173:10: warning: Member variable 'QWQNG::devId_' is not assigned a value in 'QWQNG::operator='. [operatorEqVarError]
  QWQNG& operator=(QWQNG const&){};
         ^
ComScire_R2000KU/qwqng.hpp:297:5: warning: Member variable 'QngStatus::status_' is not initialized in the copy constructor. Member variables of native types, pointers, or references are left uninitialized when the class is instantiated. That may cause bugs or undefined behavior. [uninitMemberVarPrivate]
    QngStatus(QngStatus const&) {};
    ^
ComScire_R2000KU/qwqng.hpp:297:5: warning: inconclusive: Member variable 'QngStatus::statusString_' is not assigned in the copy constructor. Should it be copied? [missingMemberCopy]
    QngStatus(QngStatus const&) {};
    ^
ComScire_R2000KU/qwqng.hpp:300:16: warning: Member variable 'QngStatus::status_' is not assigned a value in 'QngStatus::operator='. [operatorEqVarError]
    QngStatus& operator=(QngStatus const&) {};
               ^
ComScire_R2000KU/qwqng.hpp:300:16: warning: inconclusive: Member variable 'QngStatus::statusString_' is not assigned a value in 'QngStatus::operator='. [operatorEqVarError]
    QngStatus& operator=(QngStatus const&) {};
               ^
ComScire_R2000KU/qwqng.hpp:173:10: style: 'operator=' should return reference to 'this' instance. [operatorEqRetRefThis]
  QWQNG& operator=(QWQNG const&){};
         ^
ComScire_R2000KU/qwqng.hpp:300:16: style: 'operator=' should return reference to 'this' instance. [operatorEqRetRefThis]
    QngStatus& operator=(QngStatus const&) {};
               ^
ComScire_R2000KU/qwqng.hpp:274:12: performance: inconclusive: The member function 'FtdiDevice::Uint48ToUniform' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances? And maybe it is more appropriate to move this function to an unnamed namespace. [functionStatic]
    double Uint48ToUniform(uint64_t uint48);
           ^
ComScire_R2000KU/qwqng.cpp:726:20: note: Technically the member function 'FtdiDevice::Uint48ToUniform' can be static (but you may consider moving to unnamed namespace).
double FtdiDevice::Uint48ToUniform(uint64_t uint48) {
                   ^
ComScire_R2000KU/qwqng.hpp:274:12: note: Technically the member function 'FtdiDevice::Uint48ToUniform' can be static (but you may consider moving to unnamed namespace).
    double Uint48ToUniform(uint64_t uint48);
           ^
ComScire_R2000KU/qwqng.hpp:275:11: performance: inconclusive: The member function 'FtdiDevice::CalcEntropy' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances? And maybe it is more appropriate to move this function to an unnamed namespace. [functionStatic]
    float CalcEntropy(double p);
          ^
ComScire_R2000KU/qwqng.cpp:737:19: note: Technically the member function 'FtdiDevice::CalcEntropy' can be static (but you may consider moving to unnamed namespace).
float FtdiDevice::CalcEntropy(double p) {
                  ^
ComScire_R2000KU/qwqng.hpp:275:11: note: Technically the member function 'FtdiDevice::CalcEntropy' can be static (but you may consider moving to unnamed namespace).
    float CalcEntropy(double p);
          ^
ComScire_R2000KU/qwqng.hpp:287:19: style: inconclusive: The member function 'QngStatus::GetStatus' can be made a const function. Making this function 'const' should not cause compiler errors. Even though the function can be made const function technically it may not make sense conceptually. Think about your design and the task of the function first - is it a function that must not change object internal state? [functionConst]
    unsigned long GetStatus();
                  ^
ComScire_R2000KU/qwqng.cpp:765:26: note: Technically the member function 'QngStatus::GetStatus' can be const.
unsigned long QngStatus::GetStatus() {
                         ^
ComScire_R2000KU/qwqng.hpp:287:19: note: Technically the member function 'QngStatus::GetStatus' can be const.
    unsigned long GetStatus();
                  ^
ComScire_R2000KU/qwqng.hpp:251:18: style: Virtual function 'Open' is called from constructor 'FtdiDevice()' at line 203. Dynamic binding is not used. [virtualCallInConstructor]
    virtual void Open();
                 ^
ComScire_R2000KU/qwqng.cpp:203:5: note: Calling Open
    Open();
    ^
ComScire_R2000KU/qwqng.hpp:251:18: note: Open is a virtual function
    virtual void Open();
                 ^
ComScire_R2000KU/qwqng.hpp:252:18: style: Virtual function 'Close' is called from destructor '~FtdiDevice()' at line 209. Dynamic binding is not used. [virtualCallInConstructor]
    virtual void Close();
                 ^
ComScire_R2000KU/qwqng.cpp:209:5: note: Calling Close
    Close();
    ^
ComScire_R2000KU/qwqng.hpp:252:18: note: Close is a virtual function
    virtual void Close();
                 ^
ComScire_R2000KU/qwqng.hpp:251:18: style: The function 'Open' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
    virtual void Open();
                 ^
ComScire_R2000KU/qwqng.hpp:188:18: note: Virtual function in base class
    virtual void Open() = 0;
                 ^
ComScire_R2000KU/qwqng.hpp:251:18: note: Function in derived class
    virtual void Open();
                 ^
ComScire_R2000KU/qwqng.hpp:252:18: style: The function 'Close' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
    virtual void Close();
                 ^
ComScire_R2000KU/qwqng.hpp:189:18: note: Virtual function in base class
    virtual void Close() = 0;
                 ^
ComScire_R2000KU/qwqng.hpp:252:18: note: Function in derived class
    virtual void Close();
                 ^
ComScire_R2000KU/qwqng.hpp:253:18: style: The function 'Clear' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
    virtual void Clear();
                 ^
ComScire_R2000KU/qwqng.hpp:190:18: note: Virtual function in base class
    virtual void Clear() = 0;
                 ^
ComScire_R2000KU/qwqng.hpp:253:18: note: Function in derived class
    virtual void Clear();
                 ^
ComScire_R2000KU/qwqng.hpp:254:18: style: The function 'Reset' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
    virtual void Reset();
                 ^
ComScire_R2000KU/qwqng.hpp:191:18: note: Virtual function in base class
    virtual void Reset() = 0;
                 ^
ComScire_R2000KU/qwqng.hpp:254:18: note: Function in derived class
    virtual void Reset();
                 ^
ComScire_R2000KU/qwqng.hpp:255:18: style: The function 'GetBytes' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
    virtual void GetBytes(char* bytes, int bytesRequested);
                 ^
ComScire_R2000KU/qwqng.hpp:193:18: note: Virtual function in base class
    virtual void GetBytes(char* bytes, int bytesRequested) = 0;
                 ^
ComScire_R2000KU/qwqng.hpp:255:18: note: Function in derived class
    virtual void GetBytes(char* bytes, int bytesRequested);
                 ^
ComScire_R2000KU/qwqng.hpp:256:18: style: The function 'GetInt32' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
    virtual void GetInt32(int32_t* int32);
                 ^
ComScire_R2000KU/qwqng.hpp:194:18: note: Virtual function in base class
    virtual void GetInt32(int32_t* int32) = 0;
                 ^
ComScire_R2000KU/qwqng.hpp:256:18: note: Function in derived class
    virtual void GetInt32(int32_t* int32);
                 ^
ComScire_R2000KU/qwqng.hpp:257:18: style: The function 'GetUniform' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
    virtual void GetUniform(double* uniform);
                 ^
ComScire_R2000KU/qwqng.hpp:195:18: note: Virtual function in base class
    virtual void GetUniform(double* uniform) = 0;
                 ^
ComScire_R2000KU/qwqng.hpp:257:18: note: Function in derived class
    virtual void GetUniform(double* uniform);
                 ^
ComScire_R2000KU/qwqng.hpp:258:18: style: The function 'GetNormal' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
    virtual void GetNormal(double* normal);
                 ^
ComScire_R2000KU/qwqng.hpp:196:18: note: Virtual function in base class
    virtual void GetNormal(double* normal) = 0;
                 ^
ComScire_R2000KU/qwqng.hpp:258:18: note: Function in derived class
    virtual void GetNormal(double* normal);
                 ^
ComScire_R2000KU/qwqng.hpp:259:18: style: The function 'GetRuntimeInfo' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
    virtual void GetRuntimeInfo(float* runtimeInfo);
                 ^
ComScire_R2000KU/qwqng.hpp:198:18: note: Virtual function in base class
    virtual void GetRuntimeInfo(float* testData) = 0;
                 ^
ComScire_R2000KU/qwqng.hpp:259:18: note: Function in derived class
    virtual void GetRuntimeInfo(float* runtimeInfo);
                 ^
ComScire_R2000KU/qwqng.cpp:53:13: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
  pDevice = (IDevice*)new FtdiDevice(); // create new instance
            ^
ComScire_R2000KU/qwqng.cpp:97:21: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
  pDevice->GetInt32((int32_t*)pVal);
                    ^
ComScire_R2000KU/qwqng.cpp:609:41: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
    ftdiStatus = ftdi_read_data(&ftdic, (unsigned char*)receiveBuffer, bytesRequested);
                                        ^
ComScire_R2000KU/qwqng.cpp:629:41: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
    ftdiStatus = ftdi_read_data(&ftdic, (unsigned char*)receiveBuffer, bytesRequested);
                                        ^
ComScire_R2000KU/qwqng.cpp:645:42: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
    ftdiStatus = ftdi_write_data(&ftdic, (unsigned char*)transmitBuffer, bytesToTransmit);
                                         ^
ComScire_R2000KU/qwqng.cpp:434:9: style: The scope of the variable 'ret' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced:
void f(int x)
{
    int i = 0;
    if (x) {
        // it's safe to move 'int i = 0;' here
        for (int n = 0; n < 10; ++n) {
            // it is possible but not safe to move 'int i = 0;' here
            do_something(&i);
        }
    }
}
When you see this message it is always safe to reduce the variable scope 1 level. [variableScope]
    int ret=0;  // # of devices returned status
        ^
ComScire_R2000KU/qwqng.cpp:71:15: performance: inconclusive: The const variable 'statusString' is assigned a copy of the data. You can avoid the unnecessary data copying by converting 'statusString' to const reference. [redundantCopyLocalConst]
  std::string statusString = QngStatus::Instance().GetStatusString();
              ^
ComScire_R2000KU/qwqng.cpp:84:15: performance: inconclusive: The const variable 'deviceId' is assigned a copy of the data. You can avoid the unnecessary data copying by converting 'deviceId' to const reference. [redundantCopyLocalConst]
  std::string deviceId = pDevice->GetDeviceId();
              ^
ComScire_R2000KU/qwqng.cpp:434:12: style: Variable 'ret' is assigned a value that is never used. [unreadVariable]
    int ret=0;  // # of devices returned status
           ^
auth.cpp:1:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
auth.cpp:2:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
auth.cpp:3:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
auth.cpp:4:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
auth.cpp:5:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
auth.cpp:6:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
auth.cpp:7:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
auth.cpp:8:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
auth.cpp:9:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
auth.cpp:10:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
auth.cpp:11:0: information: Include file: <fstream> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fstream>
^
auth.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
auth.cpp:123:16: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 hh -> do_hash((unsigned char *)hash_cmp_str, hash_cmp_str_len, reinterpret_cast<unsigned char *>(hash_cmp));
               ^
auth.cpp:288:16: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 hh -> do_hash((unsigned char *)hash_cmp_str, hash_cmp_str_len, reinterpret_cast<unsigned char *>(hash_cmp));
               ^
auth.cpp:34:262: performance: Parameter 'handshake_hash' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
int auth_eb_user(int fd, int to, users *user_map, std::string & username_out, std::string & password, long long unsigned int *challenge, bool is_proxy_auth, bool *is_server_in, std::string & type, random_source *rs, encrypt_stream *es, hasher *mac, std::string handshake_hash, unsigned int max_get_put_size, statistics_global *sg)
                                                                                                                                                                                                                                                                     ^
auth.cpp:189:234: performance: Parameter 'handshake_hash' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
int auth_eb(int fd, int to, users *user_map, std::string & username, std::string & password, long long unsigned int *challenge, bool *is_server_in, std::string & type, random_source *rs, encrypt_stream *enc, hasher *mac, std::string handshake_hash, unsigned int max_get_put_size, statistics_global *sg)
                                                                                                                                                                                                                                         ^
auth.cpp:229:156: performance: Parameter 'type' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
int auth_client_server_user(int fd, int to, std::string & username, std::string & password, long long unsigned int *challenge, bool is_server, std::string type, std::string & cd, std::string & mh, unsigned int *max_get_put_size)
                                                                                                                                                           ^
auth.cpp:330:151: performance: Parameter 'type' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
int auth_client_server(int fd, int to, std::string & username, std::string & password, long long unsigned int *challenge, bool is_server, std::string type, std::string & cd, std::string &mh, unsigned int *max_get_put_size)
                                                                                                                                                      ^
auth.cpp:229:59: style: Parameter 'username' can be declared as reference to const [constParameterReference]
int auth_client_server_user(int fd, int to, std::string & username, std::string & password, long long unsigned int *challenge, bool is_server, std::string type, std::string & cd, std::string & mh, unsigned int *max_get_put_size)
                                                          ^
auth.cpp:229:83: style: Parameter 'password' can be declared as reference to const [constParameterReference]
int auth_client_server_user(int fd, int to, std::string & username, std::string & password, long long unsigned int *challenge, bool is_server, std::string type, std::string & cd, std::string & mh, unsigned int *max_get_put_size)
                                                                                  ^
client_egd.cpp:1:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
client_egd.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
client_egd.cpp:3:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
client_egd.cpp:4:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
client_egd.cpp:5:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
client_egd.cpp:6:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
client_egd.cpp:7:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
client_egd.cpp:8:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
client_egd.cpp:9:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
client_egd.cpp:10:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
client_egd.cpp:11:0: information: Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fcntl.h>
^
client_egd.cpp:12:0: information: Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <errno.h>
^
client_egd.cpp:13:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
client_egd.cpp:14:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
client_egd.cpp:15:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
client_egd.cpp:16:0: information: Include file: <stddef.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stddef.h>
^
client_egd.cpp:17:0: information: Include file: <sys/socket.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/socket.h>
^
client_egd.cpp:18:0: information: Include file: <sys/un.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/un.h>
^
client_egd.cpp:255:27: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro]
 printf("eb_client_egd v" VERSION ", (C) 2009-2015 by folkert@vanheusden.com\n");
                          ^
client_file.cpp:1:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
client_file.cpp:2:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
client_file.cpp:3:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
client_file.cpp:4:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
client_file.cpp:5:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
client_file.cpp:6:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
client_file.cpp:7:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
client_file.cpp:8:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
client_file.cpp:9:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
client_file.cpp:10:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
client_file.cpp:11:0: information: Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fcntl.h>
^
client_file.cpp:12:0: information: Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <errno.h>
^
client_file.cpp:13:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
client_file.cpp:14:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
client_file.cpp:15:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
client_file.cpp:16:0: information: Include file: <stddef.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stddef.h>
^
client_file.cpp:17:0: information: Include file: <sys/socket.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/socket.h>
^
client_file.cpp:18:0: information: Include file: <sys/un.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/un.h>
^
client_file.cpp:19:0: information: Include file: <libgen.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <libgen.h>
^
client_file.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
client_file.cpp:57:6: style: The if condition is the same as the previous if condition [duplicateCondition]
 if (is_eb_client_file)
     ^
client_file.cpp:55:6: note: First condition
 if (is_eb_client_file)
     ^
client_file.cpp:57:6: note: Second condition
 if (is_eb_client_file)
     ^
client_linux_kernel.cpp:1:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
client_linux_kernel.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
client_linux_kernel.cpp:3:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
client_linux_kernel.cpp:4:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
client_linux_kernel.cpp:5:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
client_linux_kernel.cpp:6:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
client_linux_kernel.cpp:7:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
client_linux_kernel.cpp:8:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
client_linux_kernel.cpp:9:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
client_linux_kernel.cpp:10:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
client_linux_kernel.cpp:11:0: information: Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fcntl.h>
^
client_linux_kernel.cpp:12:0: information: Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <errno.h>
^
client_linux_kernel.cpp:13:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
client_linux_kernel.cpp:14:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
client_linux_kernel.cpp:71:36: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro]
 printf("eb_client_linux_kernel v" VERSION ", (C) 2009-2015 by folkert@vanheusden.com\n");
                                   ^
config.cpp:1:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
config.cpp:2:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
config.cpp:3:0: information: Include file: <limits.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <limits.h>
^
config.cpp:4:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
config.cpp:5:0: information: Include file: <libgen.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <libgen.h>
^
config.cpp:6:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
config.cpp:7:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
config.cpp:8:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
config.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
config.cpp:120:68: warning: Either the condition '!fh' is redundant or there is possible null pointer dereference: fh. [nullPointerRedundantCheck]
                char *cmd = fgets(read_buffer, sizeof read_buffer, fh), *is;
                                                                   ^
config.cpp:50:13: note: Assuming that condition '!fh' is not redundant
        if (!fh)
            ^
config.cpp:120:68: note: Null pointer dereference
                char *cmd = fgets(read_buffer, sizeof read_buffer, fh), *is;
                                                                   ^
config.cpp:140:18: warning: Either the condition '!is' is redundant or there is possible null pointer dereference: is. [nullPointerRedundantCheck]
                *is = 0x00;
                 ^
config.cpp:137:21: note: Assuming that condition '!is' is not redundant
                if (!is)
                    ^
config.cpp:140:18: note: Null pointer dereference
                *is = 0x00;
                 ^
config.cpp:141:26: warning: Either the condition '!is' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck]
                par = is + 1;
                         ^
config.cpp:137:21: note: Assuming that condition '!is' is not redundant
                if (!is)
                    ^
config.cpp:141:26: note: Null pointer addition
                par = is + 1;
                         ^
data_logger.cpp:1:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
data_logger.cpp:2:0: information: Include file: <pthread.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <pthread.h>
^
data_logger.cpp:3:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
data_logger.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
data_logger.cpp:5:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
data_logger.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
data_store_int.h:25:6: style: inconclusive: The member function 'data_store_int::get_cur_t' can be made a const function. Making this function 'const' should not cause compiler errors. Even though the function can be made const function technically it may not make sense conceptually. Think about your design and the task of the function first - is it a function that must not change object internal state? [functionConst]
 int get_cur_t() { return cur_t; }
     ^
data_store_int.h:26:6: style: inconclusive: The member function 'data_store_int::get_n_samples' can be made a const function. Making this function 'const' should not cause compiler errors. Even though the function can be made const function technically it may not make sense conceptually. Think about your design and the task of the function first - is it a function that must not change object internal state? [functionConst]
 int get_n_samples() { return n_samples; }
     ^
data_store_int.h:27:6: style: inconclusive: The member function 'data_store_int::get_interval' can be made a const function. Making this function 'const' should not cause compiler errors. Even though the function can be made const function technically it may not make sense conceptually. Think about your design and the task of the function first - is it a function that must not change object internal state? [functionConst]
 int get_interval() { return interval; }
     ^
data_logger.cpp:50:3: warning: Class 'data_logger' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor]
  mem_pool_counts = new data_store_int(MEASURE_KEEP_N, MEASURE_INTERVAL);
  ^
data_logger.cpp:50:3: warning: Class 'data_logger' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq]
  mem_pool_counts = new data_store_int(MEASURE_KEEP_N, MEASURE_INTERVAL);
  ^
data_store_int.h:14:2: style: Class 'data_store_int' has a constructor with 1 argument that is not explicit. Such, so called "Converting constructors", should in general be explicit for type safety reasons as that prevents unintended implicit conversions. [noExplicitConstructor]
 data_store_int(std::string file);
 ^
data_store_int.cpp:1:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
data_store_int.cpp:2:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
data_store_int.cpp:3:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
data_store_int.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
data_store_int.cpp:5:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
data_store_int.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
data_store_int.h:17:7: style: inconclusive: The member function 'data_store_int::dump' can be made a const function. Making this function 'const' should not cause compiler errors. Even though the function can be made const function technically it may not make sense conceptually. Think about your design and the task of the function first - is it a function that must not change object internal state? [functionConst]
 void dump(std::string file);
      ^
data_store_int.cpp:57:22: note: Technically the member function 'data_store_int::dump' can be const.
void data_store_int::dump(std::string file)
                     ^
data_store_int.h:17:7: note: Technically the member function 'data_store_int::dump' can be const.
 void dump(std::string file);
      ^
data_store_int.h:21:7: style: inconclusive: The member function 'data_store_int::get' can be made a const function. Making this function 'const' should not cause compiler errors. Even though the function can be made const function technically it may not make sense conceptually. Think about your design and the task of the function first - is it a function that must not change object internal state? [functionConst]
 bool get(int index, double *value);
      ^
data_store_int.cpp:136:22: note: Technically the member function 'data_store_int::get' can be const.
bool data_store_int::get(int index, double *value)
                     ^
data_store_int.h:21:7: note: Technically the member function 'data_store_int::get' can be const.
 bool get(int index, double *value);
      ^
data_store_int.cpp:13:11: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 values = (long long int *)calloc(n_samples, sizeof(long long int));
          ^
data_store_int.cpp:14:11: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 counts = (int *)calloc(n_samples, sizeof(int));
          ^
data_store_int.cpp:15:10: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 valid = (bool *)calloc(n_samples, sizeof(bool));
         ^
data_store_int.cpp:33:11: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 values = (long long int *)calloc(n_samples, sizeof(long long int));
          ^
data_store_int.cpp:34:11: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 counts = (int *)calloc(n_samples, sizeof(int));
          ^
data_store_int.cpp:35:10: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 valid = (bool *)calloc(n_samples, sizeof(bool));
         ^
data_store_int.cpp:152:7: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 *t = (long int *)malloc(sizeof(long int) * n_samples);
      ^
data_store_int.cpp:153:7: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 *v = (double *)malloc(sizeof(double) * n_samples);
      ^
data_store_int.cpp:11:36: style: inconclusive: Function 'data_store_int' argument 1 names different: declaration 'n_samples' definition 'n_samples_in'. [funcArgNamesDifferent]
data_store_int::data_store_int(int n_samples_in, int interval_in) : n_samples(n_samples_in), interval(interval_in)
                                   ^
data_store_int.h:13:21: note: Function 'data_store_int' argument 1 names different: declaration 'n_samples' definition 'n_samples_in'.
 data_store_int(int n_samples, int interval);
                    ^
data_store_int.cpp:11:36: note: Function 'data_store_int' argument 1 names different: declaration 'n_samples' definition 'n_samples_in'.
data_store_int::data_store_int(int n_samples_in, int interval_in) : n_samples(n_samples_in), interval(interval_in)
                                   ^
data_store_int.cpp:11:54: style: inconclusive: Function 'data_store_int' argument 2 names different: declaration 'interval' definition 'interval_in'. [funcArgNamesDifferent]
data_store_int::data_store_int(int n_samples_in, int interval_in) : n_samples(n_samples_in), interval(interval_in)
                                                     ^
data_store_int.h:13:36: note: Function 'data_store_int' argument 2 names different: declaration 'interval' definition 'interval_in'.
 data_store_int(int n_samples, int interval);
                                   ^
data_store_int.cpp:11:54: note: Function 'data_store_int' argument 2 names different: declaration 'interval' definition 'interval_in'.
data_store_int::data_store_int(int n_samples_in, int interval_in) : n_samples(n_samples_in), interval(interval_in)
                                                     ^
data_store_int.cpp:20:44: performance: Parameter 'file' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
data_store_int::data_store_int(std::string file)
                                           ^
data_store_int.cpp:57:39: performance: Parameter 'file' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void data_store_int::dump(std::string file)
                                      ^
encrypt_stream.cpp:1:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
encrypt_stream.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
encrypt_stream_3des.h:1:0: information: Include file: <cryptopp/modes.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <cryptopp/modes.h>
^
encrypt_stream_3des.h:2:0: information: Include file: <cryptopp/des.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <cryptopp/des.h>
^
encrypt_stream_blowfish.h:1:0: information: Include file: <cryptopp/modes.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <cryptopp/modes.h>
^
encrypt_stream_blowfish.h:2:0: information: Include file: <cryptopp/blowfish.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <cryptopp/blowfish.h>
^
encrypt_stream_3des.h:12:3: style: The destructor '~encrypt_stream_3des' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride]
 ~encrypt_stream_3des();
  ^
encrypt_stream.h:5:11: note: Virtual destructor in base class
 virtual ~encrypt_stream();
          ^
encrypt_stream_3des.h:12:3: note: Destructor in derived class
 ~encrypt_stream_3des();
  ^
encrypt_stream_3des.h:14:6: style: The function 'get_ivec_size' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 int get_ivec_size();
     ^
encrypt_stream.h:9:14: note: Virtual function in base class
 virtual int get_ivec_size() = 0;
             ^
encrypt_stream_3des.h:14:6: note: Function in derived class
 int get_ivec_size();
     ^
encrypt_stream_3des.h:15:6: style: The function 'get_key_size' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 int get_key_size();
     ^
encrypt_stream.h:10:14: note: Virtual function in base class
 virtual int get_key_size() = 0;
             ^
encrypt_stream_3des.h:15:6: note: Function in derived class
 int get_key_size();
     ^
encrypt_stream_3des.h:17:7: style: The function 'init' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false);
      ^
encrypt_stream.h:12:15: note: Virtual function in base class
 virtual bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false) = 0;
              ^
encrypt_stream_3des.h:17:7: note: Function in derived class
 bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false);
      ^
encrypt_stream_3des.h:19:14: style: The function 'get_name' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 std::string get_name();
             ^
encrypt_stream.h:14:22: note: Virtual function in base class
 virtual std::string get_name() = 0;
                     ^
encrypt_stream_3des.h:19:14: note: Function in derived class
 std::string get_name();
             ^
encrypt_stream_3des.h:21:7: style: The function 'encrypt' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 void encrypt(unsigned char *p_in, int len, unsigned char *p_out);
      ^
encrypt_stream.h:16:15: note: Virtual function in base class
 virtual void encrypt(unsigned char *p_in, int len, unsigned char *p_out) = 0;
              ^
encrypt_stream_3des.h:21:7: note: Function in derived class
 void encrypt(unsigned char *p_in, int len, unsigned char *p_out);
      ^
encrypt_stream_3des.h:22:7: style: The function 'decrypt' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 void decrypt(unsigned char *p_in, int len, unsigned char *p_out);
      ^
encrypt_stream.h:17:15: note: Virtual function in base class
 virtual void decrypt(unsigned char *p_in, int len, unsigned char *p_out) = 0;
              ^
encrypt_stream_3des.h:22:7: note: Function in derived class
 void decrypt(unsigned char *p_in, int len, unsigned char *p_out);
      ^
encrypt_stream_blowfish.h:12:3: style: The destructor '~encrypt_stream_blowfish' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride]
 ~encrypt_stream_blowfish();
  ^
encrypt_stream.h:5:11: note: Virtual destructor in base class
 virtual ~encrypt_stream();
          ^
encrypt_stream_blowfish.h:12:3: note: Destructor in derived class
 ~encrypt_stream_blowfish();
  ^
encrypt_stream_blowfish.h:14:6: style: The function 'get_ivec_size' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 int get_ivec_size();
     ^
encrypt_stream.h:9:14: note: Virtual function in base class
 virtual int get_ivec_size() = 0;
             ^
encrypt_stream_blowfish.h:14:6: note: Function in derived class
 int get_ivec_size();
     ^
encrypt_stream_blowfish.h:15:6: style: The function 'get_key_size' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 int get_key_size();
     ^
encrypt_stream.h:10:14: note: Virtual function in base class
 virtual int get_key_size() = 0;
             ^
encrypt_stream_blowfish.h:15:6: note: Function in derived class
 int get_key_size();
     ^
encrypt_stream_blowfish.h:17:7: style: The function 'init' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false);
      ^
encrypt_stream.h:12:15: note: Virtual function in base class
 virtual bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false) = 0;
              ^
encrypt_stream_blowfish.h:17:7: note: Function in derived class
 bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false);
      ^
encrypt_stream_blowfish.h:19:14: style: The function 'get_name' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 std::string get_name();
             ^
encrypt_stream.h:14:22: note: Virtual function in base class
 virtual std::string get_name() = 0;
                     ^
encrypt_stream_blowfish.h:19:14: note: Function in derived class
 std::string get_name();
             ^
encrypt_stream_blowfish.h:21:7: style: The function 'encrypt' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 void encrypt(unsigned char *p_in, int len, unsigned char *p_out);
      ^
encrypt_stream.h:16:15: note: Virtual function in base class
 virtual void encrypt(unsigned char *p_in, int len, unsigned char *p_out) = 0;
              ^
encrypt_stream_blowfish.h:21:7: note: Function in derived class
 void encrypt(unsigned char *p_in, int len, unsigned char *p_out);
      ^
encrypt_stream_blowfish.h:22:7: style: The function 'decrypt' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 void decrypt(unsigned char *p_in, int len, unsigned char *p_out);
      ^
encrypt_stream.h:17:15: note: Virtual function in base class
 virtual void decrypt(unsigned char *p_in, int len, unsigned char *p_out) = 0;
              ^
encrypt_stream_blowfish.h:22:7: note: Function in derived class
 void decrypt(unsigned char *p_in, int len, unsigned char *p_out);
      ^
encrypt_stream.cpp:19:60: performance: Parameter 'type' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
encrypt_stream * encrypt_stream::select_cipher(std::string type)
                                                           ^
encrypt_stream_3des.cpp:1:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
encrypt_stream_3des.cpp:2:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
encrypt_stream_3des.cpp:3:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
encrypt_stream_3des.cpp:30:47: style: inconclusive: Function 'init' argument 1 names different: declaration 'key' definition 'key_in'. [funcArgNamesDifferent]
bool encrypt_stream_3des::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                              ^
encrypt_stream_3des.h:17:27: note: Function 'init' argument 1 names different: declaration 'key' definition 'key_in'.
 bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false);
                          ^
encrypt_stream_3des.cpp:30:47: note: Function 'init' argument 1 names different: declaration 'key' definition 'key_in'.
bool encrypt_stream_3des::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                              ^
encrypt_stream_3des.cpp:30:83: style: inconclusive: Function 'init' argument 3 names different: declaration 'ivec' definition 'ivec_in'. [funcArgNamesDifferent]
bool encrypt_stream_3des::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                                                                  ^
encrypt_stream_3des.h:17:60: note: Function 'init' argument 3 names different: declaration 'ivec' definition 'ivec_in'.
 bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false);
                                                           ^
encrypt_stream_3des.cpp:30:83: note: Function 'init' argument 3 names different: declaration 'ivec' definition 'ivec_in'.
bool encrypt_stream_3des::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                                                                  ^
encrypt_stream_3des.cpp:58:50: style: inconclusive: Function 'encrypt' argument 1 names different: declaration 'p_in' definition 'p'. [funcArgNamesDifferent]
void encrypt_stream_3des::encrypt(unsigned char *p, int len, unsigned char *p_out)
                                                 ^
encrypt_stream_3des.h:21:30: note: Function 'encrypt' argument 1 names different: declaration 'p_in' definition 'p'.
 void encrypt(unsigned char *p_in, int len, unsigned char *p_out);
                             ^
encrypt_stream_3des.cpp:58:50: note: Function 'encrypt' argument 1 names different: declaration 'p_in' definition 'p'.
void encrypt_stream_3des::encrypt(unsigned char *p, int len, unsigned char *p_out)
                                                 ^
encrypt_stream_3des.cpp:75:50: style: inconclusive: Function 'decrypt' argument 1 names different: declaration 'p_in' definition 'p'. [funcArgNamesDifferent]
void encrypt_stream_3des::decrypt(unsigned char *p, int len, unsigned char *p_out)
                                                 ^
encrypt_stream_3des.h:22:30: note: Function 'decrypt' argument 1 names different: declaration 'p_in' definition 'p'.
 void decrypt(unsigned char *p_in, int len, unsigned char *p_out);
                             ^
encrypt_stream_3des.cpp:75:50: note: Function 'decrypt' argument 1 names different: declaration 'p_in' definition 'p'.
void encrypt_stream_3des::decrypt(unsigned char *p, int len, unsigned char *p_out)
                                                 ^
encrypt_stream_aes.cpp:1:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
encrypt_stream_aes.cpp:2:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
encrypt_stream_aes.cpp:3:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
encrypt_stream_aes.cpp:4:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
encrypt_stream_aes.cpp:33:46: style: inconclusive: Function 'init' argument 1 names different: declaration 'key' definition 'key_in'. [funcArgNamesDifferent]
bool encrypt_stream_aes::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                             ^
encrypt_stream_aes.h:17:27: note: Function 'init' argument 1 names different: declaration 'key' definition 'key_in'.
 bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false);
                          ^
encrypt_stream_aes.cpp:33:46: note: Function 'init' argument 1 names different: declaration 'key' definition 'key_in'.
bool encrypt_stream_aes::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                             ^
encrypt_stream_aes.cpp:33:82: style: inconclusive: Function 'init' argument 3 names different: declaration 'ivec' definition 'ivec_in'. [funcArgNamesDifferent]
bool encrypt_stream_aes::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                                                                 ^
encrypt_stream_aes.h:17:60: note: Function 'init' argument 3 names different: declaration 'ivec' definition 'ivec_in'.
 bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false);
                                                           ^
encrypt_stream_aes.cpp:33:82: note: Function 'init' argument 3 names different: declaration 'ivec' definition 'ivec_in'.
bool encrypt_stream_aes::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                                                                 ^
encrypt_stream_aes.cpp:59:49: style: inconclusive: Function 'encrypt' argument 1 names different: declaration 'p_in' definition 'p'. [funcArgNamesDifferent]
void encrypt_stream_aes::encrypt(unsigned char *p, int len, unsigned char *p_out)
                                                ^
encrypt_stream_aes.h:21:30: note: Function 'encrypt' argument 1 names different: declaration 'p_in' definition 'p'.
 void encrypt(unsigned char *p_in, int len, unsigned char *p_out);
                             ^
encrypt_stream_aes.cpp:59:49: note: Function 'encrypt' argument 1 names different: declaration 'p_in' definition 'p'.
void encrypt_stream_aes::encrypt(unsigned char *p, int len, unsigned char *p_out)
                                                ^
encrypt_stream_aes.cpp:76:49: style: inconclusive: Function 'decrypt' argument 1 names different: declaration 'p_in' definition 'p'. [funcArgNamesDifferent]
void encrypt_stream_aes::decrypt(unsigned char *p, int len, unsigned char *p_out)
                                                ^
encrypt_stream_aes.h:22:30: note: Function 'decrypt' argument 1 names different: declaration 'p_in' definition 'p'.
 void decrypt(unsigned char *p_in, int len, unsigned char *p_out);
                             ^
encrypt_stream_aes.cpp:76:49: note: Function 'decrypt' argument 1 names different: declaration 'p_in' definition 'p'.
void encrypt_stream_aes::decrypt(unsigned char *p, int len, unsigned char *p_out)
                                                ^
encrypt_stream_blowfish.cpp:1:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
encrypt_stream_blowfish.cpp:2:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
encrypt_stream_blowfish.cpp:3:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
encrypt_stream_blowfish.cpp:4:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
encrypt_stream_blowfish.cpp:32:51: style: inconclusive: Function 'init' argument 1 names different: declaration 'key' definition 'key_in'. [funcArgNamesDifferent]
bool encrypt_stream_blowfish::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                                  ^
encrypt_stream_blowfish.h:17:27: note: Function 'init' argument 1 names different: declaration 'key' definition 'key_in'.
 bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false);
                          ^
encrypt_stream_blowfish.cpp:32:51: note: Function 'init' argument 1 names different: declaration 'key' definition 'key_in'.
bool encrypt_stream_blowfish::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                                  ^
encrypt_stream_blowfish.cpp:32:87: style: inconclusive: Function 'init' argument 3 names different: declaration 'ivec' definition 'ivec_in'. [funcArgNamesDifferent]
bool encrypt_stream_blowfish::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                                                                      ^
encrypt_stream_blowfish.h:17:60: note: Function 'init' argument 3 names different: declaration 'ivec' definition 'ivec_in'.
 bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false);
                                                           ^
encrypt_stream_blowfish.cpp:32:87: note: Function 'init' argument 3 names different: declaration 'ivec' definition 'ivec_in'.
bool encrypt_stream_blowfish::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                                                                      ^
encrypt_stream_blowfish.cpp:56:54: style: inconclusive: Function 'encrypt' argument 1 names different: declaration 'p_in' definition 'p'. [funcArgNamesDifferent]
void encrypt_stream_blowfish::encrypt(unsigned char *p, int len, unsigned char *p_out)
                                                     ^
encrypt_stream_blowfish.h:21:30: note: Function 'encrypt' argument 1 names different: declaration 'p_in' definition 'p'.
 void encrypt(unsigned char *p_in, int len, unsigned char *p_out);
                             ^
encrypt_stream_blowfish.cpp:56:54: note: Function 'encrypt' argument 1 names different: declaration 'p_in' definition 'p'.
void encrypt_stream_blowfish::encrypt(unsigned char *p, int len, unsigned char *p_out)
                                                     ^
encrypt_stream_blowfish.cpp:73:54: style: inconclusive: Function 'decrypt' argument 1 names different: declaration 'p_in' definition 'p'. [funcArgNamesDifferent]
void encrypt_stream_blowfish::decrypt(unsigned char *p, int len, unsigned char *p_out)
                                                     ^
encrypt_stream_blowfish.h:22:30: note: Function 'decrypt' argument 1 names different: declaration 'p_in' definition 'p'.
 void decrypt(unsigned char *p_in, int len, unsigned char *p_out);
                             ^
encrypt_stream_blowfish.cpp:73:54: note: Function 'decrypt' argument 1 names different: declaration 'p_in' definition 'p'.
void encrypt_stream_blowfish::decrypt(unsigned char *p, int len, unsigned char *p_out)
                                                     ^
encrypt_stream_camellia.cpp:1:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
encrypt_stream_camellia.cpp:2:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
encrypt_stream_camellia.cpp:3:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
encrypt_stream_camellia.cpp:4:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
encrypt_stream_camellia.cpp:33:51: style: inconclusive: Function 'init' argument 1 names different: declaration 'key' definition 'key_in'. [funcArgNamesDifferent]
bool encrypt_stream_camellia::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                                  ^
encrypt_stream_camellia.h:17:27: note: Function 'init' argument 1 names different: declaration 'key' definition 'key_in'.
 bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false);
                          ^
encrypt_stream_camellia.cpp:33:51: note: Function 'init' argument 1 names different: declaration 'key' definition 'key_in'.
bool encrypt_stream_camellia::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                                  ^
encrypt_stream_camellia.cpp:33:87: style: inconclusive: Function 'init' argument 3 names different: declaration 'ivec' definition 'ivec_in'. [funcArgNamesDifferent]
bool encrypt_stream_camellia::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                                                                      ^
encrypt_stream_camellia.h:17:60: note: Function 'init' argument 3 names different: declaration 'ivec' definition 'ivec_in'.
 bool init(unsigned char *key, int key_len, unsigned char *ivec, bool force=false);
                                                           ^
encrypt_stream_camellia.cpp:33:87: note: Function 'init' argument 3 names different: declaration 'ivec' definition 'ivec_in'.
bool encrypt_stream_camellia::init(unsigned char *key_in, int key_len, unsigned char *ivec_in, bool force)
                                                                                      ^
encrypt_stream_camellia.cpp:60:54: style: inconclusive: Function 'encrypt' argument 1 names different: declaration 'p_in' definition 'p'. [funcArgNamesDifferent]
void encrypt_stream_camellia::encrypt(unsigned char *p, int len, unsigned char *p_out)
                                                     ^
encrypt_stream_camellia.h:21:30: note: Function 'encrypt' argument 1 names different: declaration 'p_in' definition 'p'.
 void encrypt(unsigned char *p_in, int len, unsigned char *p_out);
                             ^
encrypt_stream_camellia.cpp:60:54: note: Function 'encrypt' argument 1 names different: declaration 'p_in' definition 'p'.
void encrypt_stream_camellia::encrypt(unsigned char *p, int len, unsigned char *p_out)
                                                     ^
encrypt_stream_camellia.cpp:77:54: style: inconclusive: Function 'decrypt' argument 1 names different: declaration 'p_in' definition 'p'. [funcArgNamesDifferent]
void encrypt_stream_camellia::decrypt(unsigned char *p, int len, unsigned char *p_out)
                                                     ^
encrypt_stream_camellia.h:22:30: note: Function 'decrypt' argument 1 names different: declaration 'p_in' definition 'p'.
 void decrypt(unsigned char *p_in, int len, unsigned char *p_out);
                             ^
encrypt_stream_camellia.cpp:77:54: note: Function 'decrypt' argument 1 names different: declaration 'p_in' definition 'p'.
void encrypt_stream_camellia::decrypt(unsigned char *p, int len, unsigned char *p_out)
                                                     ^
error.cpp:1:0: information: Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <errno.h>
^
error.cpp:2:0: information: Include file: <stdarg.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdarg.h>
^
error.cpp:3:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
error.cpp:4:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
error.cpp:5:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
error.cpp:6:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
error.cpp:7:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
error.cpp:8:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
error.cpp:9:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
error.cpp:10:0: information: Include file: <syslog.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <syslog.h>
^
error.cpp:11:0: information: Include file: <execinfo.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <execinfo.h>
^
fips140.cpp:28:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
fips140.cpp:29:0: information: Include file: <stdarg.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdarg.h>
^
fips140.cpp:30:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
fips140.cpp:31:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
fips140.cpp:32:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
fips140.cpp:33:0: information: Include file: <syslog.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <syslog.h>
^
fips140.cpp:34:0: information: Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <errno.h>
^
fips140.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
graph.cpp:1:0: information: Include file: <gd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <gd.h>
^
graph.cpp:3:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
graph.cpp:4:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
graph.cpp:5:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
graph.cpp:6:0: information: Include file: <ctime> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <ctime>
^
graph.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
graph.h:6:7: performance: inconclusive: The member function 'graph::calc_text_width' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances? And maybe it is more appropriate to move this function to an unnamed namespace. [functionStatic]
 void calc_text_width(std::string font_descr, double font_height, std::string str, int *width, int *height);
      ^
graph.cpp:20:13: note: Technically the member function 'graph::calc_text_width' can be static (but you may consider moving to unnamed namespace).
void graph::calc_text_width(std::string font_descr, double font_height, std::string str, int *width, int *height)
            ^
graph.h:6:7: note: Technically the member function 'graph::calc_text_width' can be static (but you may consider moving to unnamed namespace).
 void calc_text_width(std::string font_descr, double font_height, std::string str, int *width, int *height);
      ^
graph.h:7:7: performance: inconclusive: The member function 'graph::draw_text' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances? And maybe it is more appropriate to move this function to an unnamed namespace. [functionStatic]
 void draw_text(gdImagePtr im, std::string font_descr, double font_height, int color, std::string str, int x, int y);
      ^
graph.cpp:32:13: note: Technically the member function 'graph::draw_text' can be static (but you may consider moving to unnamed namespace).
void graph::draw_text(gdImagePtr im, std::string font_descr, double font_height, int color, std::string str, int x, int y)
            ^
graph.h:7:7: note: Technically the member function 'graph::draw_text' can be static (but you may consider moving to unnamed namespace).
 void draw_text(gdImagePtr im, std::string font_descr, double font_height, int color, std::string str, int x, int y);
      ^
graph.h:8:14: performance: inconclusive: The member function 'graph::shorten' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances? And maybe it is more appropriate to move this function to an unnamed namespace. [functionStatic]
 std::string shorten(double value);
             ^
graph.cpp:39:20: note: Technically the member function 'graph::shorten' can be static (but you may consider moving to unnamed namespace).
std::string graph::shorten(double value)
                   ^
graph.h:8:14: note: Technically the member function 'graph::shorten' can be static (but you may consider moving to unnamed namespace).
 std::string shorten(double value);
             ^
graph.cpp:260:9: warning: inconclusive: Either the condition '!fh' is redundant or there is possible null pointer dereference: fh. [nullPointerRedundantCheck]
 fclose(fh);
        ^
graph.cpp:255:6: note: Assuming that condition '!fh' is not redundant
 if (!fh)
     ^
graph.cpp:260:9: note: Null pointer dereference
 fclose(fh);
        ^
graph.cpp:24:56: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 const char *err = gdImageStringFT(NULL, &brect[0], 0, (char *)font_descr.c_str(), font_height, 0., 0, 0, (char *)str.c_str());
                                                       ^
graph.cpp:36:40: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 gdImageStringFT(im, &brect[0], color, (char *)font_descr.c_str(), font_height, 0., x, y, (char *)str.c_str());
                                       ^
graph.cpp:89:73: style: inconclusive: Function 'do_draw' argument 4 names different: declaration 't' definition 'ts'. [funcArgNamesDifferent]
void graph::do_draw(int width, int height, std::string title, long int *ts, double *values, int n_values, char **result, size_t *result_len)
                                                                        ^
graph.h:14:67: note: Function 'do_draw' argument 4 names different: declaration 't' definition 'ts'.
 void do_draw(int width, int height, std::string title, long int *t, double *v, int n_values, char **result, size_t *result_len);
                                                                  ^
graph.cpp:89:73: note: Function 'do_draw' argument 4 names different: declaration 't' definition 'ts'.
void graph::do_draw(int width, int height, std::string title, long int *ts, double *values, int n_values, char **result, size_t *result_len)
                                                                        ^
graph.cpp:89:85: style: inconclusive: Function 'do_draw' argument 5 names different: declaration 'v' definition 'values'. [funcArgNamesDifferent]
void graph::do_draw(int width, int height, std::string title, long int *ts, double *values, int n_values, char **result, size_t *result_len)
                                                                                    ^
graph.h:14:78: note: Function 'do_draw' argument 5 names different: declaration 'v' definition 'values'.
 void do_draw(int width, int height, std::string title, long int *t, double *v, int n_values, char **result, size_t *result_len);
                                                                             ^
graph.cpp:89:85: note: Function 'do_draw' argument 5 names different: declaration 'v' definition 'values'.
void graph::do_draw(int width, int height, std::string title, long int *ts, double *values, int n_values, char **result, size_t *result_len)
                                                                                    ^
graph.cpp:12:26: performance: Parameter 'font_in' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
graph::graph(std::string font_in) : font(font_in)
                         ^
graph.cpp:89:56: performance: Parameter 'title' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void graph::do_draw(int width, int height, std::string title, long int *ts, double *values, int n_values, char **result, size_t *result_len)
                                                       ^
graph.cpp:89:73: style: Parameter 'ts' can be declared as pointer to const [constParameterPointer]
void graph::do_draw(int width, int height, std::string title, long int *ts, double *values, int n_values, char **result, size_t *result_len)
                                                                        ^
graph.cpp:89:85: style: Parameter 'values' can be declared as pointer to const [constParameterPointer]
void graph::do_draw(int width, int height, std::string title, long int *ts, double *values, int n_values, char **result, size_t *result_len)
                                                                                    ^
graph.cpp:161:14: style: Variable 'tm' can be declared as pointer to const [constVariablePointer]
  struct tm *tm = localtime(&epoch);
             ^
handle_client.cpp:1:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
handle_client.cpp:2:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
handle_client.cpp:3:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
handle_client.cpp:4:0: information: Include file: <time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <time.h>
^
handle_client.cpp:5:0: information: Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <errno.h>
^
handle_client.cpp:6:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
handle_client.cpp:7:0: information: Include file: <sys/socket.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/socket.h>
^
handle_client.cpp:8:0: information: Include file: <netinet/in.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <netinet/in.h>
^
handle_client.cpp:9:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
handle_client.cpp:10:0: information: Include file: <netdb.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <netdb.h>
^
handle_client.cpp:11:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
handle_client.cpp:12:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
handle_client.cpp:13:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
handle_client.cpp:14:0: information: Include file: <sys/resource.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/resource.h>
^
handle_client.cpp:15:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
handle_client.cpp:16:0: information: Include file: <poll.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <poll.h>
^
handle_client.cpp:17:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
handle_client.cpp:18:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
handle_client.cpp:19:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
handle_client.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
handle_client.cpp:549:2: portability: Using memset() on struct which contains a floating point number. This is not portable because memset() sets each byte of a block of memory to a specific value and the actual representation of a floating-point value is implementation defined. Note: In case of an IEEE754-1985 compatible implementation setting all bits to zero results in the value 0.0. [memsetClassFloat]
 memset(&event_state, 0x00, sizeof event_state);
 ^
handle_client.cpp:375:3: warning: Either the condition '!p' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck]
  p -> id = client_id++;
  ^
handle_client.cpp:372:7: note: Assuming that condition '!p' is not redundant
  if (!p)
      ^
handle_client.cpp:375:3: note: Null pointer dereference
  p -> id = client_id++;
  ^
handle_client.cpp:377:3: warning: Either the condition '!p' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck]
  p -> socket_fd = new_socket_fd;
  ^
handle_client.cpp:372:7: note: Assuming that condition '!p' is not redundant
  if (!p)
      ^
handle_client.cpp:377:3: note: Null pointer dereference
  p -> socket_fd = new_socket_fd;
  ^
handle_client.cpp:378:3: warning: Either the condition '!p' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck]
  p -> host = host;
  ^
handle_client.cpp:372:7: note: Assuming that condition '!p' is not redundant
  if (!p)
      ^
handle_client.cpp:378:3: note: Null pointer dereference
  p -> host = host;
  ^
handle_client.cpp:379:3: warning: Either the condition '!p' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck]
  p -> type = "?";
  ^
handle_client.cpp:372:7: note: Assuming that condition '!p' is not redundant
  if (!p)
      ^
handle_client.cpp:379:3: note: Null pointer dereference
  p -> type = "?";
  ^
handle_client.cpp:380:3: warning: Either the condition '!p' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck]
  p -> is_server = false;
  ^
handle_client.cpp:372:7: note: Assuming that condition '!p' is not redundant
  if (!p)
      ^
handle_client.cpp:380:3: note: Null pointer dereference
  p -> is_server = false;
  ^
handle_client.cpp:382:3: warning: Either the condition '!p' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck]
  p -> pfips140 = new fips140();
  ^
handle_client.cpp:372:7: note: Assuming that condition '!p' is not redundant
  if (!p)
      ^
handle_client.cpp:382:3: note: Null pointer dereference
  p -> pfips140 = new fips140();
  ^
handle_client.cpp:383:3: warning: Either the condition '!p' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck]
  p -> pscc = new scc();
  ^
handle_client.cpp:372:7: note: Assuming that condition '!p' is not redundant
  if (!p)
      ^
handle_client.cpp:383:3: note: Null pointer dereference
  p -> pscc = new scc();
  ^
handle_client.cpp:384:8: warning: Either the condition '!p' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck]
  if (!p -> pfips140 || !p -> pscc)
       ^
handle_client.cpp:372:7: note: Assuming that condition '!p' is not redundant
  if (!p)
      ^
handle_client.cpp:384:8: note: Null pointer dereference
  if (!p -> pfips140 || !p -> pscc)
       ^
handle_client.cpp:235:17: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 client_t *p = (client_t *)data;
                ^
handle_client.cpp:211:29: style: Finding the same expression on both sides of an operator is suspicious and might indicate a cut and paste or logic error. Please examine this code carefully to determine if it is correct. [knownConditionTrueFalse]
 if (need_data && rc_client == 0)
                            ^
handle_client.cpp:210:18: note: 'rc_client' is assigned value '0' here.
 int rc_client = 0;
                 ^
handle_client.cpp:211:29: note: The comparison 'rc_client == 0' is always true.
 if (need_data && rc_client == 0)
                            ^
handle_client.cpp:542:199: style: inconclusive: Function 'main_loop' argument 8 names different: declaration 'stats' definition 'gs'. [funcArgNamesDifferent]
void main_loop(std::vector<client_t *> *clients, pthread_mutex_t *clients_mutex, pools *ppools, config_t *config, fips140 *eb_output_fips140, scc *eb_output_scc, pool_crypto *pc, statistics_global *gs, users *user_map)
                                                                                                                                                                                                      ^
handle_client.h:55:199: note: Function 'main_loop' argument 8 names different: declaration 'stats' definition 'gs'.
void main_loop(std::vector<client_t *> *clients, pthread_mutex_t *clients_mutex, pools *ppools, config_t *config, fips140 *eb_output_fips140, scc *eb_output_scc, pool_crypto *pc, statistics_global *stats, users *user_map);
                                                                                                                                                                                                      ^
handle_client.cpp:542:199: note: Function 'main_loop' argument 8 names different: declaration 'stats' definition 'gs'.
void main_loop(std::vector<client_t *> *clients, pthread_mutex_t *clients_mutex, pools *ppools, config_t *config, fips140 *eb_output_fips140, scc *eb_output_scc, pool_crypto *pc, statistics_global *gs, users *user_map)
                                                                                                                                                                                                      ^
handle_client.cpp:553:31: style: Local variable 'send_need_data' shadows outer function [shadowFunction]
 bool send_have_data = false, send_need_data = false, send_is_full = false;
                              ^
hc_protocol.h:6:5: note: Shadowed declaration
int send_need_data(int fd, config_t *config);
    ^
handle_client.cpp:553:31: note: Shadow variable
 bool send_have_data = false, send_need_data = false, send_is_full = false;
                              ^
handle_client.cpp:478:15: style: Variable 'cur_msg' can be declared as pointer to const [constVariablePointer]
  msg_pair_t *cur_msg = &msgs -> at(loop);
              ^
handle_client.cpp:507:14: style: Variable 'cur_cl' can be declared as pointer to const [constVariablePointer]
   client_t *cur_cl = clients -> at(index);
             ^
hasher.cpp:1:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
hasher_md5.h:2:0: information: Include file: <cryptopp/md5.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <cryptopp/md5.h>
^
hasher_ripemd160.h:1:0: information: Include file: <cryptopp/ripemd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <cryptopp/ripemd.h>
^
hasher_sha512.h:1:0: information: Include file: <cryptopp/sha.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <cryptopp/sha.h>
^
hasher_whirlpool.h:1:0: information: Include file: <cryptopp/whrlpool.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <cryptopp/whrlpool.h>
^
hasher_md5.h:8:3: style: The destructor '~hasher_md5' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride]
 ~hasher_md5();
  ^
hasher.h:5:11: note: Virtual destructor in base class
 virtual ~hasher();
          ^
hasher_md5.h:8:3: note: Destructor in derived class
 ~hasher_md5();
  ^
hasher_md5.h:10:14: style: The function 'get_name' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 std::string get_name();
             ^
hasher.h:7:22: note: Virtual function in base class
 virtual std::string get_name() = 0;
                     ^
hasher_md5.h:10:14: note: Function in derived class
 std::string get_name();
             ^
hasher_md5.h:12:6: style: The function 'get_hash_size' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 int get_hash_size() const;
     ^
hasher.h:11:14: note: Virtual function in base class
 virtual int get_hash_size() const = 0;
             ^
hasher_md5.h:12:6: note: Function in derived class
 int get_hash_size() const;
     ^
hasher_md5.h:13:7: style: The function 'do_hash' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 void do_hash(unsigned char *in, int in_size, unsigned char *dest);
      ^
hasher.h:12:15: note: Virtual function in base class
 virtual void do_hash(unsigned char *in, int in_size, unsigned char *dest) = 0;
              ^
hasher_md5.h:13:7: note: Function in derived class
 void do_hash(unsigned char *in, int in_size, unsigned char *dest);
      ^
hasher_ripemd160.h:7:3: style: The destructor '~hasher_ripemd160' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride]
 ~hasher_ripemd160();
  ^
hasher.h:5:11: note: Virtual destructor in base class
 virtual ~hasher();
          ^
hasher_ripemd160.h:7:3: note: Destructor in derived class
 ~hasher_ripemd160();
  ^
hasher_ripemd160.h:9:14: style: The function 'get_name' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 std::string get_name();
             ^
hasher.h:7:22: note: Virtual function in base class
 virtual std::string get_name() = 0;
                     ^
hasher_ripemd160.h:9:14: note: Function in derived class
 std::string get_name();
             ^
hasher_ripemd160.h:11:6: style: The function 'get_hash_size' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 int get_hash_size() const;
     ^
hasher.h:11:14: note: Virtual function in base class
 virtual int get_hash_size() const = 0;
             ^
hasher_ripemd160.h:11:6: note: Function in derived class
 int get_hash_size() const;
     ^
hasher_ripemd160.h:12:7: style: The function 'do_hash' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 void do_hash(unsigned char *in, int in_size, unsigned char *dest);
      ^
hasher.h:12:15: note: Virtual function in base class
 virtual void do_hash(unsigned char *in, int in_size, unsigned char *dest) = 0;
              ^
hasher_ripemd160.h:12:7: note: Function in derived class
 void do_hash(unsigned char *in, int in_size, unsigned char *dest);
      ^
hasher_sha512.h:7:3: style: The destructor '~hasher_sha512' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride]
 ~hasher_sha512();
  ^
hasher.h:5:11: note: Virtual destructor in base class
 virtual ~hasher();
          ^
hasher_sha512.h:7:3: note: Destructor in derived class
 ~hasher_sha512();
  ^
hasher_sha512.h:9:14: style: The function 'get_name' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 std::string get_name();
             ^
hasher.h:7:22: note: Virtual function in base class
 virtual std::string get_name() = 0;
                     ^
hasher_sha512.h:9:14: note: Function in derived class
 std::string get_name();
             ^
hasher_sha512.h:11:6: style: The function 'get_hash_size' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 int get_hash_size() const;
     ^
hasher.h:11:14: note: Virtual function in base class
 virtual int get_hash_size() const = 0;
             ^
hasher_sha512.h:11:6: note: Function in derived class
 int get_hash_size() const;
     ^
hasher_sha512.h:12:7: style: The function 'do_hash' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 void do_hash(unsigned char *in, int in_size, unsigned char *dest);
      ^
hasher.h:12:15: note: Virtual function in base class
 virtual void do_hash(unsigned char *in, int in_size, unsigned char *dest) = 0;
              ^
hasher_sha512.h:12:7: note: Function in derived class
 void do_hash(unsigned char *in, int in_size, unsigned char *dest);
      ^
hasher_whirlpool.h:7:3: style: The destructor '~hasher_whirlpool' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride]
 ~hasher_whirlpool();
  ^
hasher.h:5:11: note: Virtual destructor in base class
 virtual ~hasher();
          ^
hasher_whirlpool.h:7:3: note: Destructor in derived class
 ~hasher_whirlpool();
  ^
hasher_whirlpool.h:9:14: style: The function 'get_name' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 std::string get_name();
             ^
hasher.h:7:22: note: Virtual function in base class
 virtual std::string get_name() = 0;
                     ^
hasher_whirlpool.h:9:14: note: Function in derived class
 std::string get_name();
             ^
hasher_whirlpool.h:11:6: style: The function 'get_hash_size' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 int get_hash_size() const;
     ^
hasher.h:11:14: note: Virtual function in base class
 virtual int get_hash_size() const = 0;
             ^
hasher_whirlpool.h:11:6: note: Function in derived class
 int get_hash_size() const;
     ^
hasher_whirlpool.h:12:7: style: The function 'do_hash' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 void do_hash(unsigned char *in, int in_size, unsigned char *dest);
      ^
hasher.h:12:15: note: Virtual function in base class
 virtual void do_hash(unsigned char *in, int in_size, unsigned char *dest) = 0;
              ^
hasher_whirlpool.h:12:7: note: Function in derived class
 void do_hash(unsigned char *in, int in_size, unsigned char *dest);
      ^
hasher.cpp:16:43: performance: Parameter 'type' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
hasher *hasher::select_hasher(std::string type)
                                          ^
hasher_md5.cpp:1:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
hasher_ripemd160.cpp:1:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
hasher_sha512.cpp:1:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
hasher_whirlpool.cpp:1:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
hc_protocol.cpp:1:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
hc_protocol.cpp:2:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
hc_protocol.cpp:3:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
hc_protocol.cpp:4:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
hc_protocol.cpp:5:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
hc_protocol.cpp:6:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
hc_protocol.cpp:7:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
hc_protocol.cpp:8:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
hc_protocol.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
hc_protocol.cpp:382:19: warning: Either the condition '!buffer_out' is redundant or there is possible null pointer dereference: buffer_out. [nullPointerRedundantCheck]
 if (memcmp(hash, buffer_out, hash_len) != 0)
                  ^
hc_protocol.cpp:370:6: note: Assuming that condition '!buffer_out' is not redundant
 if (!buffer_out)
     ^
hc_protocol.cpp:382:19: note: Null pointer dereference
 if (memcmp(hash, buffer_out, hash_len) != 0)
                  ^
hc_protocol.cpp:423:25: style: inconclusive: Function 'do_client' argument 1 names different: declaration 'p' definition 'client'. [funcArgNamesDifferent]
int do_client(client_t *client, bool *no_bits, bool *new_bits, bool *is_full)
                        ^
hc_protocol.h:13:25: note: Function 'do_client' argument 1 names different: declaration 'p' definition 'client'.
int do_client(client_t *p, bool *no_bits, bool *new_bits, bool *is_full);
                        ^
hc_protocol.cpp:423:25: note: Function 'do_client' argument 1 names different: declaration 'p' definition 'client'.
int do_client(client_t *client, bool *no_bits, bool *new_bits, bool *is_full)
                        ^
hc_protocol.cpp:56:60: performance: Parameter 'host' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
int send_denied_full(int fd, config_t *config, std::string host)
                                                           ^
hc_protocol.cpp:102:60: style: Parameter 'data' can be declared as pointer to const [constParameterPointer]
void update_client_fips140_scc(client_t *p, unsigned char *data, int n)
                                                           ^
http_bundle.cpp:1:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
http_bundle.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
http_bundle.cpp:3:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
http_bundle.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
http_bundle.cpp:10:2: performance: When an object of a class is created, the constructors of all member variables are called consecutively in the order the variables are declared, even if you don't explicitly write them to the initialization list. You could avoid assigning 'headers' a value by passing the value to the constructor in the initialization list. [useInitializationList]
 headers = headers_in;
 ^
http_bundle.cpp:26:2: performance: When an object of a class is created, the constructors of all member variables are called consecutively in the order the variables are declared, even if you don't explicitly write them to the initialization list. You could avoid assigning 'headers' a value by passing the value to the constructor in the initialization list. [useInitializationList]
 headers = headers_in;
 ^
http_bundle.cpp:34:2: performance: When an object of a class is created, the constructors of all member variables are called consecutively in the order the variables are declared, even if you don't explicitly write them to the initialization list. You could avoid assigning 'headers' a value by passing the value to the constructor in the initialization list. [useInitializationList]
 headers = headers_in;
 ^
http_bundle.h:13:27: style: inconclusive: The member function 'http_bundle::get_headers' can be made a const function. Making this function 'const' should not cause compiler errors. Even though the function can be made const function technically it may not make sense conceptually. Think about your design and the task of the function first - is it a function that must not change object internal state? [functionConst]
 std::vector<std::string> get_headers();
                          ^
http_bundle.cpp:45:39: note: Technically the member function 'http_bundle::get_headers' can be const.
std::vector<std::string> http_bundle::get_headers()
                                      ^
http_bundle.h:13:27: note: Technically the member function 'http_bundle::get_headers' can be const.
 std::vector<std::string> get_headers();
                          ^
http_bundle.h:14:6: style: inconclusive: The member function 'http_bundle::get_data_len' can be made a const function. Making this function 'const' should not cause compiler errors. Even though the function can be made const function technically it may not make sense conceptually. Think about your design and the task of the function first - is it a function that must not change object internal state? [functionConst]
 int get_data_len();
     ^
http_bundle.cpp:50:18: note: Technically the member function 'http_bundle::get_data_len' can be const.
int http_bundle::get_data_len()
                 ^
http_bundle.h:14:6: note: Technically the member function 'http_bundle::get_data_len' can be const.
 int get_data_len();
     ^
http_bundle.h:13:27: performance: Function 'get_headers()' should return member 'headers' by const reference. [returnByReference]
 std::vector<std::string> get_headers();
                          ^
http_bundle.cpp:8:51: style: inconclusive: Function 'http_bundle' argument 1 names different: declaration 'headers' definition 'headers_in'. [funcArgNamesDifferent]
http_bundle::http_bundle(std::vector<std::string> headers_in, unsigned char *data_in, int data_len_in)
                                                  ^
http_bundle.h:8:39: note: Function 'http_bundle' argument 1 names different: declaration 'headers' definition 'headers_in'.
 http_bundle(std::vector<std::string> headers, unsigned char *data, int data_len);
                                      ^
http_bundle.cpp:8:51: note: Function 'http_bundle' argument 1 names different: declaration 'headers' definition 'headers_in'.
http_bundle::http_bundle(std::vector<std::string> headers_in, unsigned char *data_in, int data_len_in)
                                                  ^
http_bundle.cpp:8:78: style: inconclusive: Function 'http_bundle' argument 2 names different: declaration 'data' definition 'data_in'. [funcArgNamesDifferent]
http_bundle::http_bundle(std::vector<std::string> headers_in, unsigned char *data_in, int data_len_in)
                                                                             ^
http_bundle.h:8:63: note: Function 'http_bundle' argument 2 names different: declaration 'data' definition 'data_in'.
 http_bundle(std::vector<std::string> headers, unsigned char *data, int data_len);
                                                              ^
http_bundle.cpp:8:78: note: Function 'http_bundle' argument 2 names different: declaration 'data' definition 'data_in'.
http_bundle::http_bundle(std::vector<std::string> headers_in, unsigned char *data_in, int data_len_in)
                                                                             ^
http_bundle.cpp:8:91: style: inconclusive: Function 'http_bundle' argument 3 names different: declaration 'data_len' definition 'data_len_in'. [funcArgNamesDifferent]
http_bundle::http_bundle(std::vector<std::string> headers_in, unsigned char *data_in, int data_len_in)
                                                                                          ^
http_bundle.h:8:73: note: Function 'http_bundle' argument 3 names different: declaration 'data_len' definition 'data_len_in'.
 http_bundle(std::vector<std::string> headers, unsigned char *data, int data_len);
                                                                        ^
http_bundle.cpp:8:91: note: Function 'http_bundle' argument 3 names different: declaration 'data_len' definition 'data_len_in'.
http_bundle::http_bundle(std::vector<std::string> headers_in, unsigned char *data_in, int data_len_in)
                                                                                          ^
http_bundle.cpp:24:51: style: inconclusive: Function 'http_bundle' argument 1 names different: declaration 'headers' definition 'headers_in'. [funcArgNamesDifferent]
http_bundle::http_bundle(std::vector<std::string> headers_in, const char *data_in)
                                                  ^
http_bundle.h:9:39: note: Function 'http_bundle' argument 1 names different: declaration 'headers' definition 'headers_in'.
 http_bundle(std::vector<std::string> headers, const char *data);
                                      ^
http_bundle.cpp:24:51: note: Function 'http_bundle' argument 1 names different: declaration 'headers' definition 'headers_in'.
http_bundle::http_bundle(std::vector<std::string> headers_in, const char *data_in)
                                                  ^
http_bundle.cpp:24:75: style: inconclusive: Function 'http_bundle' argument 2 names different: declaration 'data' definition 'data_in'. [funcArgNamesDifferent]
http_bundle::http_bundle(std::vector<std::string> headers_in, const char *data_in)
                                                                          ^
http_bundle.h:9:60: note: Function 'http_bundle' argument 2 names different: declaration 'data' definition 'data_in'.
 http_bundle(std::vector<std::string> headers, const char *data);
                                                           ^
http_bundle.cpp:24:75: note: Function 'http_bundle' argument 2 names different: declaration 'data' definition 'data_in'.
http_bundle::http_bundle(std::vector<std::string> headers_in, const char *data_in)
                                                                          ^
http_bundle.cpp:32:51: style: inconclusive: Function 'http_bundle' argument 1 names different: declaration 'headers' definition 'headers_in'. [funcArgNamesDifferent]
http_bundle::http_bundle(std::vector<std::string> headers_in, std::string data_in)
                                                  ^
http_bundle.h:10:39: note: Function 'http_bundle' argument 1 names different: declaration 'headers' definition 'headers_in'.
 http_bundle(std::vector<std::string> headers, std::string data);
                                      ^
http_bundle.cpp:32:51: note: Function 'http_bundle' argument 1 names different: declaration 'headers' definition 'headers_in'.
http_bundle::http_bundle(std::vector<std::string> headers_in, std::string data_in)
                                                  ^
http_bundle.cpp:32:75: style: inconclusive: Function 'http_bundle' argument 2 names different: declaration 'data' definition 'data_in'. [funcArgNamesDifferent]
http_bundle::http_bundle(std::vector<std::string> headers_in, std::string data_in)
                                                                          ^
http_bundle.h:10:60: note: Function 'http_bundle' argument 2 names different: declaration 'data' definition 'data_in'.
 http_bundle(std::vector<std::string> headers, std::string data);
                                                           ^
http_bundle.cpp:32:75: note: Function 'http_bundle' argument 2 names different: declaration 'data' definition 'data_in'.
http_bundle::http_bundle(std::vector<std::string> headers_in, std::string data_in)
                                                                          ^
http_bundle.cpp:8:51: performance: Parameter 'headers_in' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
http_bundle::http_bundle(std::vector<std::string> headers_in, unsigned char *data_in, int data_len_in)
                                                  ^
http_bundle.cpp:24:51: performance: Parameter 'headers_in' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
http_bundle::http_bundle(std::vector<std::string> headers_in, const char *data_in)
                                                  ^
http_bundle.cpp:32:51: performance: Parameter 'headers_in' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
http_bundle::http_bundle(std::vector<std::string> headers_in, std::string data_in)
                                                  ^
http_bundle.cpp:32:75: performance: Parameter 'data_in' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
http_bundle::http_bundle(std::vector<std::string> headers_in, std::string data_in)
                                                                          ^
http_bundle.cpp:8:78: style: Parameter 'data_in' can be declared as pointer to const [constParameterPointer]
http_bundle::http_bundle(std::vector<std::string> headers_in, unsigned char *data_in, int data_len_in)
                                                                             ^
http_file.cpp:1:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
http_file.cpp:2:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
http_file.cpp:3:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
http_file.cpp:4:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
http_file.cpp:5:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
http_file.h:13:14: performance: inconclusive: The member function 'http_file::get_style_header' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances? And maybe it is more appropriate to move this function to an unnamed namespace. [functionStatic]
 std::string get_style_header();
             ^
http_file.cpp:66:24: note: Technically the member function 'http_file::get_style_header' can be static (but you may consider moving to unnamed namespace).
std::string http_file::get_style_header()
                       ^
http_file.h:13:14: note: Technically the member function 'http_file::get_style_header' can be static (but you may consider moving to unnamed namespace).
 std::string get_style_header();
             ^
http_file.h:14:14: performance: inconclusive: The member function 'http_file::get_style_tail' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances? And maybe it is more appropriate to move this function to an unnamed namespace. [functionStatic]
 std::string get_style_tail();
             ^
http_file.cpp:104:24: note: Technically the member function 'http_file::get_style_tail' can be static (but you may consider moving to unnamed namespace).
std::string http_file::get_style_tail()
                       ^
http_file.h:14:14: note: Technically the member function 'http_file::get_style_tail' can be static (but you may consider moving to unnamed namespace).
 std::string get_style_tail();
             ^
http_file.cpp:28:76: performance: Parameter 'url' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
std::map<std::string, std::string> http_file::split_parameters(std::string url)
                                                                           ^
http_file.cpp:116:71: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
std::string generate_logging_table(statistics_global *ps, std::string username)
                                                                      ^
http_file_404.cpp:1:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
http_file_404.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
http_file_404.cpp:3:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
http_file_file.h:10:11: style: The destructor '~http_file_file' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride]
 virtual ~http_file_file();
          ^
http_file.h:5:11: note: Virtual destructor in base class
 virtual ~http_file();
          ^
http_file_file.h:10:11: note: Destructor in derived class
 virtual ~http_file_file();
          ^
http_file_file.h:12:14: style: The function 'get_url' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 std::string get_url();
             ^
http_file.h:7:22: note: Virtual function in base class
 virtual std::string get_url() = 0;
                     ^
http_file_file.h:12:14: note: Function in derived class
 std::string get_url();
             ^
http_file_file.h:14:14: style: The function 'get_meta_type' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 std::string get_meta_type();
             ^
http_file.h:9:22: note: Virtual function in base class
 virtual std::string get_meta_type() = 0;
                     ^
http_file_file.h:14:14: note: Function in derived class
 std::string get_meta_type();
             ^
http_file_file.h:16:16: style: The function 'do_request' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 http_bundle * do_request(http_request_t request_type, std::string request_url, http_bundle *request_details);
               ^
http_file.h:16:24: note: Virtual function in base class
 virtual http_bundle * do_request(http_request_t request_type, std::string request_url, http_bundle *request_details) = 0;
                       ^
http_file_file.h:16:16: note: Function in derived class
 http_bundle * do_request(http_request_t request_type, std::string request_url, http_bundle *request_details);
               ^
http_file_404.h:5:3: style: The destructor '~http_file_404' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride]
 ~http_file_404();
  ^
http_file_file.h:10:11: note: Virtual destructor in base class
 virtual ~http_file_file();
          ^
http_file_404.h:5:3: note: Destructor in derived class
 ~http_file_404();
  ^
http_file_file.cpp:1:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
http_file_file.cpp:2:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
http_file_file.cpp:3:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
http_file_file.cpp:4:0: information: Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <errno.h>
^
http_file_file.cpp:5:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
http_file_file.cpp:6:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
http_file_file.cpp:7:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
http_file_file.cpp:8:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
http_file_file.cpp:9:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
http_file_file.cpp:10:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
http_file_file.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
http_file_file.cpp:60:8: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
  *p = (unsigned char *)malloc(st.st_size);
       ^
http_file_file.cpp:86:8: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
  *p = (unsigned char *)strdup("file not found");
       ^
http_file_file.cpp:21:85: performance: Parameter 'file_in' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
http_file_file::http_file_file(std::string url_in, std::string meta_in, std::string file_in) : url(url_in), meta(meta_in), file(file_in)
                                                                                    ^
http_file_graph_data_logger.cpp:1:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
http_file_graph_data_logger.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
http_file_graph_data_logger.cpp:3:0: information: Include file: <time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <time.h>
^
http_file_graph_data_logger.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
http_file_graph_data_logger.cpp:5:0: information: Include file: <gd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <gd.h>
^
http_file_graph_data_logger.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
http_file_graph_data_logger.cpp:37:2: warning: Class 'http_file_graph_data_logger' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor]
 g = new graph(font);
 ^
http_file_graph_data_logger.cpp:37:2: warning: Class 'http_file_graph_data_logger' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq]
 g = new graph(font);
 ^
http_file_graph_data_logger.h:9:3: style: The destructor '~http_file_graph_data_logger' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride]
 ~http_file_graph_data_logger();
  ^
http_file.h:5:11: note: Virtual destructor in base class
 virtual ~http_file();
          ^
http_file_graph_data_logger.h:9:3: note: Destructor in derived class
 ~http_file_graph_data_logger();
  ^
http_file_graph_data_logger.h:11:14: style: The function 'get_url' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 std::string get_url();
             ^
http_file.h:7:22: note: Virtual function in base class
 virtual std::string get_url() = 0;
                     ^
http_file_graph_data_logger.h:11:14: note: Function in derived class
 std::string get_url();
             ^
http_file_graph_data_logger.h:13:14: style: The function 'get_meta_type' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 std::string get_meta_type();
             ^
http_file.h:9:22: note: Virtual function in base class
 virtual std::string get_meta_type() = 0;
                     ^
http_file_graph_data_logger.h:13:14: note: Function in derived class
 std::string get_meta_type();
             ^
http_file_graph_data_logger.h:15:16: style: The function 'do_request' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 http_bundle * do_request(http_request_t request_type, std::string request_url, http_bundle *request_details);
               ^
http_file.h:16:24: note: Virtual function in base class
 virtual http_bundle * do_request(http_request_t request_type, std::string request_url, http_bundle *request_details) = 0;
                       ^
http_file_graph_data_logger.h:15:16: note: Function in derived class
 http_bundle * do_request(http_request_t request_type, std::string request_url, http_bundle *request_details);
               ^
http_file_graph_data_logger.cpp:110:55: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 http_bundle *result = new http_bundle(reply_headers, (unsigned char *)img_data, (int)img_data_len);
                                                      ^
http_file_graph_data_logger.cpp:35:90: performance: Parameter 'font' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
http_file_graph_data_logger::http_file_graph_data_logger(data_logger *dl_in, std::string font) : dl(dl_in)
                                                                                         ^
http_file_logfile.cpp:1:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
http_file_logfile.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
http_file_logfile.cpp:3:0: information: Include file: <time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <time.h>
^
http_file_logfile.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
http_file_logfile.h:7:2: style: Class 'http_file_logfile' has a constructor with 1 argument that is not explicit. Such, so called "Converting constructors", should in general be explicit for type safety reasons as that prevents unintended implicit conversions. [noExplicitConstructor]
 http_file_logfile(statistics_global *ps_in);
 ^
http_file_logfile.h:8:3: style: The destructor '~http_file_logfile' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride]
 ~http_file_logfile();
  ^
http_file.h:5:11: note: Virtual destructor in base class
 virtual ~http_file();
          ^
http_file_logfile.h:8:3: note: Destructor in derived class
 ~http_file_logfile();
  ^
http_file_logfile.h:10:14: style: The function 'get_url' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 std::string get_url();
             ^
http_file.h:7:22: note: Virtual function in base class
 virtual std::string get_url() = 0;
                     ^
http_file_logfile.h:10:14: note: Function in derived class
 std::string get_url();
             ^
http_file_logfile.h:12:14: style: The function 'get_meta_type' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 std::string get_meta_type();
             ^
http_file.h:9:22: note: Virtual function in base class
 virtual std::string get_meta_type() = 0;
                     ^
http_file_logfile.h:12:14: note: Function in derived class
 std::string get_meta_type();
             ^
http_file_logfile.h:14:16: style: The function 'do_request' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 http_bundle * do_request(http_request_t request_type, std::string request_url, http_bundle *request_details);
               ^
http_file.h:16:24: note: Virtual function in base class
 virtual http_bundle * do_request(http_request_t request_type, std::string request_url, http_bundle *request_details) = 0;
                       ^
http_file_logfile.h:14:16: note: Function in derived class
 http_bundle * do_request(http_request_t request_type, std::string request_url, http_bundle *request_details);
               ^
http_file_root.cpp:1:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
http_file_root.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
http_file_root.cpp:3:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
http_file_root.h:5:3: style: The destructor '~http_file_root' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride]
 ~http_file_root();
  ^
http_file.h:5:11: note: Virtual destructor in base class
 virtual ~http_file();
          ^
http_file_root.h:5:3: note: Destructor in derived class
 ~http_file_root();
  ^
http_file_root.h:7:14: style: The function 'get_url' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 std::string get_url();
             ^
http_file.h:7:22: note: Virtual function in base class
 virtual std::string get_url() = 0;
                     ^
http_file_root.h:7:14: note: Function in derived class
 std::string get_url();
             ^
http_file_root.h:9:14: style: The function 'get_meta_type' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 std::string get_meta_type();
             ^
http_file.h:9:22: note: Virtual function in base class
 virtual std::string get_meta_type() = 0;
                     ^
http_file_root.h:9:14: note: Function in derived class
 std::string get_meta_type();
             ^
http_file_root.h:11:16: style: The function 'do_request' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 http_bundle * do_request(http_request_t request_type, std::string request_url, http_bundle *request_details);
               ^
http_file.h:16:24: note: Virtual function in base class
 virtual http_bundle * do_request(http_request_t request_type, std::string request_url, http_bundle *request_details) = 0;
                       ^
http_file_root.h:11:16: note: Function in derived class
 http_bundle * do_request(http_request_t request_type, std::string request_url, http_bundle *request_details);
               ^
http_file_stats.cpp:1:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
http_file_stats.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
http_file_stats.cpp:3:0: information: Include file: <time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <time.h>
^
http_file_stats.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
http_file_stats.h:13:3: style: The destructor '~http_file_stats' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride]
 ~http_file_stats();
  ^
http_file.h:5:11: note: Virtual destructor in base class
 virtual ~http_file();
          ^
http_file_stats.h:13:3: note: Destructor in derived class
 ~http_file_stats();
  ^
http_file_stats.h:15:14: style: The function 'get_url' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 std::string get_url();
             ^
http_file.h:7:22: note: Virtual function in base class
 virtual std::string get_url() = 0;
                     ^
http_file_stats.h:15:14: note: Function in derived class
 std::string get_url();
             ^
http_file_stats.h:17:14: style: The function 'get_meta_type' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 std::string get_meta_type();
             ^
http_file.h:9:22: note: Virtual function in base class
 virtual std::string get_meta_type() = 0;
                     ^
http_file_stats.h:17:14: note: Function in derived class
 std::string get_meta_type();
             ^
http_file_stats.h:19:16: style: The function 'do_request' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 http_bundle * do_request(http_request_t request_type, std::string request_url, http_bundle *request_details);
               ^
http_file.h:16:24: note: Virtual function in base class
 virtual http_bundle * do_request(http_request_t request_type, std::string request_url, http_bundle *request_details) = 0;
                       ^
http_file_stats.h:19:16: note: Function in derived class
 http_bundle * do_request(http_request_t request_type, std::string request_url, http_bundle *request_details);
               ^
http_file_stats.cpp:31:113: style: inconclusive: Function 'http_file_stats' argument 3 names different: declaration 'ppools' definition 'ppools_in'. [funcArgNamesDifferent]
http_file_stats::http_file_stats(std::vector<client_t *> *clients_in, pthread_mutex_t *clients_mutex_in, pools *ppools_in, statistics_global *ps_in, fips140 *pfips140_in, scc *pscc_in) : clients(clients_in), clients_mutex(clients_mutex_in), ppools(ppools_in), ps(ps_in), pfips140(pfips140_in), pscc(pscc_in)
                                                                                                                ^
http_file_stats.h:12:97: note: Function 'http_file_stats' argument 3 names different: declaration 'ppools' definition 'ppools_in'.
 http_file_stats(std::vector<client_t *> *clients_in, pthread_mutex_t *clients_mutex_in, pools *ppools, statistics_global *ps_in, fips140 *pfips140_in, scc *pscc_in);
                                                                                                ^
http_file_stats.cpp:31:113: note: Function 'http_file_stats' argument 3 names different: declaration 'ppools' definition 'ppools_in'.
http_file_stats::http_file_stats(std::vector<client_t *> *clients_in, pthread_mutex_t *clients_mutex_in, pools *ppools_in, statistics_global *ps_in, fips140 *pfips140_in, scc *pscc_in) : clients(clients_in), clients_mutex(clients_mutex_in), ppools(ppools_in), ps(ps_in), pfips140(pfips140_in), pscc(pscc_in)
                                                                                                                ^
http_file_users.cpp:1:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
http_file_users.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
http_file_users.cpp:3:0: information: Include file: <time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <time.h>
^
http_file_users.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
http_file_users.h:7:2: style: Class 'http_file_users' has a constructor with 1 argument that is not explicit. Such, so called "Converting constructors", should in general be explicit for type safety reasons as that prevents unintended implicit conversions. [noExplicitConstructor]
 http_file_users(users *pusers_in);
 ^
http_file_users.h:8:3: style: The destructor '~http_file_users' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride]
 ~http_file_users();
  ^
http_file.h:5:11: note: Virtual destructor in base class
 virtual ~http_file();
          ^
http_file_users.h:8:3: note: Destructor in derived class
 ~http_file_users();
  ^
http_file_users.h:10:14: style: The function 'get_url' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 std::string get_url();
             ^
http_file.h:7:22: note: Virtual function in base class
 virtual std::string get_url() = 0;
                     ^
http_file_users.h:10:14: note: Function in derived class
 std::string get_url();
             ^
http_file_users.h:12:14: style: The function 'get_meta_type' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 std::string get_meta_type();
             ^
http_file.h:9:22: note: Virtual function in base class
 virtual std::string get_meta_type() = 0;
                     ^
http_file_users.h:12:14: note: Function in derived class
 std::string get_meta_type();
             ^
http_file_users.h:14:16: style: The function 'do_request' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 http_bundle * do_request(http_request_t request_type, std::string request_url, http_bundle *request_details);
               ^
http_file.h:16:24: note: Virtual function in base class
 virtual http_bundle * do_request(http_request_t request_type, std::string request_url, http_bundle *request_details) = 0;
                       ^
http_file_users.h:14:16: note: Function in derived class
 http_bundle * do_request(http_request_t request_type, std::string request_url, http_bundle *request_details);
               ^
http_file_users.cpp:51:56: style: Variable 'request_parameters' is assigned a value that is never used. [unreadVariable]
 std::map<std::string, std::string> request_parameters = split_parameters(request_url);
                                                       ^
http_file_version.cpp:1:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
http_file_version.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
http_file_version.cpp:3:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
http_file_version.cpp:35:84: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro]
 return new http_bundle(reply_headers, get_style_header() + "
Entropy Broker v" VERSION "
$Id$" + get_style_tail());
                                                                                   ^
http_server.cpp:1:0: information: Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <errno.h>
^
http_server.cpp:2:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
http_server.cpp:3:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
http_server.cpp:4:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
http_server.cpp:5:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
http_server.cpp:6:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
http_server.cpp:7:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
http_server.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
http_server.h:20:17: style: inconclusive: The member function 'http_server::get_request_type' can be made a const function. Making this function 'const' should not cause compiler errors. Even though the function can be made const function technically it may not make sense conceptually. Think about your design and the task of the function first - is it a function that must not change object internal state? [functionConst]
 http_request_t get_request_type();
                ^
http_server.cpp:108:29: note: Technically the member function 'http_server::get_request_type' can be const.
http_request_t http_server::get_request_type()
                            ^
http_server.h:20:17: note: Technically the member function 'http_server::get_request_type' can be const.
 http_request_t get_request_type();
                ^
http_server.h:22:14: style: inconclusive: The member function 'http_server::get_request_url' can be made a const function. Making this function 'const' should not cause compiler errors. Even though the function can be made const function technically it may not make sense conceptually. Think about your design and the task of the function first - is it a function that must not change object internal state? [functionConst]
 std::string get_request_url();
             ^
http_server.cpp:118:26: note: Technically the member function 'http_server::get_request_url' can be const.
std::string http_server::get_request_url()
                         ^
http_server.h:22:14: note: Technically the member function 'http_server::get_request_url' can be const.
 std::string get_request_url();
             ^
http_server.h:17:2: style: Class 'http_server' has a constructor with 1 argument that is not explicit. Such, so called "Converting constructors", should in general be explicit for type safety reasons as that prevents unintended implicit conversions. [noExplicitConstructor]
 http_server(int fd);
 ^
http_server.h:22:14: performance: Function 'get_request_url()' should return member 'request_url' by const reference. [returnByReference]
 std::string get_request_url();
             ^
http_server.cpp:129:14: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 return send((unsigned char *)what, len);
             ^
http_server.cpp:16:30: style: inconclusive: Function 'http_server' argument 1 names different: declaration 'fd' definition 'fd_in'. [funcArgNamesDifferent]
http_server::http_server(int fd_in) : fd(fd_in), request_type(static_cast<http_request_t>(-1))
                             ^
http_server.h:17:18: note: Function 'http_server' argument 1 names different: declaration 'fd' definition 'fd_in'.
 http_server(int fd);
                 ^
http_server.cpp:16:30: note: Function 'http_server' argument 1 names different: declaration 'fd' definition 'fd_in'.
http_server::http_server(int fd_in) : fd(fd_in), request_type(static_cast<http_request_t>(-1))
                             ^
http_server.cpp:156:6: style: Variable 'ok' is assigned a value that is never used. [unreadVariable]
  ok = send(response -> get_data(), response -> get_data_len());
     ^
kernel_prng_io.cpp:1:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
kernel_prng_io.cpp:2:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
kernel_prng_io.cpp:3:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
kernel_prng_io.cpp:4:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
kernel_prng_io.cpp:5:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
kernel_prng_io.cpp:6:0: information: Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fcntl.h>
^
kernel_prng_io.cpp:7:0: information: Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <errno.h>
^
kernel_prng_io.cpp:8:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
kernel_prng_io.cpp:9:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
kernel_prng_io.cpp:10:0: information: Include file: <sys/ioctl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/ioctl.h>
^
kernel_prng_io.cpp:11:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
kernel_prng_io.cpp:12:0: information: Include file: <asm/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <asm/types.h>
^
kernel_prng_io.cpp:13:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
kernel_prng_io.cpp:14:0: information: Include file: <linux/random.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <linux/random.h>
^
kernel_prng_io.cpp:48:2: warning: Either the condition '!output' is redundant or there is possible null pointer dereference: output. [nullPointerRedundantCheck]
 output -> entropy_count = n_bits;
 ^
kernel_prng_io.cpp:45:13: note: Assuming that condition '!output' is not redundant
        if (!output)
            ^
kernel_prng_io.cpp:48:2: note: Null pointer dereference
 output -> entropy_count = n_bits;
 ^
kernel_prng_io.cpp:49:2: warning: Either the condition '!output' is redundant or there is possible null pointer dereference: output. [nullPointerRedundantCheck]
 output -> buf_size      = n;
 ^
kernel_prng_io.cpp:45:13: note: Assuming that condition '!output' is not redundant
        if (!output)
            ^
kernel_prng_io.cpp:49:2: note: Null pointer dereference
 output -> buf_size      = n;
 ^
kernel_prng_io.cpp:44:19: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
        output = (struct rand_pool_info *)malloc(total_size);
                  ^
kernel_prng_io.cpp:35:43: style: Parameter 'data' can be declared as pointer to const [constParameterPointer]
int kernel_rng_add_entropy(unsigned char *data, int n, int n_bits)
                                          ^
kernel_prng_rw.cpp:1:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
kernel_prng_rw.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
kernel_prng_rw.cpp:3:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
kernel_prng_rw.cpp:4:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
kernel_prng_rw.cpp:5:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
kernel_prng_rw.cpp:6:0: information: Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fcntl.h>
^
kernel_prng_rw.cpp:7:0: information: Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <errno.h>
^
kernel_prng_rw.cpp:8:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
kernel_prng_rw.cpp:9:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
kernel_prng_rw.cpp:10:0: information: Include file: <sys/ioctl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/ioctl.h>
^
kernel_prng_rw.cpp:11:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
kernel_prng_rw.cpp:12:0: information: Include file: <asm/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <asm/types.h>
^
kernel_prng_rw.cpp:13:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
kernel_prng_rw.cpp:14:0: information: Include file: <linux/random.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <linux/random.h>
^
log.cpp:1:0: information: Include file: <stdarg.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdarg.h>
^
log.cpp:2:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
log.cpp:3:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
log.cpp:4:0: information: Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <errno.h>
^
log.cpp:5:0: information: Include file: <syslog.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <syslog.h>
^
log.cpp:6:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
log.cpp:7:0: information: Include file: <time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <time.h>
^
log.cpp:65:3: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg]
  ll = 0;
  ^
log.cpp:65:6: style: Variable 'll' is assigned a value that is never used. [unreadVariable]
  ll = 0;
     ^
main.cpp:1:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
main.cpp:2:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
main.cpp:3:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
main.cpp:4:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
main.cpp:5:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
main.cpp:6:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
main.cpp:7:0: information: Include file: <sys/resource.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/resource.h>
^
main.cpp:8:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
main.cpp:9:0: information: Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fcntl.h>
^
main.cpp:10:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
main.cpp:11:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
main.cpp:12:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
main.cpp:13:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
main.cpp:58:43: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro]
const char *version = "entropy_broker v " VERSION ", (C) 2009-2015 by folkert@vanheusden.com";
                                          ^
math.cpp:1:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
math.cpp:3:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
math.cpp:4:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
math.cpp:5:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
math.cpp:6:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
math.cpp:7:0: information: Include file: <zlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <zlib.h>
^
math.h:8:6: performance: inconclusive: The member function 'bit_count_estimator::determine_number_of_bits_of_data_shannon' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances? And maybe it is more appropriate to move this function to an unnamed namespace. [functionStatic]
 int determine_number_of_bits_of_data_shannon(const unsigned char *const data, const unsigned int n_bytes);
     ^
math.cpp:44:26: note: Technically the member function 'bit_count_estimator::determine_number_of_bits_of_data_shannon' can be static (but you may consider moving to unnamed namespace).
int bit_count_estimator::determine_number_of_bits_of_data_shannon(const unsigned char *const data, const unsigned int n_bytes)
                         ^
math.h:8:6: note: Technically the member function 'bit_count_estimator::determine_number_of_bits_of_data_shannon' can be static (but you may consider moving to unnamed namespace).
 int determine_number_of_bits_of_data_shannon(const unsigned char *const data, const unsigned int n_bytes);
     ^
math.h:9:6: performance: inconclusive: The member function 'bit_count_estimator::determine_number_of_bits_of_data_compression' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances? And maybe it is more appropriate to move this function to an unnamed namespace. [functionStatic]
 int determine_number_of_bits_of_data_compression(const unsigned char *const data, const unsigned int n_bytes);
     ^
math.cpp:74:26: note: Technically the member function 'bit_count_estimator::determine_number_of_bits_of_data_compression' can be static (but you may consider moving to unnamed namespace).
int bit_count_estimator::determine_number_of_bits_of_data_compression(const unsigned char *const data, const unsigned int n_bytes)
                         ^
math.h:9:6: note: Technically the member function 'bit_count_estimator::determine_number_of_bits_of_data_compression' can be static (but you may consider moving to unnamed namespace).
 int determine_number_of_bits_of_data_compression(const unsigned char *const data, const unsigned int n_bytes);
     ^
my_pty.cpp:0:0: information: The checking of the file will be interrupted because there are too many #ifdef configurations. Checking of all #ifdef configurations can be forced by --force command line option or from GUI preferences. However that may increase the checking time. [toomanyconfigs]

^
my_pty.cpp:9:0: information: Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <errno.h>
^
my_pty.cpp:10:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
my_pty.cpp:11:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
my_pty.cpp:12:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
my_pty.cpp:13:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
my_pty.cpp:14:0: information: Include file: <regex.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <regex.h>
^
my_pty.cpp:16:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
my_pty.cpp:17:0: information: Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fcntl.h>
^
my_pty.cpp:19:0: information: Include file: <netinet/in.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <netinet/in.h>
^
my_pty.cpp:21:0: information: Include file: <sys/ioctl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/ioctl.h>
^
my_pty.cpp:53:0: information: Include file: <sys/socket.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/socket.h>
^
my_pty.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
my_pty.cpp:36:0: information: Include file: <sys/stropts.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stropts.h>
^
my_pty.cpp:37:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
my_pty.cpp:44:0: information: Include file: <sys/stream.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stream.h>
^
my_pty.cpp:45:0: information: Include file: <sys/stropts.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stropts.h>
^
my_pty.cpp:46:0: information: Include file: <sys/termios.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/termios.h>
^
my_pty.cpp:47:0: information: Include file: <sys/bsdtty.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/bsdtty.h>
^
my_pty.cpp:48:0: information: Include file: <sys/ttold.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/ttold.h>
^
my_pty.cpp:49:0: information: Include file: <sys/ptyio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/ptyio.h>
^
my_pty.cpp:50:0: information: Include file: <sys/strtio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/strtio.h>
^
my_pty.cpp:51:0: information: Include file: <sys/eucioctl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/eucioctl.h>
^
my_pty.cpp:24:0: information: Include file: <util.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <util.h>
^
my_pty.cpp:27:0: information: Include file: <util.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <util.h>
^
my_pty.cpp:30:0: information: Include file: <pty.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <pty.h>
^
my_pty.cpp:33:0: information: Include file: <libutil.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <libutil.h>
^
plot.cpp:1:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
plot.cpp:2:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
plot.cpp:3:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
plot.cpp:5:0: information: Include file: <png.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <png.h>
^
plot.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
plot.cpp:30:3: error: Memory leak: points [memleak]
  return 1;
  ^
plot.cpp:37:3: error: Memory leak: points [memleak]
  return 1;
  ^
plot.cpp:37:3: error: Resource leak: fhi [resourceLeak]
  return 1;
  ^
plot.cpp:24:25: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 unsigned int *points = (unsigned int *)calloc(1, bytes);
                        ^
plot.cpp:64:26: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 unsigned char *result = (unsigned char *)calloc(1, bytes);
                         ^
plot.cpp:20:8: style: Variable 'file_in' can be declared as pointer to const [constVariablePointer]
 char *file_in = argv[1];
       ^
plot.cpp:21:8: style: Variable 'file_out' can be declared as pointer to const [constVariablePointer]
 char *file_out = argv[2];
       ^
plot.cpp:53:36: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned]
 unsigned int c_max = 0, c_min = 1 << 31;
                                   ^
pool.cpp:1:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
pool.cpp:2:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
pool.cpp:3:0: information: Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fcntl.h>
^
pool.cpp:4:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
pool.cpp:6:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
pool.cpp:7:0: information: Include file: <stdint.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdint.h>
^
pool.cpp:8:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
pool.cpp:9:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
pool.cpp:10:0: information: Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <errno.h>
^
pool.cpp:11:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
pool.cpp:12:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
pool.cpp:13:0: information: Include file: <sys/mman.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/mman.h>
^
pool.cpp:14:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
pool.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
pool.cpp:56:35: warning: Either the condition 'pool_size_bytes<0' is redundant or fread() argument nr 3 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg]
 if ((rc = fread(entropy_pool, 1, pool_size_bytes, fh)) != pool_size_bytes)
                                  ^
pool.cpp:50:22: note: Assuming that condition 'pool_size_bytes<0' is not redundant
 if (pool_size_bytes < 0 || pool_size_bytes >= 4194304) // more than 4MB is ridiculous
                     ^
pool.cpp:56:35: note: Invalid argument
 if ((rc = fread(entropy_pool, 1, pool_size_bytes, fh)) != pool_size_bytes)
                                  ^
pool.cpp:106:2: portability: Using memset() on struct which contains a floating point number. This is not portable because memset() sets each byte of a block of memory to a specific value and the actual representation of a floating-point value is implementation defined. Note: In case of an IEEE754-1985 compatible implementation setting all bits to zero results in the value 0.0. [memsetClassFloat]
 memset(&state, 0x00, sizeof state);
 ^
pool.cpp:71:14: warning: Either the condition '!fh' is redundant or there is possible null pointer dereference: fh. [nullPointerRedundantCheck]
 while(!feof(fh))
             ^
pool.cpp:67:6: note: Assuming that condition '!fh' is not redundant
 if (!fh)
     ^
pool.cpp:71:14: note: Null pointer dereference
 while(!feof(fh))
             ^
pool.cpp:354:70: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 pc -> get_stirrer() -> do_stir(ivec, entropy_pool, pool_size_bytes, (unsigned char *)&ts, sizeof ts, entropy_pool_temp, true);
                                                                     ^
pool.cpp:354:70: portability: inconclusive: Casting from double * to unsigned char * is not portable due to different binary data representations on different platforms. [invalidPointerCast]
 pc -> get_stirrer() -> do_stir(ivec, entropy_pool, pool_size_bytes, (unsigned char *)&ts, sizeof ts, entropy_pool_temp, true);
                                                                     ^
pool.cpp:29:58: style: inconclusive: Function 'pool' argument 2 names different: declaration 'bce' definition 'bce_in'. [funcArgNamesDifferent]
pool::pool(int new_pool_size_bytes, bit_count_estimator *bce_in, pool_crypto *pc) : bce(bce_in)
                                                         ^
pool.h:32:53: note: Function 'pool' argument 2 names different: declaration 'bce' definition 'bce_in'.
 pool(int new_pool_size_bytes, bit_count_estimator *bce, pool_crypto *pc);
                                                    ^
pool.cpp:29:58: note: Function 'pool' argument 2 names different: declaration 'bce' definition 'bce_in'.
pool::pool(int new_pool_size_bytes, bit_count_estimator *bce_in, pool_crypto *pc) : bce(bce_in)
                                                         ^
pool.cpp:39:56: style: inconclusive: Function 'pool' argument 3 names different: declaration 'bce' definition 'bce_in'. [funcArgNamesDifferent]
pool::pool(int pool_nr, FILE *fh, bit_count_estimator *bce_in, pool_crypto *pc) : bce(bce_in)
                                                       ^
pool.h:33:51: note: Function 'pool' argument 3 names different: declaration 'bce' definition 'bce_in'.
 pool(int pool_nr, FILE *fh, bit_count_estimator *bce, pool_crypto *pc);
                                                  ^
pool.cpp:39:56: note: Function 'pool' argument 3 names different: declaration 'bce' definition 'bce_in'.
pool::pool(int pool_nr, FILE *fh, bit_count_estimator *bce_in, pool_crypto *pc) : bce(bce_in)
                                                       ^
pool.cpp:203:61: style: inconclusive: Function 'add_entropy_data' argument 2 names different: declaration 'n_bytes' definition 'n_bytes_in'. [funcArgNamesDifferent]
int pool::add_entropy_data(unsigned char *entropy_data, int n_bytes_in, pool_crypto *pc, int is_n_bits)
                                                            ^
pool.h:47:56: note: Function 'add_entropy_data' argument 2 names different: declaration 'n_bytes' definition 'n_bytes_in'.
 int add_entropy_data(unsigned char *entropy_data, int n_bytes, pool_crypto *pc, int is_n_bits = -1);
                                                       ^
pool.cpp:203:61: note: Function 'add_entropy_data' argument 2 names different: declaration 'n_bytes' definition 'n_bytes_in'.
int pool::add_entropy_data(unsigned char *entropy_data, int n_bytes_in, pool_crypto *pc, int is_n_bits)
                                                            ^
pool.cpp:64:42: performance: Parameter 'file_name' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
int pool::get_file_bit_count(std::string file_name)
                                         ^
pool_crypto.cpp:1:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
pool_crypto.cpp:44:3: warning: Class 'pool_crypto' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor]
  s = new stirrer_camellia();
  ^
pool_crypto.cpp:44:3: warning: Class 'pool_crypto' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq]
  s = new stirrer_camellia();
  ^
stirrer_3des.h:10:3: style: The destructor '~stirrer_3des' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride]
 ~stirrer_3des();
  ^
stirrer.h:5:11: note: Virtual destructor in base class
 virtual ~stirrer();
          ^
stirrer_3des.h:10:3: note: Destructor in derived class
 ~stirrer_3des();
  ^
stirrer_3des.h:12:6: style: The function 'get_ivec_size' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 int get_ivec_size();
     ^
stirrer.h:7:14: note: Virtual function in base class
 virtual int get_ivec_size() = 0;
             ^
stirrer_3des.h:12:6: note: Function in derived class
 int get_ivec_size();
     ^
stirrer_3des.h:13:6: style: The function 'get_stir_size' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 int get_stir_size();
     ^
stirrer.h:8:14: note: Virtual function in base class
 virtual int get_stir_size() = 0;
             ^
stirrer_3des.h:13:6: note: Function in derived class
 int get_stir_size();
     ^
stirrer_3des.h:14:7: style: The function 'do_stir' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 void do_stir(unsigned char *ivec, unsigned char *target, int target_size, unsigned char *data_in, int data_in_size, unsigned char *temp_buffer, bool direction);
      ^
stirrer.h:9:15: note: Virtual function in base class
 virtual void do_stir(unsigned char *ivec, unsigned char *target, int target_size, unsigned char *data_in, int data_in_size, unsigned char *temp_buffer, bool direction) = 0;
              ^
stirrer_3des.h:14:7: note: Function in derived class
 void do_stir(unsigned char *ivec, unsigned char *target, int target_size, unsigned char *data_in, int data_in_size, unsigned char *temp_buffer, bool direction);
      ^
stirrer_aes.h:8:3: style: The destructor '~stirrer_aes' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride]
 ~stirrer_aes();
  ^
stirrer.h:5:11: note: Virtual destructor in base class
 virtual ~stirrer();
          ^
stirrer_aes.h:8:3: note: Destructor in derived class
 ~stirrer_aes();
  ^
stirrer_aes.h:10:6: style: The function 'get_ivec_size' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 int get_ivec_size();
     ^
stirrer.h:7:14: note: Virtual function in base class
 virtual int get_ivec_size() = 0;
             ^
stirrer_aes.h:10:6: note: Function in derived class
 int get_ivec_size();
     ^
stirrer_aes.h:11:6: style: The function 'get_stir_size' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 int get_stir_size();
     ^
stirrer.h:8:14: note: Virtual function in base class
 virtual int get_stir_size() = 0;
             ^
stirrer_aes.h:11:6: note: Function in derived class
 int get_stir_size();
     ^
stirrer_aes.h:12:7: style: The function 'do_stir' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 void do_stir(unsigned char *ivec, unsigned char *target, int target_size, unsigned char *data_in, int data_in_size, unsigned char *temp_buffer, bool direction);
      ^
stirrer.h:9:15: note: Virtual function in base class
 virtual void do_stir(unsigned char *ivec, unsigned char *target, int target_size, unsigned char *data_in, int data_in_size, unsigned char *temp_buffer, bool direction) = 0;
              ^
stirrer_aes.h:12:7: note: Function in derived class
 void do_stir(unsigned char *ivec, unsigned char *target, int target_size, unsigned char *data_in, int data_in_size, unsigned char *temp_buffer, bool direction);
      ^
stirrer_blowfish.h:8:3: style: The destructor '~stirrer_blowfish' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride]
 ~stirrer_blowfish();
  ^
stirrer.h:5:11: note: Virtual destructor in base class
 virtual ~stirrer();
          ^
stirrer_blowfish.h:8:3: note: Destructor in derived class
 ~stirrer_blowfish();
  ^
stirrer_blowfish.h:10:6: style: The function 'get_ivec_size' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 int get_ivec_size();
     ^
stirrer.h:7:14: note: Virtual function in base class
 virtual int get_ivec_size() = 0;
             ^
stirrer_blowfish.h:10:6: note: Function in derived class
 int get_ivec_size();
     ^
stirrer_blowfish.h:11:6: style: The function 'get_stir_size' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 int get_stir_size();
     ^
stirrer.h:8:14: note: Virtual function in base class
 virtual int get_stir_size() = 0;
             ^
stirrer_blowfish.h:11:6: note: Function in derived class
 int get_stir_size();
     ^
stirrer_blowfish.h:12:7: style: The function 'do_stir' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 void do_stir(unsigned char *ivec, unsigned char *target, int target_size, unsigned char *data_in, int data_in_size, unsigned char *temp_buffer, bool direction);
      ^
stirrer.h:9:15: note: Virtual function in base class
 virtual void do_stir(unsigned char *ivec, unsigned char *target, int target_size, unsigned char *data_in, int data_in_size, unsigned char *temp_buffer, bool direction) = 0;
              ^
stirrer_blowfish.h:12:7: note: Function in derived class
 void do_stir(unsigned char *ivec, unsigned char *target, int target_size, unsigned char *data_in, int data_in_size, unsigned char *temp_buffer, bool direction);
      ^
stirrer_camellia.h:7:3: style: The destructor '~stirrer_camellia' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride]
 ~stirrer_camellia();
  ^
stirrer.h:5:11: note: Virtual destructor in base class
 virtual ~stirrer();
          ^
stirrer_camellia.h:7:3: note: Destructor in derived class
 ~stirrer_camellia();
  ^
stirrer_camellia.h:9:6: style: The function 'get_ivec_size' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 int get_ivec_size();
     ^
stirrer.h:7:14: note: Virtual function in base class
 virtual int get_ivec_size() = 0;
             ^
stirrer_camellia.h:9:6: note: Function in derived class
 int get_ivec_size();
     ^
stirrer_camellia.h:10:6: style: The function 'get_stir_size' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 int get_stir_size();
     ^
stirrer.h:8:14: note: Virtual function in base class
 virtual int get_stir_size() = 0;
             ^
stirrer_camellia.h:10:6: note: Function in derived class
 int get_stir_size();
     ^
stirrer_camellia.h:11:7: style: The function 'do_stir' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 void do_stir(unsigned char *ivec, unsigned char *target, int target_size, unsigned char *data_in, int data_in_size, unsigned char *temp_buffer, bool direction);
      ^
stirrer.h:9:15: note: Virtual function in base class
 virtual void do_stir(unsigned char *ivec, unsigned char *target, int target_size, unsigned char *data_in, int data_in_size, unsigned char *temp_buffer, bool direction) = 0;
              ^
stirrer_camellia.h:11:7: note: Function in derived class
 void do_stir(unsigned char *ivec, unsigned char *target, int target_size, unsigned char *data_in, int data_in_size, unsigned char *temp_buffer, bool direction);
      ^
pools.cpp:2:0: information: Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <errno.h>
^
pools.cpp:3:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
pools.cpp:4:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
pools.cpp:5:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
pools.cpp:6:0: information: Include file: <time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <time.h>
^
pools.cpp:7:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
pools.cpp:8:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
pools.cpp:9:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
pools.cpp:10:0: information: Include file: <dirent.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <dirent.h>
^
pools.cpp:11:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
pools.cpp:12:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
pools.cpp:13:0: information: Include file: <sys/file.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/file.h>
^
pools.cpp:14:0: information: Include file: <pthread.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <pthread.h>
^
pools.cpp:15:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
pools.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
pools.h:34:7: performance: inconclusive: The member function 'pools::verify_quality' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances? And maybe it is more appropriate to move this function to an unnamed namespace. [functionStatic]
 bool verify_quality(unsigned char *data, int n, bool ignore_rngtest_fips140, fips140 *pfips, bool ignore_rngtest_scc, scc *pscc);
      ^
pools.cpp:372:13: note: Technically the member function 'pools::verify_quality' can be static (but you may consider moving to unnamed namespace).
bool pools::verify_quality(unsigned char *data, int n, bool ignore_rngtest_fips140, fips140 *pfips, bool ignore_rngtest_scc, scc *pscc)
            ^
pools.h:34:7: note: Technically the member function 'pools::verify_quality' can be static (but you may consider moving to unnamed namespace).
 bool verify_quality(unsigned char *data, int n, bool ignore_rngtest_fips140, fips140 *pfips, bool ignore_rngtest_scc, scc *pscc);
      ^
pools.cpp:262:17: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 merge_t *ma = (merge_t *)a;
                ^
pools.cpp:263:17: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 merge_t *mb = (merge_t *)b;
                ^
pools.cpp:44:26: style: The unsigned expression 'min_store_on_disk_n' will never be negative so it is either pointless or an error to check if it is. [unsignedLessThanZero]
 if (min_store_on_disk_n < 0)
                         ^
pools.cpp:50:23: style: The unsigned expression 'max_n_disk_pools' will never be negative so it is either pointless or an error to check if it is. [unsignedLessThanZero]
 if (max_n_disk_pools < 0)
                      ^
pools.cpp:32:26: style: inconclusive: Function 'pools' argument 1 names different: declaration 'cache_dir' definition 'cache_dir_in'. [funcArgNamesDifferent]
pools::pools(std::string cache_dir_in, unsigned int max_n_mem_pools_in, unsigned int max_n_disk_pools_in, unsigned int min_store_on_disk_n_in, bit_count_estimator *bce_in, int new_pool_size_in_bytes) : cache_dir(cache_dir_in), max_n_mem_pools(max_n_mem_pools_in), max_n_disk_pools(max_n_disk_pools_in), min_store_on_disk_n(min_store_on_disk_n_in), disk_limit_reached_notified(false), bce(bce_in)
                         ^
pools.h:38:20: note: Function 'pools' argument 1 names different: declaration 'cache_dir' definition 'cache_dir_in'.
 pools(std::string cache_dir, unsigned int max_n_mem_pools, unsigned int max_n_disk_pools, unsigned int min_store_on_disk_n, bit_count_estimator *bce_in, int new_pool_size_in_bytes);
                   ^
pools.cpp:32:26: note: Function 'pools' argument 1 names different: declaration 'cache_dir' definition 'cache_dir_in'.
pools::pools(std::string cache_dir_in, unsigned int max_n_mem_pools_in, unsigned int max_n_disk_pools_in, unsigned int min_store_on_disk_n_in, bit_count_estimator *bce_in, int new_pool_size_in_bytes) : cache_dir(cache_dir_in), max_n_mem_pools(max_n_mem_pools_in), max_n_disk_pools(max_n_disk_pools_in), min_store_on_disk_n(min_store_on_disk_n_in), disk_limit_reached_notified(false), bce(bce_in)
                         ^
pools.cpp:32:53: style: inconclusive: Function 'pools' argument 2 names different: declaration 'max_n_mem_pools' definition 'max_n_mem_pools_in'. [funcArgNamesDifferent]
pools::pools(std::string cache_dir_in, unsigned int max_n_mem_pools_in, unsigned int max_n_disk_pools_in, unsigned int min_store_on_disk_n_in, bit_count_estimator *bce_in, int new_pool_size_in_bytes) : cache_dir(cache_dir_in), max_n_mem_pools(max_n_mem_pools_in), max_n_disk_pools(max_n_disk_pools_in), min_store_on_disk_n(min_store_on_disk_n_in), disk_limit_reached_notified(false), bce(bce_in)
                                                    ^
pools.h:38:44: note: Function 'pools' argument 2 names different: declaration 'max_n_mem_pools' definition 'max_n_mem_pools_in'.
 pools(std::string cache_dir, unsigned int max_n_mem_pools, unsigned int max_n_disk_pools, unsigned int min_store_on_disk_n, bit_count_estimator *bce_in, int new_pool_size_in_bytes);
                                           ^
pools.cpp:32:53: note: Function 'pools' argument 2 names different: declaration 'max_n_mem_pools' definition 'max_n_mem_pools_in'.
pools::pools(std::string cache_dir_in, unsigned int max_n_mem_pools_in, unsigned int max_n_disk_pools_in, unsigned int min_store_on_disk_n_in, bit_count_estimator *bce_in, int new_pool_size_in_bytes) : cache_dir(cache_dir_in), max_n_mem_pools(max_n_mem_pools_in), max_n_disk_pools(max_n_disk_pools_in), min_store_on_disk_n(min_store_on_disk_n_in), disk_limit_reached_notified(false), bce(bce_in)
                                                    ^
pools.cpp:32:86: style: inconclusive: Function 'pools' argument 3 names different: declaration 'max_n_disk_pools' definition 'max_n_disk_pools_in'. [funcArgNamesDifferent]
pools::pools(std::string cache_dir_in, unsigned int max_n_mem_pools_in, unsigned int max_n_disk_pools_in, unsigned int min_store_on_disk_n_in, bit_count_estimator *bce_in, int new_pool_size_in_bytes) : cache_dir(cache_dir_in), max_n_mem_pools(max_n_mem_pools_in), max_n_disk_pools(max_n_disk_pools_in), min_store_on_disk_n(min_store_on_disk_n_in), disk_limit_reached_notified(false), bce(bce_in)
                                                                                     ^
pools.h:38:74: note: Function 'pools' argument 3 names different: declaration 'max_n_disk_pools' definition 'max_n_disk_pools_in'.
 pools(std::string cache_dir, unsigned int max_n_mem_pools, unsigned int max_n_disk_pools, unsigned int min_store_on_disk_n, bit_count_estimator *bce_in, int new_pool_size_in_bytes);
                                                                         ^
pools.cpp:32:86: note: Function 'pools' argument 3 names different: declaration 'max_n_disk_pools' definition 'max_n_disk_pools_in'.
pools::pools(std::string cache_dir_in, unsigned int max_n_mem_pools_in, unsigned int max_n_disk_pools_in, unsigned int min_store_on_disk_n_in, bit_count_estimator *bce_in, int new_pool_size_in_bytes) : cache_dir(cache_dir_in), max_n_mem_pools(max_n_mem_pools_in), max_n_disk_pools(max_n_disk_pools_in), min_store_on_disk_n(min_store_on_disk_n_in), disk_limit_reached_notified(false), bce(bce_in)
                                                                                     ^
pools.cpp:32:120: style: inconclusive: Function 'pools' argument 4 names different: declaration 'min_store_on_disk_n' definition 'min_store_on_disk_n_in'. [funcArgNamesDifferent]
pools::pools(std::string cache_dir_in, unsigned int max_n_mem_pools_in, unsigned int max_n_disk_pools_in, unsigned int min_store_on_disk_n_in, bit_count_estimator *bce_in, int new_pool_size_in_bytes) : cache_dir(cache_dir_in), max_n_mem_pools(max_n_mem_pools_in), max_n_disk_pools(max_n_disk_pools_in), min_store_on_disk_n(min_store_on_disk_n_in), disk_limit_reached_notified(false), bce(bce_in)
                                                                                                                       ^
pools.h:38:105: note: Function 'pools' argument 4 names different: declaration 'min_store_on_disk_n' definition 'min_store_on_disk_n_in'.
 pools(std::string cache_dir, unsigned int max_n_mem_pools, unsigned int max_n_disk_pools, unsigned int min_store_on_disk_n, bit_count_estimator *bce_in, int new_pool_size_in_bytes);
                                                                                                        ^
pools.cpp:32:120: note: Function 'pools' argument 4 names different: declaration 'min_store_on_disk_n' definition 'min_store_on_disk_n_in'.
pools::pools(std::string cache_dir_in, unsigned int max_n_mem_pools_in, unsigned int max_n_disk_pools_in, unsigned int min_store_on_disk_n_in, bit_count_estimator *bce_in, int new_pool_size_in_bytes) : cache_dir(cache_dir_in), max_n_mem_pools(max_n_mem_pools_in), max_n_disk_pools(max_n_disk_pools_in), min_store_on_disk_n(min_store_on_disk_n_in), disk_limit_reached_notified(false), bce(bce_in)
                                                                                                                       ^
pools.cpp:635:102: style: inconclusive: Function 'add_bits_to_pools' argument 4 names different: declaration 'prt' definition 'pfips'. [funcArgNamesDifferent]
int pools::add_bits_to_pools(unsigned char *data, int n_bytes, bool ignore_rngtest_fips140, fips140 *pfips, bool ignore_rngtest_scc, scc *pscc, double max_duration, pool_crypto *pc)
                                                                                                     ^
pools.h:42:96: note: Function 'add_bits_to_pools' argument 4 names different: declaration 'prt' definition 'pfips'.
 int add_bits_to_pools(unsigned char *data, int n_bytes, bool ignore_rngtest_fips140, fips140 *prt, bool ignore_rngtest_scc, scc *pscc, double max_duration, pool_crypto *pc);
                                                                                               ^
pools.cpp:635:102: note: Function 'add_bits_to_pools' argument 4 names different: declaration 'prt' definition 'pfips'.
int pools::add_bits_to_pools(unsigned char *data, int n_bytes, bool ignore_rngtest_fips140, fips140 *pfips, bool ignore_rngtest_scc, scc *pscc, double max_duration, pool_crypto *pc)
                                                                                                     ^
pools.cpp:262:11: style: Variable 'ma' can be declared as pointer to const [constVariablePointer]
 merge_t *ma = (merge_t *)a;
          ^
pools.cpp:263:11: style: Variable 'mb' can be declared as pointer to const [constVariablePointer]
 merge_t *mb = (merge_t *)b;
          ^
pools.cpp:372:43: style: Parameter 'data' can be declared as pointer to const [constParameterPointer]
bool pools::verify_quality(unsigned char *data, int n, bool ignore_rngtest_fips140, fips140 *pfips, bool ignore_rngtest_scc, scc *pscc)
                                          ^
pools.cpp:412:19: style: Variable 'cond' can be declared as pointer to const [constVariablePointer]
  pthread_cond_t *cond = NULL;
                  ^
pools.cpp:597:20: style: Variable 'cond' can be declared as pointer to const [constVariablePointer]
   pthread_cond_t *cond = NULL;
                   ^
protocol.cpp:1:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
protocol.cpp:2:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
protocol.cpp:3:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
protocol.cpp:4:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
protocol.cpp:5:0: information: Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <errno.h>
^
protocol.cpp:6:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
protocol.cpp:7:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
protocol.cpp:8:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
protocol.cpp:9:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
protocol.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
protocol.h:33:7: performance: inconclusive: The member function 'protocol::error_sleep' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances? And maybe it is more appropriate to move this function to an unnamed namespace. [functionStatic]
 void error_sleep(int count);
      ^
protocol.cpp:144:16: note: Technically the member function 'protocol::error_sleep' can be static (but you may consider moving to unnamed namespace).
void protocol::error_sleep(int count)
               ^
protocol.h:33:7: note: Technically the member function 'protocol::error_sleep' can be static (but you may consider moving to unnamed namespace).
 void error_sleep(int count);
      ^
protocol.cpp:84:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
 snprintf(reinterpret_cast<char *>(where_to), 5, "%04d", code);
 ^
protocol.cpp:110:68: style: inconclusive: Function 'protocol' argument 2 names different: declaration 'username' definition 'username_in'. [funcArgNamesDifferent]
protocol::protocol(std::vector<std::string> *hosts_in, std::string username_in, std::string password_in, bool is_server_in, std::string type_in, double comm_time_out_in) : hosts(hosts_in), username(username_in), password(password_in), is_server(is_server_in), type(type_in), comm_time_out(comm_time_out_in)
                                                                   ^
protocol.h:36:60: note: Function 'protocol' argument 2 names different: declaration 'username' definition 'username_in'.
 protocol(std::vector<std::string> * hosts_in, std::string username, std::string password, bool is_server, std::string type, double comm_time_out);
                                                           ^
protocol.cpp:110:68: note: Function 'protocol' argument 2 names different: declaration 'username' definition 'username_in'.
protocol::protocol(std::vector<std::string> *hosts_in, std::string username_in, std::string password_in, bool is_server_in, std::string type_in, double comm_time_out_in) : hosts(hosts_in), username(username_in), password(password_in), is_server(is_server_in), type(type_in), comm_time_out(comm_time_out_in)
                                                                   ^
protocol.cpp:110:93: style: inconclusive: Function 'protocol' argument 3 names different: declaration 'password' definition 'password_in'. [funcArgNamesDifferent]
protocol::protocol(std::vector<std::string> *hosts_in, std::string username_in, std::string password_in, bool is_server_in, std::string type_in, double comm_time_out_in) : hosts(hosts_in), username(username_in), password(password_in), is_server(is_server_in), type(type_in), comm_time_out(comm_time_out_in)
                                                                                            ^
protocol.h:36:82: note: Function 'protocol' argument 3 names different: declaration 'password' definition 'password_in'.
 protocol(std::vector<std::string> * hosts_in, std::string username, std::string password, bool is_server, std::string type, double comm_time_out);
                                                                                 ^
protocol.cpp:110:93: note: Function 'protocol' argument 3 names different: declaration 'password' definition 'password_in'.
protocol::protocol(std::vector<std::string> *hosts_in, std::string username_in, std::string password_in, bool is_server_in, std::string type_in, double comm_time_out_in) : hosts(hosts_in), username(username_in), password(password_in), is_server(is_server_in), type(type_in), comm_time_out(comm_time_out_in)
                                                                                            ^
protocol.cpp:110:111: style: inconclusive: Function 'protocol' argument 4 names different: declaration 'is_server' definition 'is_server_in'. [funcArgNamesDifferent]
protocol::protocol(std::vector<std::string> *hosts_in, std::string username_in, std::string password_in, bool is_server_in, std::string type_in, double comm_time_out_in) : hosts(hosts_in), username(username_in), password(password_in), is_server(is_server_in), type(type_in), comm_time_out(comm_time_out_in)
                                                                                                              ^
protocol.h:36:97: note: Function 'protocol' argument 4 names different: declaration 'is_server' definition 'is_server_in'.
 protocol(std::vector<std::string> * hosts_in, std::string username, std::string password, bool is_server, std::string type, double comm_time_out);
                                                                                                ^
protocol.cpp:110:111: note: Function 'protocol' argument 4 names different: declaration 'is_server' definition 'is_server_in'.
protocol::protocol(std::vector<std::string> *hosts_in, std::string username_in, std::string password_in, bool is_server_in, std::string type_in, double comm_time_out_in) : hosts(hosts_in), username(username_in), password(password_in), is_server(is_server_in), type(type_in), comm_time_out(comm_time_out_in)
                                                                                                              ^
protocol.cpp:110:137: style: inconclusive: Function 'protocol' argument 5 names different: declaration 'type' definition 'type_in'. [funcArgNamesDifferent]
protocol::protocol(std::vector<std::string> *hosts_in, std::string username_in, std::string password_in, bool is_server_in, std::string type_in, double comm_time_out_in) : hosts(hosts_in), username(username_in), password(password_in), is_server(is_server_in), type(type_in), comm_time_out(comm_time_out_in)
                                                                                                                                        ^
protocol.h:36:120: note: Function 'protocol' argument 5 names different: declaration 'type' definition 'type_in'.
 protocol(std::vector<std::string> * hosts_in, std::string username, std::string password, bool is_server, std::string type, double comm_time_out);
                                                                                                                       ^
protocol.cpp:110:137: note: Function 'protocol' argument 5 names different: declaration 'type' definition 'type_in'.
protocol::protocol(std::vector<std::string> *hosts_in, std::string username_in, std::string password_in, bool is_server_in, std::string type_in, double comm_time_out_in) : hosts(hosts_in), username(username_in), password(password_in), is_server(is_server_in), type(type_in), comm_time_out(comm_time_out_in)
                                                                                                                                        ^
protocol.cpp:110:153: style: inconclusive: Function 'protocol' argument 6 names different: declaration 'comm_time_out' definition 'comm_time_out_in'. [funcArgNamesDifferent]
protocol::protocol(std::vector<std::string> *hosts_in, std::string username_in, std::string password_in, bool is_server_in, std::string type_in, double comm_time_out_in) : hosts(hosts_in), username(username_in), password(password_in), is_server(is_server_in), type(type_in), comm_time_out(comm_time_out_in)
                                                                                                                                                        ^
protocol.h:36:133: note: Function 'protocol' argument 6 names different: declaration 'comm_time_out' definition 'comm_time_out_in'.
 protocol(std::vector<std::string> * hosts_in, std::string username, std::string password, bool is_server, std::string type, double comm_time_out);
                                                                                                                                    ^
protocol.cpp:110:153: note: Function 'protocol' argument 6 names different: declaration 'comm_time_out' definition 'comm_time_out_in'.
protocol::protocol(std::vector<std::string> *hosts_in, std::string username_in, std::string password_in, bool is_server_in, std::string type_in, double comm_time_out_in) : hosts(hosts_in), username(username_in), password(password_in), is_server(is_server_in), type(type_in), comm_time_out(comm_time_out_in)
                                                                                                                                                        ^
protocol.cpp:91:17: style: Variable 'prnd' can be declared as pointer to const [constVariablePointer]
 unsigned char *prnd = reinterpret_cast<unsigned char *>(&rnd);
                ^
protocol.cpp:92:17: style: Variable 'pcnt' can be declared as pointer to const [constVariablePointer]
 unsigned char *pcnt = reinterpret_cast<unsigned char *>(&counter);
                ^
protocol.cpp:153:60: style: Parameter 'do_exit' can be declared as pointer to const [constParameterPointer]
reconnect_status_t protocol::reconnect_server_socket(bool *do_exit)
                                                           ^
proxy_knuth_b.cpp:1:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
proxy_knuth_b.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
proxy_knuth_b.cpp:3:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
proxy_knuth_b.cpp:4:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
proxy_knuth_b.cpp:5:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
proxy_knuth_b.cpp:6:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
proxy_knuth_b.cpp:7:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
proxy_knuth_b.cpp:8:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
proxy_knuth_b.cpp:9:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
proxy_knuth_b.cpp:10:0: information: Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fcntl.h>
^
proxy_knuth_b.cpp:11:0: information: Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <errno.h>
^
proxy_knuth_b.cpp:12:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
proxy_knuth_b.cpp:13:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
proxy_knuth_b.cpp:14:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
proxy_knuth_b.cpp:15:0: information: Include file: <stddef.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stddef.h>
^
proxy_knuth_b.cpp:16:0: information: Include file: <sys/socket.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/socket.h>
^
proxy_knuth_b.cpp:17:0: information: Include file: <sys/un.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/un.h>
^
proxy_knuth_b.cpp:18:0: information: Include file: <libgen.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <libgen.h>
^
proxy_knuth_b.cpp:19:0: information: Include file: <netinet/in.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <netinet/in.h>
^
proxy_knuth_b.cpp:20:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
proxy_knuth_b.cpp:21:0: information: Include file: <netdb.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <netdb.h>
^
proxy_knuth_b.cpp:22:0: information: Include file: <pthread.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <pthread.h>
^
proxy_knuth_b.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
proxy_knuth_b.cpp:91:27: warning: Either the condition '!fh' is redundant or there is possible null pointer dereference: fh. [nullPointerRedundantCheck]
 if (fwrite(buffer, 1, 4, fh) != 4)
                          ^
proxy_knuth_b.cpp:139:6: note: Assuming that condition '!fh' is not redundant
 if (!fh)
     ^
proxy_knuth_b.cpp:142:14: note: Calling function 'write_value', 1st argument 'fh' value is 0
 write_value(fh, lt -> t_size);
             ^
proxy_knuth_b.cpp:91:27: note: Null pointer dereference
 if (fwrite(buffer, 1, 4, fh) != 4)
                          ^
proxy_knuth_b.cpp:145:36: warning: Either the condition '!fh' is redundant or there is possible null pointer dereference: fh. [nullPointerRedundantCheck]
 if (fwrite(lt -> table, 1, bytes, fh) != bytes)
                                   ^
proxy_knuth_b.cpp:139:6: note: Assuming that condition '!fh' is not redundant
 if (!fh)
     ^
proxy_knuth_b.cpp:145:36: note: Null pointer dereference
 if (fwrite(lt -> table, 1, bytes, fh) != bytes)
                                   ^
proxy_knuth_b.cpp:205:19: warning: Either the condition '!buffer_out' is redundant or there is possible null pointer dereference: buffer_out. [nullPointerRedundantCheck]
 if (memcmp(hash, buffer_out, hash_len) != 0)
                  ^
proxy_knuth_b.cpp:192:6: note: Assuming that condition '!buffer_out' is not redundant
 if (!buffer_out)
     ^
proxy_knuth_b.cpp:205:19: note: Null pointer dereference
 if (memcmp(hash, buffer_out, hash_len) != 0)
                  ^
proxy_knuth_b.cpp:106:17: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
  lt -> table = (unsigned short *)malloc(lt -> t_size * sizeof(unsigned short));
                ^
proxy_knuth_b.cpp:108:13: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
  lt -> A = (unsigned short *)malloc(KNUTH_SIZE * sizeof(unsigned short));
            ^
proxy_knuth_b.cpp:116:17: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
  lt -> table = (unsigned short *)malloc(lt -> t_size * sizeof(unsigned short));
                ^
proxy_knuth_b.cpp:126:13: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
  lt -> A = (unsigned short *)malloc(KNUTH_SIZE * sizeof(unsigned short));
            ^
proxy_knuth_b.cpp:296:22: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 thread_pars_t *p = (thread_pars_t *)pars;
                     ^
proxy_knuth_b.cpp:317:26: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
   unsigned short *out = (unsigned short *)malloc(n_bytes);
                         ^
proxy_knuth_b.cpp:95:34: performance: Parameter 'file' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void load_knuth_file(std::string file, lookup_t *lt)
                                 ^
proxy_knuth_b.cpp:134:35: performance: Parameter 'file' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void write_knuth_file(std::string file, lookup_t *lt)
                                  ^
proxy_knuth_b.cpp:134:51: style: Parameter 'lt' can be declared as pointer to const [constParameterPointer]
void write_knuth_file(std::string file, lookup_t *lt)
                                                  ^
proxy_knuth_b.cpp:51:20: style: struct member 'proxy_client_t::type' is never used. [unusedStructMember]
 std::string host, type;
                   ^
proxy_knuth_m.cpp:1:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
proxy_knuth_m.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
proxy_knuth_m.cpp:3:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
proxy_knuth_m.cpp:4:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
proxy_knuth_m.cpp:5:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
proxy_knuth_m.cpp:6:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
proxy_knuth_m.cpp:7:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
proxy_knuth_m.cpp:8:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
proxy_knuth_m.cpp:9:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
proxy_knuth_m.cpp:10:0: information: Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fcntl.h>
^
proxy_knuth_m.cpp:11:0: information: Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <errno.h>
^
proxy_knuth_m.cpp:12:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
proxy_knuth_m.cpp:13:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
proxy_knuth_m.cpp:14:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
proxy_knuth_m.cpp:15:0: information: Include file: <stddef.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stddef.h>
^
proxy_knuth_m.cpp:16:0: information: Include file: <sys/socket.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/socket.h>
^
proxy_knuth_m.cpp:17:0: information: Include file: <sys/un.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/un.h>
^
proxy_knuth_m.cpp:18:0: information: Include file: <libgen.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <libgen.h>
^
proxy_knuth_m.cpp:19:0: information: Include file: <netinet/in.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <netinet/in.h>
^
proxy_knuth_m.cpp:20:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
proxy_knuth_m.cpp:21:0: information: Include file: <netdb.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <netdb.h>
^
proxy_knuth_m.cpp:22:0: information: Include file: <pthread.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <pthread.h>
^
proxy_knuth_m.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
proxy_knuth_m.cpp:94:27: warning: Either the condition '!fh' is redundant or there is possible null pointer dereference: fh. [nullPointerRedundantCheck]
 if (fwrite(buffer, 1, 4, fh) != 4)
                          ^
proxy_knuth_m.cpp:148:6: note: Assuming that condition '!fh' is not redundant
 if (!fh)
     ^
proxy_knuth_m.cpp:151:14: note: Calling function 'write_value', 1st argument 'fh' value is 0
 write_value(fh, lt -> t_size);
             ^
proxy_knuth_m.cpp:94:27: note: Null pointer dereference
 if (fwrite(buffer, 1, 4, fh) != 4)
                          ^
proxy_knuth_m.cpp:154:36: warning: Either the condition '!fh' is redundant or there is possible null pointer dereference: fh. [nullPointerRedundantCheck]
 if (fwrite(lt -> table, 1, bytes, fh) != bytes)
                                   ^
proxy_knuth_m.cpp:148:6: note: Assuming that condition '!fh' is not redundant
 if (!fh)
     ^
proxy_knuth_m.cpp:154:36: note: Null pointer dereference
 if (fwrite(lt -> table, 1, bytes, fh) != bytes)
                                   ^
proxy_knuth_m.cpp:216:19: warning: Either the condition '!buffer_out' is redundant or there is possible null pointer dereference: buffer_out. [nullPointerRedundantCheck]
 if (memcmp(hash, buffer_out, hash_len) != 0)
                  ^
proxy_knuth_m.cpp:203:6: note: Assuming that condition '!buffer_out' is not redundant
 if (!buffer_out)
     ^
proxy_knuth_m.cpp:216:19: note: Null pointer dereference
 if (memcmp(hash, buffer_out, hash_len) != 0)
                  ^
proxy_knuth_m.cpp:109:17: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
  lt -> table = (unsigned short *)malloc(lt -> t_size * sizeof(unsigned short));
                ^
proxy_knuth_m.cpp:111:13: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
  lt -> A = (unsigned short *)malloc(A_B_SIZE * sizeof(unsigned short));
            ^
proxy_knuth_m.cpp:112:13: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
  lt -> B = (unsigned short *)malloc(A_B_SIZE * sizeof(unsigned short));
            ^
proxy_knuth_m.cpp:122:17: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
  lt -> table = (unsigned short *)malloc(lt -> t_size * sizeof(unsigned short));
                ^
proxy_knuth_m.cpp:132:13: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
  lt -> A = (unsigned short *)malloc(A_B_SIZE * sizeof(unsigned short));
            ^
proxy_knuth_m.cpp:135:13: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
  lt -> B = (unsigned short *)malloc(A_B_SIZE * sizeof(unsigned short));
            ^
proxy_knuth_m.cpp:320:22: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 thread_pars_t *p = (thread_pars_t *)pars;
                     ^
proxy_knuth_m.cpp:341:26: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
   unsigned short *out = (unsigned short *)malloc(n_bytes);
                         ^
proxy_knuth_m.cpp:98:34: performance: Parameter 'file' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void load_knuth_file(std::string file, lookup_t *lt)
                                 ^
proxy_knuth_m.cpp:143:35: performance: Parameter 'file' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void write_knuth_file(std::string file, lookup_t *lt)
                                  ^
proxy_knuth_m.cpp:143:51: style: Parameter 'lt' can be declared as pointer to const [constParameterPointer]
void write_knuth_file(std::string file, lookup_t *lt)
                                                  ^
proxy_knuth_m.cpp:52:20: style: struct member 'proxy_client_t::type' is never used. [unusedStructMember]
 std::string host, type;
                   ^
random_source.cpp:1:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
random_source.cpp:2:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
random_source.cpp:3:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
random_source.h:13:7: performance: inconclusive: The member function 'random_source::dump_state' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances? And maybe it is more appropriate to move this function to an unnamed namespace. [functionStatic]
 void dump_state(const std::string & file);
      ^
random_source.cpp:92:21: note: Technically the member function 'random_source::dump_state' can be static (but you may consider moving to unnamed namespace).
void random_source::dump_state(const std::string & file)
                    ^
random_source.h:13:7: note: Technically the member function 'random_source::dump_state' can be static (but you may consider moving to unnamed namespace).
 void dump_state(const std::string & file);
      ^
random_source.h:14:7: performance: inconclusive: The member function 'random_source::retrieve_state' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances? And maybe it is more appropriate to move this function to an unnamed namespace. [functionStatic]
 void retrieve_state(const std::string & file);
      ^
random_source.cpp:96:21: note: Technically the member function 'random_source::retrieve_state' can be static (but you may consider moving to unnamed namespace).
void random_source::retrieve_state(const std::string & file)
                    ^
random_source.h:14:7: note: Technically the member function 'random_source::retrieve_state' can be static (but you may consider moving to unnamed namespace).
 void retrieve_state(const std::string & file);
      ^
random_source.h:22:7: performance: inconclusive: The member function 'random_source::check_empty' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances? And maybe it is more appropriate to move this function to an unnamed namespace. [functionStatic]
 bool check_empty() const;
      ^
random_source.cpp:81:21: note: Technically the member function 'random_source::check_empty' can be static (but you may consider moving to unnamed namespace).
bool random_source::check_empty() const
                    ^
random_source.h:22:7: note: Technically the member function 'random_source::check_empty' can be static (but you may consider moving to unnamed namespace).
 bool check_empty() const;
      ^
random_source.h:23:7: performance: inconclusive: The member function 'random_source::seed' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances? And maybe it is more appropriate to move this function to an unnamed namespace. [functionStatic]
 void seed(const unsigned char *const in, const size_t n, const double byte_count);
      ^
random_source.cpp:88:21: note: Technically the member function 'random_source::seed' can be static (but you may consider moving to unnamed namespace).
void random_source::seed(const unsigned char *const in, const size_t n, const double byte_count)
                    ^
random_source.h:23:7: note: Technically the member function 'random_source::seed' can be static (but you may consider moving to unnamed namespace).
 void seed(const unsigned char *const in, const size_t n, const double byte_count);
      ^
random_source.cpp:21:2: warning: Class 'random_source' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor]
 rng = new CryptoPP::AutoSeededRandomPool();
 ^
random_source.cpp:21:2: warning: Class 'random_source' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq]
 rng = new CryptoPP::AutoSeededRandomPool();
 ^
random_source.cpp:48:4: style: The exception is caught by value. It could be caught as a (const) reference which is usually recommended in C++. [catchExceptionByValue]
   catch(CryptoPP::OS_RNG_Err ore)
   ^
random_source.cpp:12:52: style: inconclusive: Function 'random_source' argument 1 names different: declaration 'rst' definition 'rs_in'. [funcArgNamesDifferent]
random_source::random_source(const random_source_t rs_in) : rs(rs_in), notified_errors(false)
                                                   ^
random_source.h:17:38: note: Function 'random_source' argument 1 names different: declaration 'rst' definition 'rs_in'.
 random_source(const random_source_t rst);
                                     ^
random_source.cpp:12:52: note: Function 'random_source' argument 1 names different: declaration 'rst' definition 'rs_in'.
random_source::random_source(const random_source_t rs_in) : rs(rs_in), notified_errors(false)
                                                   ^
random_source.cpp:17:52: style: inconclusive: Function 'random_source' argument 1 names different: declaration 'rst' definition 'rs_in'. [funcArgNamesDifferent]
random_source::random_source(const random_source_t rs_in, const std::string & state_file_in) : rs(rs_in), state_file(state_file_in), notified_errors(false)
                                                   ^
random_source.h:18:38: note: Function 'random_source' argument 1 names different: declaration 'rst' definition 'rs_in'.
 random_source(const random_source_t rst, const std::string & dump_file_in);
                                     ^
random_source.cpp:17:52: note: Function 'random_source' argument 1 names different: declaration 'rst' definition 'rs_in'.
random_source::random_source(const random_source_t rs_in, const std::string & state_file_in) : rs(rs_in), state_file(state_file_in), notified_errors(false)
                                                   ^
random_source.cpp:17:79: style: inconclusive: Function 'random_source' argument 2 names different: declaration 'dump_file_in' definition 'state_file_in'. [funcArgNamesDifferent]
random_source::random_source(const random_source_t rs_in, const std::string & state_file_in) : rs(rs_in), state_file(state_file_in), notified_errors(false)
                                                                              ^
random_source.h:18:63: note: Function 'random_source' argument 2 names different: declaration 'dump_file_in' definition 'state_file_in'.
 random_source(const random_source_t rst, const std::string & dump_file_in);
                                                              ^
random_source.cpp:17:79: note: Function 'random_source' argument 2 names different: declaration 'dump_file_in' definition 'state_file_in'.
random_source::random_source(const random_source_t rs_in, const std::string & state_file_in) : rs(rs_in), state_file(state_file_in), notified_errors(false)
                                                                              ^
scc.cpp:2:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
scc.cpp:3:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
scc.cpp:4:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
scc.cpp:5:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
scc.h:11:9: style: inconclusive: The member function 'scc::get_cur_scc' can be made a const function. Making this function 'const' should not cause compiler errors. Even though the function can be made const function technically it may not make sense conceptually. Think about your design and the task of the function first - is it a function that must not change object internal state? [functionConst]
 double get_cur_scc();
        ^
scc.cpp:55:13: note: Technically the member function 'scc::get_cur_scc' can be const.
double scc::get_cur_scc()
            ^
scc.h:11:9: note: Technically the member function 'scc::get_cur_scc' can be const.
 double get_cur_scc();
        ^
server_Araneus_Alea.cpp:1:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
server_Araneus_Alea.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
server_Araneus_Alea.cpp:3:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
server_Araneus_Alea.cpp:4:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
server_Araneus_Alea.cpp:5:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
server_Araneus_Alea.cpp:6:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
server_Araneus_Alea.cpp:7:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
server_Araneus_Alea.cpp:8:0: information: Include file: <stddef.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stddef.h>
^
server_Araneus_Alea.cpp:9:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
server_Araneus_Alea.cpp:10:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
server_Araneus_Alea.cpp:11:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
server_Araneus_Alea.cpp:12:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
server_Araneus_Alea.cpp:13:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
server_Araneus_Alea.cpp:14:0: information: Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fcntl.h>
^
server_Araneus_Alea.cpp:15:0: information: Include file: <termios.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <termios.h>
^
server_Araneus_Alea.cpp:16:0: information: Include file: <sys/socket.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/socket.h>
^
server_Araneus_Alea.cpp:17:0: information: Include file: <sys/un.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/un.h>
^
server_Araneus_Alea.cpp:18:0: information: Include file: <libusb-1.0/libusb.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <libusb-1.0/libusb.h>
^
server_Araneus_Alea.cpp:82:45: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro]
 fprintf(stderr, "eb_server_Araneus_Alea v" VERSION ", (C) 2009-2015 by folkert@vanheusden.com\n");
                                            ^
server_ComScire_R2000KU.cpp:3:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
server_ComScire_R2000KU.cpp:4:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
server_ComScire_R2000KU.cpp:5:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
server_ComScire_R2000KU.cpp:6:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
server_ComScire_R2000KU.cpp:7:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
server_ComScire_R2000KU.cpp:8:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
server_ComScire_R2000KU.cpp:9:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
server_ComScire_R2000KU.cpp:10:0: information: Include file: <stddef.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stddef.h>
^
server_ComScire_R2000KU.cpp:11:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
server_ComScire_R2000KU.cpp:12:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
server_ComScire_R2000KU.cpp:13:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
server_ComScire_R2000KU.cpp:14:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
server_ComScire_R2000KU.cpp:15:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
server_ComScire_R2000KU.cpp:16:0: information: Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fcntl.h>
^
server_ComScire_R2000KU.cpp:17:0: information: Include file: <termios.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <termios.h>
^
server_ComScire_R2000KU.cpp:18:0: information: Include file: <sys/socket.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/socket.h>
^
server_ComScire_R2000KU.cpp:19:0: information: Include file: <sys/un.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/un.h>
^
server_ComScire_R2000KU.cpp:79:49: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro]
 fprintf(stderr, "eb_server_ComScire_R2000KU v" VERSION ", (C) 2009-2015 by folkert@vanheusden.com\n");
                                                ^
server_audio.cpp:1:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
server_audio.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
server_audio.cpp:3:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
server_audio.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
server_audio.cpp:5:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
server_audio.cpp:6:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
server_audio.cpp:8:0: information: Include file: <getopt.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <getopt.h>
^
server_audio.cpp:9:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
server_audio.cpp:10:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
server_audio.cpp:11:0: information: Include file: <syslog.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <syslog.h>
^
server_audio.cpp:12:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
server_audio.cpp:13:0: information: Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fcntl.h>
^
server_audio.cpp:14:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
server_audio.cpp:15:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
server_audio.cpp:16:0: information: Include file: <sys/ioctl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/ioctl.h>
^
server_audio.cpp:17:0: information: Include file: <sys/wait.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/wait.h>
^
server_audio.cpp:18:0: information: Include file: <sys/mman.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/mman.h>
^
server_audio.cpp:19:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
server_audio.cpp:20:0: information: Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <errno.h>
^
server_audio.cpp:21:0: information: Include file: <alsa/asoundlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <alsa/asoundlib.h>
^
server_audio.cpp:154:64: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro]
 snprintf(server_type, sizeof server_type, "eb_server_audio v" VERSION " %s", cdevice);
                                                               ^
server_cycle_count.cpp:1:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
server_cycle_count.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
server_cycle_count.cpp:3:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
server_cycle_count.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
server_cycle_count.cpp:5:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
server_cycle_count.cpp:6:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
server_cycle_count.cpp:7:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
server_cycle_count.cpp:8:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
server_cycle_count.cpp:9:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
server_cycle_count.cpp:10:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
server_cycle_count.cpp:11:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
server_cycle_count.cpp:12:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
server_cycle_count.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
server_cycle_count.cpp:70:13: warning: %d in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int]
        if (fscanf(fh, "%d", &s) != 1)
            ^
server_cycle_count.cpp:86:13: warning: %d in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int]
        if (fscanf(fh, "%d", &s) != 1)
            ^
server_egd.cpp:1:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
server_egd.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
server_egd.cpp:3:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
server_egd.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
server_egd.cpp:5:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
server_egd.cpp:6:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
server_egd.cpp:7:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
server_egd.cpp:8:0: information: Include file: <stddef.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stddef.h>
^
server_egd.cpp:9:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
server_egd.cpp:10:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
server_egd.cpp:11:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
server_egd.cpp:12:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
server_egd.cpp:13:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
server_egd.cpp:14:0: information: Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fcntl.h>
^
server_egd.cpp:15:0: information: Include file: <termios.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <termios.h>
^
server_egd.cpp:16:0: information: Include file: <sys/socket.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/socket.h>
^
server_egd.cpp:17:0: information: Include file: <sys/un.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/un.h>
^
server_egd.cpp:118:36: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro]
 fprintf(stderr, "eb_server_egd v" VERSION ", (C) 2009-2015 by folkert@vanheusden.com\n");
                                   ^
server_ext_proc.cpp:1:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
server_ext_proc.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
server_ext_proc.cpp:3:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
server_ext_proc.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
server_ext_proc.cpp:5:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
server_ext_proc.cpp:6:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
server_ext_proc.cpp:7:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
server_ext_proc.cpp:8:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
server_ext_proc.cpp:9:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
server_ext_proc.cpp:10:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
server_ext_proc.cpp:11:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
server_ext_proc.cpp:12:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
server_ext_proc.cpp:13:0: information: Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fcntl.h>
^
server_ext_proc.cpp:14:0: information: Include file: <termios.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <termios.h>
^
server_ext_proc.cpp:15:0: information: Include file: <sys/wait.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/wait.h>
^
server_ext_proc.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
server_linux_kernel.cpp:1:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
server_linux_kernel.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
server_linux_kernel.cpp:3:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
server_linux_kernel.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
server_linux_kernel.cpp:5:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
server_linux_kernel.cpp:6:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
server_linux_kernel.cpp:7:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
server_linux_kernel.cpp:8:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
server_linux_kernel.cpp:9:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
server_linux_kernel.cpp:10:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
server_linux_kernel.cpp:11:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
server_linux_kernel.cpp:12:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
server_linux_kernel.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
server_push_file.cpp:1:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
server_push_file.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
server_push_file.cpp:3:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
server_push_file.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
server_push_file.cpp:5:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
server_push_file.cpp:6:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
server_push_file.cpp:7:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
server_push_file.cpp:8:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
server_push_file.cpp:9:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
server_push_file.cpp:10:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
server_push_file.cpp:11:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
server_push_file.cpp:12:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
server_push_file.cpp:13:0: information: Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fcntl.h>
^
server_push_file.cpp:14:0: information: Include file: <termios.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <termios.h>
^
server_push_file.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
server_push_file.cpp:138:19: warning: Either the condition '!file' is redundant or there is possible null pointer dereference: file. [nullPointerRedundantCheck]
 FILE *fh = fopen(file, "rb");
                  ^
server_push_file.cpp:131:6: note: Assuming that condition '!file' is not redundant
 if (!file)
     ^
server_push_file.cpp:138:19: note: Null pointer dereference
 FILE *fh = fopen(file, "rb");
                  ^
server_qwqng.cpp:1:0: information: Include file: <qwqng.hpp> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <qwqng.hpp>
^
server_qwqng.cpp:3:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
server_qwqng.cpp:4:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
server_qwqng.cpp:5:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
server_qwqng.cpp:6:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
server_qwqng.cpp:7:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
server_qwqng.cpp:8:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
server_qwqng.cpp:9:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
server_qwqng.cpp:10:0: information: Include file: <stddef.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stddef.h>
^
server_qwqng.cpp:11:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
server_qwqng.cpp:12:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
server_qwqng.cpp:13:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
server_qwqng.cpp:14:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
server_qwqng.cpp:15:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
server_qwqng.cpp:16:0: information: Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fcntl.h>
^
server_qwqng.cpp:17:0: information: Include file: <termios.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <termios.h>
^
server_qwqng.cpp:18:0: information: Include file: <sys/socket.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/socket.h>
^
server_qwqng.cpp:19:0: information: Include file: <sys/un.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/un.h>
^
server_qwqng.cpp:78:45: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro]
 fprintf(stderr, "eb_server_QNG_PQ4000KU v" VERSION ", (C) 2009-2015 by folkert@vanheusden.com\n");
                                            ^
server_smartcard.cpp:1:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
server_smartcard.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
server_smartcard.cpp:3:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
server_smartcard.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
server_smartcard.cpp:5:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
server_smartcard.cpp:6:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
server_smartcard.cpp:7:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
server_smartcard.cpp:8:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
server_smartcard.cpp:9:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
server_smartcard.cpp:10:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
server_smartcard.cpp:11:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
server_smartcard.cpp:12:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
server_smartcard.cpp:13:0: information: Include file: <winscard.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <winscard.h>
^
server_smartcard.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
server_stream.cpp:1:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
server_stream.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
server_stream.cpp:3:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
server_stream.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
server_stream.cpp:5:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
server_stream.cpp:6:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
server_stream.cpp:7:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
server_stream.cpp:8:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
server_stream.cpp:9:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
server_stream.cpp:10:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
server_stream.cpp:11:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
server_stream.cpp:12:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
server_stream.cpp:13:0: information: Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fcntl.h>
^
server_stream.cpp:14:0: information: Include file: <termios.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <termios.h>
^
server_stream.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
server_stream.cpp:44:42: style: Parameter 'pars_in' can be declared as pointer to const [constParameterPointer]
void set_serial_parameters(int fd, char *pars_in)
                                         ^
server_timers.cpp:1:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
server_timers.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
server_timers.cpp:3:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
server_timers.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
server_timers.cpp:5:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
server_timers.cpp:6:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
server_timers.cpp:7:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
server_timers.cpp:8:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
server_timers.cpp:9:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
server_timers.cpp:10:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
server_timers.cpp:11:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
server_timers.cpp:12:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
server_timers.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
server_usb.cpp:1:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
server_usb.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
server_usb.cpp:3:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
server_usb.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
server_usb.cpp:5:0: information: Include file: <time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <time.h>
^
server_usb.cpp:6:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
server_usb.cpp:7:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
server_usb.cpp:8:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
server_usb.cpp:9:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
server_usb.cpp:10:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
server_usb.cpp:11:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
server_usb.cpp:12:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
server_usb.cpp:13:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
server_usb.cpp:16:0: information: Include file: <libusb-1.0/libusb.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <libusb-1.0/libusb.h>
^
server_usb.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
server_usb.cpp:197:10: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 devhs = (libusb_device_handle **)malloc(sizeof(libusb_device_handle *) * n);
         ^
server_utils.cpp:1:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
server_utils.cpp:2:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
server_utils.cpp:3:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
server_utils.cpp:4:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
server_utils.cpp:5:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
server_utils.cpp:6:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
server_utils.cpp:7:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
server_utils.cpp:26:31: warning: Either the condition '!fh' is redundant or there is possible null pointer dereference: fh. [nullPointerRedundantCheck]
 if (fwrite(data, 1, n_bytes, fh) != n_bytes)
                              ^
server_utils.cpp:23:6: note: Assuming that condition '!fh' is not redundant
 if (!fh)
     ^
server_utils.cpp:26:31: note: Null pointer dereference
 if (fwrite(data, 1, n_bytes, fh) != n_bytes)
                              ^
server_utils.cpp:20:53: style: Parameter 'data' can be declared as pointer to const [constParameterPointer]
void emit_buffer_to_file(char *file, unsigned char *data, size_t n_bytes)
                                                    ^
server_v4l.cpp:1:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
server_v4l.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
server_v4l.cpp:3:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
server_v4l.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
server_v4l.cpp:5:0: information: Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <errno.h>
^
server_v4l.cpp:6:0: information: Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fcntl.h>
^
server_v4l.cpp:7:0: information: Include file: <linux/videodev2.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <linux/videodev2.h>
^
server_v4l.cpp:9:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
server_v4l.cpp:10:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
server_v4l.cpp:11:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
server_v4l.cpp:12:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
server_v4l.cpp:13:0: information: Include file: <sys/ioctl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/ioctl.h>
^
server_v4l.cpp:14:0: information: Include file: <syslog.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <syslog.h>
^
server_v4l.cpp:15:0: information: Include file: <sys/mman.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/mman.h>
^
server_v4l.cpp:16:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
server_v4l.cpp:17:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
server_v4l.cpp:18:0: information: Include file: <time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <time.h>
^
server_v4l.cpp:19:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
server_v4l.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
server_v4l.cpp:299:10: warning: Either the condition '!img1' is redundant or there is possible null pointer dereference: img1. [nullPointerRedundantCheck]
  memcpy(img1, io_buffer, io_buffer_len);
         ^
server_v4l.cpp:289:7: note: Assuming that condition '!img1' is not redundant
  if (!img1 || !img2 || !unbiased)
      ^
server_v4l.cpp:299:10: note: Null pointer dereference
  memcpy(img1, io_buffer, io_buffer_len);
         ^
server_v4l.cpp:306:10: warning: Either the condition '!img2' is redundant or there is possible null pointer dereference: img2. [nullPointerRedundantCheck]
  memcpy(img2, io_buffer, io_buffer_len);
         ^
server_v4l.cpp:289:16: note: Assuming that condition '!img2' is not redundant
  if (!img1 || !img2 || !unbiased)
               ^
server_v4l.cpp:306:10: note: Null pointer dereference
  memcpy(img2, io_buffer, io_buffer_len);
         ^
server_v4l.cpp:157:17: style: The scope of the variable 'img1' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced:
void f(int x)
{
    int i = 0;
    if (x) {
        // it's safe to move 'int i = 0;' here
        for (int n = 0; n < 10; ++n) {
            // it is possible but not safe to move 'int i = 0;' here
            do_something(&i);
        }
    }
}
When you see this message it is always safe to reduce the variable scope 1 level. [variableScope]
 unsigned char *img1, *img2, *unbiased;
                ^
server_v4l.cpp:157:24: style: The scope of the variable 'img2' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced:
void f(int x)
{
    int i = 0;
    if (x) {
        // it's safe to move 'int i = 0;' here
        for (int n = 0; n < 10; ++n) {
            // it is possible but not safe to move 'int i = 0;' here
            do_something(&i);
        }
    }
}
When you see this message it is always safe to reduce the variable scope 1 level. [variableScope]
 unsigned char *img1, *img2, *unbiased;
                       ^
server_v4l.cpp:75:7: style: Local variable 'format' shadows outer function [shadowFunction]
 char format[5];
      ^
utils.h:46:13: note: Shadowed declaration
std::string format(const char *fmt, ...);
            ^
server_v4l.cpp:75:7: note: Shadow variable
 char format[5];
      ^
signals.cpp:1:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
signals.cpp:2:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
signals.cpp:3:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
signals.cpp:4:0: information: Include file: <execinfo.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <execinfo.h>
^
statistics.cpp:1:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
statistics.cpp:2:0: information: Include file: <pthread.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <pthread.h>
^
statistics.cpp:3:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
statistics.cpp:5:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
statistics.h:79:7: style: inconclusive: The member function 'statistics::get_sent_avg_sd' can be made a const function. Making this function 'const' should not cause compiler errors. Even though the function can be made const function technically it may not make sense conceptually. Think about your design and the task of the function first - is it a function that must not change object internal state? [functionConst]
 void get_sent_avg_sd(double *avg, double *sd);
      ^
statistics.cpp:240:18: note: Technically the member function 'statistics::get_sent_avg_sd' can be const.
void statistics::get_sent_avg_sd(double *avg, double *sd)
                 ^
statistics.h:79:7: note: Technically the member function 'statistics::get_sent_avg_sd' can be const.
 void get_sent_avg_sd(double *avg, double *sd);
      ^
statistics.h:80:7: style: inconclusive: The member function 'statistics::get_recv_avg_sd' can be made a const function. Making this function 'const' should not cause compiler errors. Even though the function can be made const function technically it may not make sense conceptually. Think about your design and the task of the function first - is it a function that must not change object internal state? [functionConst]
 void get_recv_avg_sd(double *avg, double *sd);
      ^
statistics.cpp:247:18: note: Technically the member function 'statistics::get_recv_avg_sd' can be const.
void statistics::get_recv_avg_sd(double *avg, double *sd)
                 ^
statistics.h:80:7: note: Technically the member function 'statistics::get_recv_avg_sd' can be const.
 void get_recv_avg_sd(double *avg, double *sd);
      ^
statistics.h:81:7: style: inconclusive: The member function 'statistics::get_recv_in_avg_sd' can be made a const function. Making this function 'const' should not cause compiler errors. Even though the function can be made const function technically it may not make sense conceptually. Think about your design and the task of the function first - is it a function that must not change object internal state? [functionConst]
 void get_recv_in_avg_sd(double *avg, double *sd);
      ^
statistics.cpp:254:18: note: Technically the member function 'statistics::get_recv_in_avg_sd' can be const.
void statistics::get_recv_in_avg_sd(double *avg, double *sd)
                 ^
statistics.h:81:7: note: Technically the member function 'statistics::get_recv_in_avg_sd' can be const.
 void get_recv_in_avg_sd(double *avg, double *sd);
      ^
statistics.cpp:119:52: style: inconclusive: Function 'track_recvs' argument 2 names different: declaration 'n_bits_added_in' definition 'n_bits_in'. [funcArgNamesDifferent]
void statistics::track_recvs(int n_bits_added, int n_bits_in)
                                                   ^
statistics.h:61:41: note: Function 'track_recvs' argument 2 names different: declaration 'n_bits_added_in' definition 'n_bits_in'.
 void track_recvs(int n_bits_added, int n_bits_added_in);
                                        ^
statistics.cpp:119:52: note: Function 'track_recvs' argument 2 names different: declaration 'n_bits_added_in' definition 'n_bits_in'.
void statistics::track_recvs(int n_bits_added, int n_bits_in)
                                                   ^
statistics_global.cpp:1:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
statistics_global.cpp:2:0: information: Include file: <pthread.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <pthread.h>
^
statistics_global.cpp:3:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
statistics_global.cpp:5:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
statistics_global.cpp:31:128: style: inconclusive: Function 'put_history_log' argument 5 names different: declaration 'start_ts' definition 'start_ts_in'. [funcArgNamesDifferent]
void statistics_global::put_history_log(hl_type_t hl_in, std::string host_in, std::string type_in, std::string user_in, double start_ts_in, double duration_in, std::string details_in)
                                                                                                                               ^
statistics_global.h:27:104: note: Function 'put_history_log' argument 5 names different: declaration 'start_ts' definition 'start_ts_in'.
 void put_history_log(hl_type_t, std::string host_in, std::string type_in, std::string user_in, double start_ts, double duration_in, std::string details);
                                                                                                       ^
statistics_global.cpp:31:128: note: Function 'put_history_log' argument 5 names different: declaration 'start_ts' definition 'start_ts_in'.
void statistics_global::put_history_log(hl_type_t hl_in, std::string host_in, std::string type_in, std::string user_in, double start_ts_in, double duration_in, std::string details_in)
                                                                                                                               ^
statistics_global.cpp:31:173: style: inconclusive: Function 'put_history_log' argument 7 names different: declaration 'details' definition 'details_in'. [funcArgNamesDifferent]
void statistics_global::put_history_log(hl_type_t hl_in, std::string host_in, std::string type_in, std::string user_in, double start_ts_in, double duration_in, std::string details_in)
                                                                                                                                                                            ^
statistics_global.h:27:146: note: Function 'put_history_log' argument 7 names different: declaration 'details' definition 'details_in'.
 void put_history_log(hl_type_t, std::string host_in, std::string type_in, std::string user_in, double start_ts, double duration_in, std::string details);
                                                                                                                                                 ^
statistics_global.cpp:31:173: note: Function 'put_history_log' argument 7 names different: declaration 'details' definition 'details_in'.
void statistics_global::put_history_log(hl_type_t hl_in, std::string host_in, std::string type_in, std::string user_in, double start_ts_in, double duration_in, std::string details_in)
                                                                                                                                                                            ^
statistics_global.cpp:31:70: performance: Parameter 'host_in' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void statistics_global::put_history_log(hl_type_t hl_in, std::string host_in, std::string type_in, std::string user_in, double start_ts_in, double duration_in, std::string details_in)
                                                                     ^
statistics_global.cpp:31:91: performance: Parameter 'type_in' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void statistics_global::put_history_log(hl_type_t hl_in, std::string host_in, std::string type_in, std::string user_in, double start_ts_in, double duration_in, std::string details_in)
                                                                                          ^
statistics_global.cpp:31:112: performance: Parameter 'user_in' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void statistics_global::put_history_log(hl_type_t hl_in, std::string host_in, std::string type_in, std::string user_in, double start_ts_in, double duration_in, std::string details_in)
                                                                                                               ^
statistics_global.cpp:31:173: performance: Parameter 'details_in' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void statistics_global::put_history_log(hl_type_t hl_in, std::string host_in, std::string type_in, std::string user_in, double start_ts_in, double duration_in, std::string details_in)
                                                                                                                                                                            ^
statistics_log.cpp:1:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
statistics_log.cpp:2:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
statistics_log.cpp:3:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
statistics_log.cpp:4:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
statistics_log.cpp:6:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
statistics_log.cpp:7:0: information: Include file: <sys/resource.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/resource.h>
^
statistics_log.cpp:8:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
statistics_log.cpp:33:39: performance: Parameter 'file' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void emit_statistics_file(std::string file, statistics *s, pools *ppools, scc *pscc, int n_clients)
                                      ^
statistics_user.cpp:1:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
statistics_user.cpp:2:0: information: Include file: <pthread.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <pthread.h>
^
statistics_user.cpp:3:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
statistics_user.cpp:5:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
statistics_user.cpp:18:23: warning: The class 'statistics_user' defines member function with name 'register_msg' also defined in its parent class 'statistics'. [duplInheritedMember]
void statistics_user::register_msg(bool is_put)
                      ^
statistics.h:62:7: note: Parent function 'statistics::register_msg'
 void register_msg(bool is_put);
      ^
statistics_user.cpp:18:23: note: Derived function 'statistics_user::register_msg'
void statistics_user::register_msg(bool is_put)
                      ^
stirrer_3des.cpp:1:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
stirrer_3des.cpp:2:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
stirrer_3des.cpp:3:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
stirrer_3des.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
stirrer_aes.cpp:1:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
stirrer_aes.cpp:2:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
stirrer_aes.cpp:3:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
stirrer_aes.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
stirrer_blowfish.cpp:1:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
stirrer_blowfish.cpp:2:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
stirrer_blowfish.cpp:3:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
stirrer_blowfish.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
stirrer_blowfish.cpp:5:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
stirrer_camellia.cpp:1:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
stirrer_camellia.cpp:2:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
stirrer_camellia.cpp:3:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
stirrer_camellia.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
test_TFO.cpp:1:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
test_TFO.cpp:2:0: information: Include file: <netinet/tcp.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <netinet/tcp.h>
^
test_TFO.cpp:3:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
test_TFO.cpp:4:0: information: Include file: <sys/socket.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/socket.h>
^
test_asound2.cpp:1:0: information: Include file: <alsa/asoundlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <alsa/asoundlib.h>
^
test_asound2.cpp:3:26: style: Parameter 'argv' can be declared as const array [constParameter]
int main(int argc, char *argv[])
                         ^
test_cryptopp.cpp:1:0: information: Include file: <cryptopp/aes.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <cryptopp/aes.h>
^
test_cryptopp.cpp:2:0: information: Include file: <cryptopp/blowfish.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <cryptopp/blowfish.h>
^
test_cryptopp.cpp:3:0: information: Include file: <cryptopp/camellia.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <cryptopp/camellia.h>
^
test_cryptopp.cpp:4:0: information: Include file: <cryptopp/des.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <cryptopp/des.h>
^
test_cryptopp.cpp:5:0: information: Include file: <cryptopp/md5.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <cryptopp/md5.h>
^
test_cryptopp.cpp:6:0: information: Include file: <cryptopp/ripemd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <cryptopp/ripemd.h>
^
test_cryptopp.cpp:7:0: information: Include file: <cryptopp/sha.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <cryptopp/sha.h>
^
test_cryptopp.cpp:8:0: information: Include file: <cryptopp/whrlpool.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <cryptopp/whrlpool.h>
^
test_cryptopp.cpp:10:26: style: Parameter 'argv' can be declared as const array [constParameter]
int main(int argc, char *argv[])
                         ^
test_gcc.cpp:1:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
test_gcc.cpp:3:26: style: Parameter 'argv' can be declared as const array [constParameter]
int main(int argc, char *argv[])
                         ^
test_libftdi.cpp:1:0: information: Include file: <ftdi.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <ftdi.h>
^
test_libftdi.cpp:3:26: style: Parameter 'argv' can be declared as const array [constParameter]
int main(int argc, char *argv[])
                         ^
test_libgd2.cpp:1:0: information: Include file: <gd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <gd.h>
^
test_libgd2.cpp:3:26: style: Parameter 'argv' can be declared as const array [constParameter]
int main(int argc, char *argv[])
                         ^
test_libpng.cpp:1:0: information: Include file: <png.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <png.h>
^
test_libpng.cpp:3:26: style: Parameter 'argv' can be declared as const array [constParameter]
int main(int argc, char *argv[])
                         ^
test_libqwqng.cpp:1:0: information: Include file: <qwqng.hpp> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <qwqng.hpp>
^
test_libqwqng.cpp:3:26: style: Parameter 'argv' can be declared as const array [constParameter]
int main(int argc, char *argv[])
                         ^
test_libusb.cpp:1:0: information: Include file: <libusb-1.0/libusb.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <libusb-1.0/libusb.h>
^
test_libusb.cpp:3:26: style: Parameter 'argv' can be declared as const array [constParameter]
int main(int argc, char *argv[])
                         ^
test_pcsclite.cpp:1:0: information: Include file: <winscard.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <winscard.h>
^
test_pcsclite.cpp:3:26: style: Parameter 'argv' can be declared as const array [constParameter]
int main(int argc, char *argv[])
                         ^
test_zlib.cpp:1:0: information: Include file: <zlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <zlib.h>
^
test_zlib.cpp:3:26: style: Parameter 'argv' can be declared as const array [constParameter]
int main(int argc, char *argv[])
                         ^
users.cpp:1:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
users.cpp:2:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
users.cpp:3:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
users.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
users.cpp:5:0: information: Include file: <fstream> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fstream>
^
users.cpp:6:0: information: Include file: <pthread.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <pthread.h>
^
users.cpp:15:8: warning: Member variable 'users::dummy_user' is not initialized in the constructor. Member variables of native types, pointers, or references are left uninitialized when the class is instantiated. That may cause bugs or undefined behavior. [uninitMemberVar]
users::users(std::string filename_in, int default_max_get_bps_in) : filename(filename_in), default_max_get_bps(default_max_get_bps_in)
       ^
users.cpp:15:26: style: inconclusive: Function 'users' argument 1 names different: declaration 'filename' definition 'filename_in'. [funcArgNamesDifferent]
users::users(std::string filename_in, int default_max_get_bps_in) : filename(filename_in), default_max_get_bps(default_max_get_bps_in)
                         ^
users.h:38:20: note: Function 'users' argument 1 names different: declaration 'filename' definition 'filename_in'.
 users(std::string filename, int default_max_get_bps);
                   ^
users.cpp:15:26: note: Function 'users' argument 1 names different: declaration 'filename' definition 'filename_in'.
users::users(std::string filename_in, int default_max_get_bps_in) : filename(filename_in), default_max_get_bps(default_max_get_bps_in)
                         ^
users.cpp:15:43: style: inconclusive: Function 'users' argument 2 names different: declaration 'default_max_get_bps' definition 'default_max_get_bps_in'. [funcArgNamesDifferent]
users::users(std::string filename_in, int default_max_get_bps_in) : filename(filename_in), default_max_get_bps(default_max_get_bps_in)
                                          ^
users.h:38:34: note: Function 'users' argument 2 names different: declaration 'default_max_get_bps' definition 'default_max_get_bps_in'.
 users(std::string filename, int default_max_get_bps);
                                 ^
users.cpp:15:43: note: Function 'users' argument 2 names different: declaration 'default_max_get_bps' definition 'default_max_get_bps_in'.
users::users(std::string filename_in, int default_max_get_bps_in) : filename(filename_in), default_max_get_bps(default_max_get_bps_in)
                                          ^
users.cpp:128:38: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
bool users::get_password(std::string username, std::string & password)
                                     ^
users.cpp:144:43: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
int users::calc_max_allowance(std::string username, double now, int n_requested)
                                          ^
users.cpp:179:39: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
bool users::use_allowance(std::string username, int n)
                                      ^
users.cpp:197:42: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
bool users::cancel_allowance(std::string username)
                                         ^
users.cpp:223:42: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
double users::get_last_login(std::string username)
                                         ^
users.cpp:238:40: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void users::set_last_login(std::string username, double when_ts)
                                       ^
users.cpp:249:47: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
user_t *users::find_and_lock_user(std::string username)
                                              ^
users.cpp:270:41: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void users::inc_disconnects(std::string username)
                                        ^
users.cpp:282:38: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void users::inc_timeouts(std::string username)
                                     ^
users.cpp:294:43: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void users::inc_n_times_empty(std::string username)
                                          ^
users.cpp:306:43: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void users::inc_n_times_quota(std::string username)
                                          ^
users.cpp:318:42: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void users::inc_n_times_full(std::string username)
                                         ^
users.cpp:330:37: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void users::inc_msg_cnt(std::string username)
                                    ^
users.cpp:342:47: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void users::inc_submit_while_full(std::string username)
                                              ^
users.cpp:354:43: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void users::inc_network_error(std::string username)
                                          ^
users.cpp:366:44: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void users::inc_protocol_error(std::string username)
                                           ^
users.cpp:378:41: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void users::inc_misc_errors(std::string username)
                                        ^
users.cpp:390:37: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void users::track_sents(std::string username, int cur_n_bits)
                                    ^
users.cpp:402:37: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void users::track_recvs(std::string username, int n_bits_added, int n_bits_added_in)
                                    ^
users.cpp:414:38: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void users::register_msg(std::string username, bool is_put)
                                     ^
users.cpp:426:42: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
int users::get_reset_bps_cur(std::string username)
                                         ^
users.cpp:441:36: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
int users::get_msg_cnt(std::string username)
                                   ^
users.cpp:456:40: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
int users::get_disconnects(std::string username)
                                       ^
users.cpp:471:40: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
int users::get_times_empty(std::string username)
                                       ^
users.cpp:486:39: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
int users::get_times_full(std::string username)
                                      ^
users.cpp:501:40: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
int users::get_times_quota(std::string username)
                                       ^
users.cpp:516:46: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
int users::get_submit_while_full(std::string username)
                                             ^
users.cpp:531:42: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
int users::get_network_error(std::string username)
                                         ^
users.cpp:546:43: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
int users::get_protocol_error(std::string username)
                                          ^
users.cpp:561:40: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
int users::get_misc_errors(std::string username)
                                       ^
users.cpp:576:35: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void users::get_recvs(std::string username, long long int *total_bits, int *n_reqs, long long int *total_bits_in)
                                  ^
users.cpp:588:35: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void users::get_sents(std::string username, long long int *total_bits, int *n_sents)
                                  ^
users.cpp:600:43: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
double users::get_last_msg_ts(std::string username)
                                          ^
users.cpp:615:47: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
double users::get_last_put_msg_ts(std::string username)
                                              ^
users.cpp:630:47: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
double users::get_last_get_msg_ts(std::string username)
                                              ^
users.cpp:645:41: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void users::get_sent_avg_sd(std::string username, double *avg, double *sd)
                                        ^
users.cpp:657:41: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void users::get_recv_avg_sd(std::string username, double *avg, double *sd)
                                        ^
users.cpp:669:44: performance: Parameter 'username' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void users::get_recv_in_avg_sd(std::string username, double *avg, double *sd)
                                           ^
users.cpp:229:10: style: Variable 'u' can be declared as pointer to const [constVariablePointer]
 user_t *u = find_user(username);
         ^
users.cpp:90:20: warning: Either the condition 'pars.size()==1' is redundant or size of 'pars' can be 1. Expression 'pars[1]' causes access out of bounds. [containerOutOfBounds]
  u.password = pars[1];
                   ^
users.cpp:86:19: note: Assuming that condition 'pars.size()==1' is not redundant
  if (pars.size() == 1)
                  ^
users.cpp:90:20: note: Access out of bounds
  u.password = pars[1];
                   ^
users.cpp:110:27: error: Uninitialized variable: u.last_logon [uninitvar]
  (*user_map)[username] = u;
                          ^
users.cpp:57:57: performance: Prefix ++/-- operators should be preferred for non-primitive types. Pre-increment/decrement can be more efficient than post-increment/decrement. Post-increment/decrement usually involves keeping a copy of the previous value around and adds a little extra code. [postfixOperator]
 for(it = user_map -> begin(); it != user_map -> end(); it++)
                                                        ^
users.cpp:216:32: performance: Prefix ++/-- operators should be preferred for non-primitive types. Pre-increment/decrement can be more efficient than post-increment/decrement. Post-increment/decrement usually involves keeping a copy of the previous value around and adds a little extra code. [postfixOperator]
 for(;it != user_map -> end(); it++)
                               ^
utils.cpp:1:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
utils.cpp:2:0: information: Include file: <pthread.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <pthread.h>
^
utils.cpp:3:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
utils.cpp:4:0: information: Include file: <stdarg.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdarg.h>
^
utils.cpp:5:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
utils.cpp:6:0: information: Include file: <signal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <signal.h>
^
utils.cpp:7:0: information: Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <errno.h>
^
utils.cpp:8:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
utils.cpp:9:0: information: Include file: <sys/socket.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/socket.h>
^
utils.cpp:10:0: information: Include file: <netinet/in.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <netinet/in.h>
^
utils.cpp:11:0: information: Include file: <arpa/inet.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <arpa/inet.h>
^
utils.cpp:12:0: information: Include file: <netdb.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <netdb.h>
^
utils.cpp:13:0: information: Include file: <poll.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <poll.h>
^
utils.cpp:14:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
utils.cpp:15:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
utils.cpp:16:0: information: Include file: <sys/time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/time.h>
^
utils.cpp:17:0: information: Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdio.h>
^
utils.cpp:18:0: information: Include file: <time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <time.h>
^
utils.cpp:19:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
utils.cpp:20:0: information: Include file: <sys/select.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/select.h>
^
utils.cpp:21:0: information: Include file: <netinet/tcp.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <netinet/tcp.h>
^
utils.cpp:22:0: information: Include file: <sys/mman.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/mman.h>
^
utils.cpp:23:0: information: Include file: <sys/resource.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/resource.h>
^
utils.cpp:24:0: information: Include file: <fcntl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <fcntl.h>
^
utils.cpp:25:0: information: Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/stat.h>
^
utils.cpp:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches]

^
utils.cpp:377:10: warning: Either the condition '!fh' is redundant or there is possible null pointer dereference: fh. [nullPointerRedundantCheck]
 fprintf(fh, "%d\n", getpid());
         ^
utils.cpp:374:6: note: Assuming that condition '!fh' is not redundant
 if (!fh)
     ^
utils.cpp:377:10: note: Null pointer dereference
 fprintf(fh, "%d\n", getpid());
         ^
utils.cpp:379:9: warning: Either the condition '!fh' is redundant or there is possible null pointer dereference: fh. [nullPointerRedundantCheck]
 fclose(fh);
        ^
utils.cpp:374:6: note: Assuming that condition '!fh' is not redundant
 if (!fh)
     ^
utils.cpp:379:9: note: Null pointer dereference
 fclose(fh);
        ^
utils.cpp:483:4: warning: Either the condition '!end' is redundant or there is possible null pointer dereference: end. [nullPointerRedundantCheck]
  *end = 0x00;
   ^
utils.cpp:480:7: note: Assuming that condition '!end' is not redundant
  if (!end)
      ^
utils.cpp:483:4: note: Null pointer dereference
  *end = 0x00;
   ^
utils.cpp:487:7: warning: Either the condition '!end' is redundant or there is possible null pointer dereference: end. [nullPointerRedundantCheck]
  if (end[1] == ':') // port number following
      ^
utils.cpp:480:7: note: Assuming that condition '!end' is not redundant
  if (!end)
      ^
utils.cpp:487:7: note: Null pointer dereference
  if (end[1] == ':') // port number following
      ^
utils.cpp:516:23: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 if (getsockname(fd, (struct sockaddr *)&addr, &addr_len) == -1)
                      ^
utils.cpp:528:23: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 if (getpeername(fd, (struct sockaddr *)&addr, &addr_len) == -1)
                      ^
utils.cpp:828:12: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 if (fread((char *)buffer, 4, 1, fh) != 1)
           ^
utils.cpp:841:19: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 if (!get_int(fh, (int *)&i1))
                  ^
utils.cpp:843:19: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 if (!get_int(fh, (int *)&i2))
                  ^
utils.cpp:865:13: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 if (fwrite((char *)buffer, 4, 1, fh) != 1)
            ^
utils.cpp:911:16: style: C-style pointer casting detected. C++ offers four different kinds of casts as replacements: static_cast, const_cast, dynamic_cast and reinterpret_cast. A C-style cast could evaluate to any of those automatically, thus it is considered safer if the programmer explicitly states which kind of cast is expected. [cstyleCast]
 if (bind(fd, (struct sockaddr *)&server_addr, server_addr_len) == -1)
               ^
utils.cpp:435:14: style: The scope of the variable 'notified_err' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced:
void f(int x)
{
    int i = 0;
    if (x) {
        // it's safe to move 'int i = 0;' here
        for (int n = 0; n < 10; ++n) {
            // it is possible but not safe to move 'int i = 0;' here
            do_something(&i);
        }
    }
}
When you see this message it is always safe to reduce the variable scope 1 level. [variableScope]
 static bool notified_err = false;
             ^
utils.cpp:450:14: style: The scope of the variable 'notified_err' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced:
void f(int x)
{
    int i = 0;
    if (x) {
        // it's safe to move 'int i = 0;' here
        for (int n = 0; n < 10; ++n) {
            // it is possible but not safe to move 'int i = 0;' here
            do_something(&i);
        }
    }
}
When you see this message it is always safe to reduce the variable scope 1 level. [variableScope]
 static bool notified_err = false;
             ^
utils.cpp:471:42: performance: Parameter 'in' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void split_resource_location(std::string in, std::string & host, int & port)
                                         ^
utils.cpp:596:34: performance: Parameter 'name' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
void set_thread_name(std::string name)
                                 ^
utils.cpp:691:51: performance: Parameter 'in' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
std::vector<std::string> split_string(std::string in, std::string split)
                                                  ^
utils.cpp:691:67: performance: Parameter 'split' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++. [passedByValue]
std::vector<std::string> split_string(std::string in, std::string split)
                                                                  ^
utils.cpp:65:51: style: Parameter 'do_exit' can be declared as pointer to const [constParameterPointer]
int READ(int fd, char *whereto, size_t len, bool *do_exit)
                                                  ^
utils.cpp:103:65: style: Parameter 'do_exit' can be declared as pointer to const [constParameterPointer]
int READ_TO(int fd, char *whereto, size_t len, double to, bool *do_exit)
                                                                ^
utils.cpp:173:58: style: Parameter 'do_exit' can be declared as pointer to const [constParameterPointer]
int WRITE(int fd, const char *whereto, size_t len, bool *do_exit)
                                                         ^
utils.cpp:211:72: style: Parameter 'do_exit' can be declared as pointer to const [constParameterPointer]
int WRITE_TO(int fd, const char *whereto, size_t len, double to, bool *do_exit)
                                                                       ^
utils.cpp:463:29: style: Parameter 'in' can be declared as pointer to const [constParameterPointer]
void hexdump(unsigned char *in, int n)
                            ^
utils.cpp:543:50: style: Parameter 'ok' can be declared as const array [constParameter]
void pthread_check(int rc, const char *name, int ok[])
                                                 ^
utils.cpp:620:40: style: Parameter 'thread' can be declared as pointer to const [constParameterPointer]
std::string get_thread_name(pthread_t *thread)
                                       ^
utils.cpp:711:43: style: Parameter 'in' can be declared as pointer to const [constParameterPointer]
unsigned int uchar_to_uint(unsigned char *in)
                                          ^
utils.cpp:801:13: style: Variable 'tm' can be declared as pointer to const [constVariablePointer]
 struct tm *tm = localtime(&t);
            ^
utils.cpp:27:0: information: Include file: <sys/syscall.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/syscall.h>
^
web_server.cpp:1:0: information: Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <errno.h>
^
web_server.cpp:2:0: information: Include file: <gd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <gd.h>
^
web_server.cpp:3:0: information: Include file: <map> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <map>
^
web_server.cpp:4:0: information: Include file: <pthread.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <pthread.h>
^
web_server.cpp:5:0: information: Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <stdlib.h>
^
web_server.cpp:6:0: information: Include file: <string> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string>
^
web_server.cpp:7:0: information: Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <string.h>
^
web_server.cpp:8:0: information: Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <unistd.h>
^
web_server.cpp:9:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <vector>
^
web_server.cpp:10:0: information: Include file: <sys/socket.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/socket.h>
^
web_server.cpp:11:0: information: Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
#include <sys/types.h>
^
http_file_version.h:5:3: style: The destructor '~http_file_version' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride]
 ~http_file_version();
  ^
http_file.h:5:11: note: Virtual destructor in base class
 virtual ~http_file();
          ^
http_file_version.h:5:3: note: Destructor in derived class
 ~http_file_version();
  ^
http_file_version.h:7:14: style: The function 'get_url' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 std::string get_url();
             ^
http_file.h:7:22: note: Virtual function in base class
 virtual std::string get_url() = 0;
                     ^
http_file_version.h:7:14: note: Function in derived class
 std::string get_url();
             ^
http_file_version.h:9:14: style: The function 'get_meta_type' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 std::string get_meta_type();
             ^
http_file.h:9:22: note: Virtual function in base class
 virtual std::string get_meta_type() = 0;
                     ^
http_file_version.h:9:14: note: Function in derived class
 std::string get_meta_type();
             ^
http_file_version.h:11:16: style: The function 'do_request' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride]
 http_bundle * do_request(http_request_t request_type, std::string request_url, http_bundle *request_details);
               ^
http_file.h:16:24: note: Virtual function in base class
 virtual http_bundle * do_request(http_request_t request_type, std::string request_url, http_bundle *request_details) = 0;
                       ^
http_file_version.h:11:16: note: Function in derived class
 http_bundle * do_request(http_request_t request_type, std::string request_url, http_bundle *request_details);
               ^
web_server.cpp:201:9: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use resize() or pop_back() instead. [uselessCallsSubstr]
  url = url.substr(0, parameters_pos);
        ^
web_server.cpp:107:3: performance: Prefix ++/-- operators should be preferred for non-primitive types. Pre-increment/decrement can be more efficient than post-increment/decrement. Post-increment/decrement usually involves keeping a copy of the previous value around and adds a little extra code. [postfixOperator]
  it++;
  ^
proxy_knuth_b.cpp:61:9: error: The one definition rule is violated, different classes/structs have the same name 'lookup_t' [ctuOneDefinitionRuleViolation]
typedef struct
        ^
proxy_knuth_m.cpp:62:9: note: The one definition rule is violated, different classes/structs have the same name 'lookup_t'
typedef struct
        ^
proxy_knuth_b.cpp:61:9: note: The one definition rule is violated, different classes/structs have the same name 'lookup_t'
typedef struct
        ^
proxy_knuth_b.cpp:91:27: warning: Null pointer dereference: fh [ctunullpointer]
 if (fwrite(buffer, 1, 4, fh) != 4)
                          ^
proxy_knuth_b.cpp:139:6: note: Assuming that condition '!fh' is not redundant
 if (!fh)
     ^
proxy_knuth_b.cpp:142:13: note: Calling function write_value, 1st argument is null
 write_value(fh, lt -> t_size);
            ^
proxy_knuth_b.cpp:91:27: note: Dereferencing argument fh that is null
 if (fwrite(buffer, 1, 4, fh) != 4)
                          ^
proxy_knuth_m.cpp:94:27: warning: Null pointer dereference: fh [ctunullpointer]
 if (fwrite(buffer, 1, 4, fh) != 4)
                          ^
proxy_knuth_m.cpp:148:6: note: Assuming that condition '!fh' is not redundant
 if (!fh)
     ^
proxy_knuth_m.cpp:151:13: note: Calling function write_value, 1st argument is null
 write_value(fh, lt -> t_size);
            ^
proxy_knuth_m.cpp:94:27: note: Dereferencing argument fh that is null
 if (fwrite(buffer, 1, 4, fh) != 4)
                          ^
utils.cpp:828:34: warning: Null pointer dereference: fh [ctunullpointer]
 if (fread((char *)buffer, 4, 1, fh) != 1)
                                 ^
data_store_int.cpp:23:6: note: Assuming that condition '!fh' is not redundant
 if (!fh)
     ^
data_store_int.cpp:26:14: note: Calling function get_int, 1st argument is null
 if (!get_int(fh, &n_samples))
             ^
utils.cpp:828:34: note: Dereferencing argument fh that is null
 if (fread((char *)buffer, 4, 1, fh) != 1)
                                 ^
utils.cpp:865:35: warning: Null pointer dereference: fh [ctunullpointer]
 if (fwrite((char *)buffer, 4, 1, fh) != 1)
                                  ^
data_store_int.cpp:60:6: note: Assuming that condition '!fh' is not redundant
 if (!fh)
     ^
data_store_int.cpp:63:9: note: Calling function put_int, 1st argument is null
 put_int(fh, n_samples);
        ^
utils.cpp:865:35: note: Dereferencing argument fh that is null
 if (fwrite((char *)buffer, 4, 1, fh) != 1)
                                  ^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:68:0: style: The function 'StatusString' is never used. [unusedFunction]
char* QWQNG::StatusString() {
^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:81:0: style: The function 'DeviceID' is never used. [unusedFunction]
char* QWQNG::DeviceID() {
^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:94:0: style: The function 'RandInt32' is never used. [unusedFunction]
int QWQNG::RandInt32(long* pVal) {
^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:108:0: style: The function 'RandUniform' is never used. [unusedFunction]
int QWQNG::RandUniform(double* pVal) {
^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:122:0: style: The function 'RandNormal' is never used. [unusedFunction]
int QWQNG::RandNormal(double *pVal) {
^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:136:0: style: The function 'RandBytes' is never used. [unusedFunction]
int QWQNG::RandBytes(char* pval, long length) {
^
.pc/ftbfs-32bit.patch/ComScire_R2000KU/qwqng.cpp:186:0: style: The function 'RuntimeInfo' is never used. [unusedFunction]
int QWQNG::RuntimeInfo(float* pVal) {
^
config.cpp:41:0: style: The function 'load_config' is never used. [unusedFunction]
void load_config(const char *config, config_t *pconfig)
^
data_store_int.cpp:128:0: style: The function 'add_sum' is never used. [unusedFunction]
void data_store_int::add_sum(int t, int value)
^
data_store_int.h:25:0: style: The function 'get_cur_t' is never used. [unusedFunction]
 int get_cur_t() { return cur_t; }
^
data_store_int.h:26:0: style: The function 'get_n_samples' is never used. [unusedFunction]
 int get_n_samples() { return n_samples; }
^
data_store_int.h:27:0: style: The function 'get_interval' is never used. [unusedFunction]
 int get_interval() { return interval; }
^
fips140.cpp:86:0: style: The function 'set_fips_version' is never used. [unusedFunction]
void fips140::set_fips_version(int version)
^
handle_client.cpp:542:0: style: The function 'main_loop' is never used. [unusedFunction]
void main_loop(std::vector<client_t *> *clients, pthread_mutex_t *clients_mutex, pools *ppools, config_t *config, fips140 *eb_output_fips140, scc *eb_output_scc, pool_crypto *pc, statistics_global *gs, users *user_map)
^
hc_protocol.cpp:71:0: style: The function 'send_accepted_while_full' is never used. [unusedFunction]
int send_accepted_while_full(int fd, statistics *stats, config_t *config)
^
http_bundle.cpp:45:0: style: The function 'get_headers' is never used. [unusedFunction]
std::vector<std::string> http_bundle::get_headers()
^
kernel_prng_io.cpp:35:0: style: The function 'kernel_rng_add_entropy' is never used. [unusedFunction]
int kernel_rng_add_entropy(unsigned char *data, int n, int n_bits)
^
kernel_prng_io.cpp:62:0: style: The function 'kernel_rng_get_max_entropy_count' is never used. [unusedFunction]
int kernel_rng_get_max_entropy_count(void)
^
kernel_prng_rw.cpp:62:0: style: The function 'kernel_rng_write_non_blocking' is never used. [unusedFunction]
int kernel_rng_write_non_blocking(unsigned char *buffer, int n)
^
pool.cpp:307:0: style: The function 'is_full' is never used. [unusedFunction]
bool pool::is_full() const
^
protocol.h:39:0: style: The function 'get_max_get_put_size' is never used. [unusedFunction]
 unsigned int get_max_get_put_size() { return max_get_put_size; }
^
random_source.cpp:81:0: style: The function 'check_empty' is never used. [unusedFunction]
bool random_source::check_empty() const
^
random_source.cpp:88:0: style: The function 'seed' is never used. [unusedFunction]
void random_source::seed(const unsigned char *const in, const size_t n, const double byte_count)
^
signals.cpp:56:0: style: The function 'set_signal_handlers' is never used. [unusedFunction]
void set_signal_handlers(void)
^
utils.cpp:350:0: style: The function 'mydrand' is never used. [unusedFunction]
double mydrand()
^
utils.cpp:511:0: style: The function 'get_local_port' is never used. [unusedFunction]
int get_local_port(int fd)
^
utils.cpp:589:0: style: The function 'my_Assert2' is never used. [unusedFunction]
void my_Assert2(bool flag, int line, const char *file, int debug_value)
^
web_server.cpp:66:0: style: The function 'start_web_server' is never used. [unusedFunction]
void start_web_server(config_t *config, std::vector<client_t *> *clients, pthread_mutex_t *clients_mutex, pools *ppools, statistics_global *ps, fips140 *pfips140, scc *pscc, data_logger *dl, users *pusers)
^
nofile:0:0: information: Active checkers: There was critical errors (use --checkers-report=<filename> to see details) [checkersReport]

