2025-06-28 16:23 ftp://ftp.de.debian.org/debian/pool/main/libr/libretro-beetle-psx/libretro-beetle-psx_0.9.38.6+git20151019.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: b6dd286 (2025-06-27 13:53:34 +0200) count: 1057 958 elapsed-time: 18.3 18.1 head-timing-info: old-timing-info: head results: libretro-common/file/retro_stat.c:207:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libretro-common/file/retro_file.c:312:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RFILE_MODE_READ [valueFlowBailoutIncompleteVar] libretro-common/file/retro_file.c:380:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RFILE_MODE_WRITE [valueFlowBailoutIncompleteVar] libretro-common/rthreads/rthreads.c:415:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] libretro-common/file/retro_file.c:347:43: style: Variable '((char*)content_buf)[content_buf_size]' is assigned a value that is never used. [unreadVariable] libretro-common/rthreads/rthreads.c:148:31: style: Parameter 'thread' can be declared as pointer to const [constParameterPointer] mednafen/Stream.h:84:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] mednafen/Stream.h:98:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] mednafen/FileStream.cpp:30:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RFILE_MODE_READ [valueFlowBailoutIncompleteVar] mednafen/FileStream.cpp:51:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ATTRIBUTE_SEEKABLE [valueFlowBailoutIncompleteVar] mednafen/FileStream.cpp:36:23: error:inconclusive: Returning object that points to local variable 'ene' that will be invalid when returning. [returnDanglingLifetime] mednafen/error.h:56:10: note: Return pointer. mednafen/error.h:56:10: note: Array decayed to pointer here. mednafen/FileStream.cpp:36:62: note: Passed to member function 'StrError'. mednafen/FileStream.cpp:36:74: note: Passed to constructor of 'MDFN_Error'. mednafen/FileStream.cpp:34:19: note: Variable created here. mednafen/FileStream.cpp:36:23: note: Returning object that points to local variable 'ene' that will be invalid when returning. mednafen/video/surface.h:60:14: performance:inconclusive: Technically the member function 'MDFN_PixelFormat::DecodeColor' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/video/surface.h:100:14: performance:inconclusive: Technically the member function 'MDFN_Surface::DecodeColor' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/video/surface.h:108:14: performance:inconclusive: Technically the member function 'MDFN_Surface::DecodeColor' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/FileStream.cpp:39:4: warning: Class 'FileStream' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] mednafen/FileStream.cpp:39:4: warning: Class 'FileStream' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] mednafen/error.h:18:2: style: Class 'MDFN_Error' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] mednafen/error.h:44:2: style: Class 'ErrnoHolder' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] mednafen/FileStream.h:32:16: style: The destructor '~FileStream' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:22:16: note: Virtual destructor in base class mednafen/FileStream.h:32:16: note: Destructor in derived class mednafen/FileStream.h:34:24: style: The function 'attributes' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:30:24: note: Virtual function in base class mednafen/FileStream.h:34:24: note: Function in derived class mednafen/FileStream.h:36:24: style: The function 'read' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:32:24: note: Virtual function in base class mednafen/FileStream.h:36:24: note: Function in derived class mednafen/FileStream.h:37:20: style: The function 'write' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:33:20: note: Virtual function in base class mednafen/FileStream.h:37:20: note: Function in derived class mednafen/FileStream.h:38:20: style: The function 'seek' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:35:20: note: Virtual function in base class mednafen/FileStream.h:38:20: note: Function in derived class mednafen/FileStream.h:39:23: style: The function 'tell' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:36:23: note: Virtual function in base class mednafen/FileStream.h:39:23: note: Function in derived class mednafen/FileStream.h:40:23: style: The function 'size' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:37:23: note: Virtual function in base class mednafen/FileStream.h:40:23: note: Function in derived class mednafen/FileStream.h:41:20: style: The function 'close' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:38:20: note: Virtual function in base class mednafen/FileStream.h:41:20: note: Function in derived class mednafen/Stream.h:101:26: style: C-style pointer casting [cstyleCast] mednafen/Stream.h:103:19: warning: Uninitialized variable: tmp [uninitvar] mednafen/Stream.h:100:35: note: Assuming condition is false mednafen/Stream.h:103:19: note: Uninitialized variable: tmp mednafen/MemoryStream.cpp:20:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mednafen/MemoryStream.cpp:26:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] mednafen/MemoryStream.cpp:40:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mednafen/MemoryStream.cpp:53:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mednafen/MemoryStream.cpp:71:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ATTRIBUTE_READABLE [valueFlowBailoutIncompleteVar] mednafen/MemoryStream.cpp:97:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] mednafen/MemoryStream.cpp:142:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFBIG [valueFlowBailoutIncompleteVar] mednafen/MemoryStream.cpp:170:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] mednafen/MemoryStream.h:30:2: style: Class 'MemoryStream' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] mednafen/MemoryStream.h:31:2: style: Class 'MemoryStream' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] mednafen/MemoryStream.h:35:2: style: Class 'MemoryStream' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] mednafen/MemoryStream.h:38:11: style: The destructor '~MemoryStream' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:22:16: note: Virtual destructor in base class mednafen/MemoryStream.h:38:11: note: Destructor in derived class mednafen/MemoryStream.h:40:17: style: The function 'attributes' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:30:24: note: Virtual function in base class mednafen/MemoryStream.h:40:17: note: Function in derived class mednafen/MemoryStream.h:45:17: style: The function 'read' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:32:24: note: Virtual function in base class mednafen/MemoryStream.h:45:17: note: Function in derived class mednafen/MemoryStream.h:46:15: style: The function 'write' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:33:20: note: Virtual function in base class mednafen/MemoryStream.h:46:15: note: Function in derived class mednafen/MemoryStream.h:47:15: style: The function 'seek' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:35:20: note: Virtual function in base class mednafen/MemoryStream.h:47:15: note: Function in derived class mednafen/MemoryStream.h:48:16: style: The function 'tell' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:36:23: note: Virtual function in base class mednafen/MemoryStream.h:48:16: note: Function in derived class mednafen/MemoryStream.h:49:16: style: The function 'size' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:37:23: note: Virtual function in base class mednafen/MemoryStream.h:49:16: note: Function in derived class mednafen/MemoryStream.h:50:15: style: The function 'close' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:38:20: note: Virtual function in base class mednafen/MemoryStream.h:50:15: note: Function in derived class mednafen/MemoryStream.h:52:14: style: The function 'get_line' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:152:19: note: Virtual function in base class mednafen/MemoryStream.h:52:14: note: Function in derived class mednafen/MemoryStream.cpp:19:7: error: Common realloc mistake: 'data_buffer' nulled but not freed upon failure [memleakOnRealloc] mednafen/MemoryStream.cpp:28:7: error: Common realloc mistake: 'data_buffer' nulled but not freed upon failure [memleakOnRealloc] mednafen/MemoryStream.cpp:39:9: error: Common realloc mistake: 'data_buffer' nulled but not freed upon failure [memleakOnRealloc] mednafen/MemoryStream.cpp:19:21: style: C-style pointer casting [cstyleCast] mednafen/MemoryStream.cpp:28:21: style: C-style pointer casting [cstyleCast] mednafen/MemoryStream.cpp:39:23: style: C-style pointer casting [cstyleCast] mednafen/MemoryStream.cpp:52:21: style: C-style pointer casting [cstyleCast] mednafen/MemoryStream.cpp:104:27: style: C-style pointer casting [cstyleCast] mednafen/cdrom/CDAccess_Image.h:40:16: style: The destructor '~CDAccess_Image' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/cdrom/CDAccess.h:15:11: note: Virtual destructor in base class mednafen/cdrom/CDAccess_Image.h:40:16: note: Destructor in derived class mednafen/cdrom/CDAccess_Image.h:42:20: style: The function 'Read_Raw_Sector' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/cdrom/CDAccess.h:17:15: note: Virtual function in base class mednafen/cdrom/CDAccess_Image.h:42:20: note: Function in derived class mednafen/cdrom/CDAccess_Image.h:44:20: style: The function 'Read_TOC' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/cdrom/CDAccess.h:19:15: note: Virtual function in base class mednafen/cdrom/CDAccess_Image.h:44:20: note: Function in derived class mednafen/cdrom/CDAccess_Image.h:46:20: style: The function 'Eject' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/cdrom/CDAccess.h:21:15: note: Virtual function in base class mednafen/cdrom/CDAccess_Image.h:46:20: note: Function in derived class mednafen/cdrom/CDAccess_CCD.h:32:11: style: The destructor '~CDAccess_CCD' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/cdrom/CDAccess.h:15:11: note: Virtual destructor in base class mednafen/cdrom/CDAccess_CCD.h:32:11: note: Destructor in derived class mednafen/cdrom/CDAccess_CCD.h:34:15: style: The function 'Read_Raw_Sector' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/cdrom/CDAccess.h:17:15: note: Virtual function in base class mednafen/cdrom/CDAccess_CCD.h:34:15: note: Function in derived class mednafen/cdrom/CDAccess_CCD.h:36:15: style: The function 'Read_TOC' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/cdrom/CDAccess.h:19:15: note: Virtual function in base class mednafen/cdrom/CDAccess_CCD.h:36:15: note: Function in derived class mednafen/cdrom/CDAccess_CCD.h:38:15: style: The function 'Eject' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/cdrom/CDAccess.h:21:15: note: Virtual function in base class mednafen/cdrom/CDAccess_CCD.h:38:15: note: Function in derived class mednafen/cdrom/CDUtility.h:79:50: style: Parameter 'toc' can be declared as pointer to const [constParameterPointer] mednafen/cdrom/CDAccess_CCD.cpp:158:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] mednafen/cdrom/CDAccess_CCD.cpp:57:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable is_signed [valueFlowBailoutIncompleteVar] mednafen/cdrom/CDUtility.c:152:41: style:inconclusive: Function 'subq_check_checksum' argument 1 names different: declaration 'subq_buf' definition 'SubQBuf'. [funcArgNamesDifferent] mednafen/cdrom/CDUtility.h:204:41: note: Function 'subq_check_checksum' argument 1 names different: declaration 'subq_buf' definition 'SubQBuf'. mednafen/cdrom/CDUtility.c:152:41: note: Function 'subq_check_checksum' argument 1 names different: declaration 'subq_buf' definition 'SubQBuf'. mednafen/cdrom/CDUtility.c:169:38: style:inconclusive: Function 'subq_generate_checksum' argument 1 names different: declaration 'subq_buf' definition 'buf'. [funcArgNamesDifferent] mednafen/cdrom/CDUtility.h:208:38: note: Function 'subq_generate_checksum' argument 1 names different: declaration 'subq_buf' definition 'buf'. mednafen/cdrom/CDUtility.c:169:38: note: Function 'subq_generate_checksum' argument 1 names different: declaration 'subq_buf' definition 'buf'. mednafen/cdrom/CDUtility.c:182:39: style:inconclusive: Function 'subq_deinterleave' argument 1 names different: declaration 'subpw_buf' definition 'SubPWBuf'. [funcArgNamesDifferent] mednafen/cdrom/CDUtility.h:211:39: note: Function 'subq_deinterleave' argument 1 names different: declaration 'subpw_buf' definition 'SubPWBuf'. mednafen/cdrom/CDUtility.c:182:39: note: Function 'subq_deinterleave' argument 1 names different: declaration 'subpw_buf' definition 'SubPWBuf'. mednafen/cdrom/CDUtility.c:182:58: style:inconclusive: Function 'subq_deinterleave' argument 2 names different: declaration 'subq_buf' definition 'qbuf'. [funcArgNamesDifferent] mednafen/cdrom/CDUtility.h:211:59: note: Function 'subq_deinterleave' argument 2 names different: declaration 'subq_buf' definition 'qbuf'. mednafen/cdrom/CDUtility.c:182:58: note: Function 'subq_deinterleave' argument 2 names different: declaration 'subq_buf' definition 'qbuf'. mednafen/cdrom/SimpleFIFO.h:92:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] mednafen/cdrom/SimpleFIFO.h:119:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] mednafen/cdrom/SimpleFIFO.h:63:18: style:inconclusive: Technically the member function 'SimpleFIFO::CanRead' can be const. [functionConst] mednafen/cdrom/SimpleFIFO.h:68:18: style:inconclusive: Technically the member function 'SimpleFIFO::CanWrite' can be const. [functionConst] mednafen/cdrom/SimpleFIFO.h:15:2: style: Class 'SimpleFIFO' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] mednafen/cdrom/CDAccess_Image.cpp:320:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] mednafen/cdrom/CDAccess_Image.cpp:380:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] mednafen/cdrom/audioreader.cpp:67:7: style: Class 'OggVorbisReader' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] mednafen/cdrom/audioreader.cpp:68:8: style: The destructor '~OggVorbisReader' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/cdrom/audioreader.h:10:16: note: Virtual destructor in base class mednafen/cdrom/audioreader.cpp:68:8: note: Destructor in derived class mednafen/cdrom/audioreader.cpp:70:15: style: The function 'Read_' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/cdrom/audioreader.h:31:23: note: Virtual function in base class mednafen/cdrom/audioreader.cpp:70:15: note: Function in derived class mednafen/cdrom/audioreader.cpp:71:12: style: The function 'Seek_' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/cdrom/audioreader.h:32:20: note: Virtual function in base class mednafen/cdrom/audioreader.cpp:71:12: note: Function in derived class mednafen/cdrom/audioreader.cpp:72:15: style: The function 'FrameCount' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/cdrom/audioreader.h:12:23: note: Virtual function in base class mednafen/cdrom/audioreader.cpp:72:15: note: Function in derived class mednafen/cdrom/audioreader.cpp:81:17: style: C-style pointer casting [cstyleCast] mednafen/cdrom/audioreader.cpp:91:17: style: C-style pointer casting [cstyleCast] mednafen/cdrom/audioreader.cpp:100:17: style: C-style pointer casting [cstyleCast] mednafen/cdrom/audioreader.cpp:109:17: style: C-style pointer casting [cstyleCast] mednafen/cdrom/audioreader.cpp:145:39: style: C-style pointer casting [cstyleCast] mednafen/cdrom/audioreader.cpp:150:16: style: C-style pointer casting [cstyleCast] mednafen/cdrom/audioreader.cpp:139:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/cdrom/CDAccess_CCD.cpp:147:29: error:inconclusive: Returning object that points to local variable 'linebuf' that will be invalid when returning. [returnDanglingLifetime] mednafen/cdrom/CDAccess_CCD.cpp:147:84: note: Pointer to container is created here. mednafen/cdrom/CDAccess_CCD.cpp:147:84: note: Passed to constructor of 'MDFN_Error'. mednafen/cdrom/CDAccess_CCD.cpp:87:16: note: Variable created here. mednafen/cdrom/CDAccess_CCD.cpp:147:29: note: Returning object that points to local variable 'linebuf' that will be invalid when returning. mednafen/cdrom/CDAccess_CCD.cpp:159:29: error:inconclusive: Returning object that points to local variable 'linebuf' that will be invalid when returning. [returnDanglingLifetime] mednafen/cdrom/CDAccess_CCD.cpp:159:87: note: Pointer to container is created here. mednafen/cdrom/CDAccess_CCD.cpp:159:87: note: Passed to constructor of 'MDFN_Error'. mednafen/cdrom/CDAccess_CCD.cpp:87:16: note: Variable created here. mednafen/cdrom/CDAccess_CCD.cpp:159:29: note: Returning object that points to local variable 'linebuf' that will be invalid when returning. mednafen/cdrom/CDAccess_CCD.cpp:287:24: style: The scope of the variable 'prev_lba' can be reduced. [variableScope] mednafen/cdrom/CDAccess_CCD.cpp:298:19: style: union member 'Anonymous9::pbuf' is never used. [unusedStructMember] mednafen/cdrom/CDAccess_CCD.cpp:199:20: style: Variable 'pframe' is assigned a value that is never used. [unreadVariable] mednafen/cdrom/cdromif.cpp:788:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ATTRIBUTE_READABLE [valueFlowBailoutIncompleteVar] mednafen/cdrom/cdromif.cpp:821:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] mednafen/cdrom/cdromif.cpp:836:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBADF [valueFlowBailoutIncompleteVar] mednafen/cdrom/cdromif.cpp:859:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] mednafen/cdrom/galois.c:48:4: warning: If memory allocation fails, then there is a possible null pointer dereference: gt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:42:45: note: Assuming allocation function fails mednafen/cdrom/galois.c:42:23: note: Assignment 'gt=(struct GaloisTables*)calloc(1,sizeof(struct GaloisTables))', assigned value is 0 mednafen/cdrom/galois.c:48:4: note: Null pointer dereference mednafen/cdrom/galois.c:50:4: warning: If memory allocation fails, then there is a possible null pointer dereference: gt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:42:45: note: Assuming allocation function fails mednafen/cdrom/galois.c:42:23: note: Assignment 'gt=(struct GaloisTables*)calloc(1,sizeof(struct GaloisTables))', assigned value is 0 mednafen/cdrom/galois.c:50:4: note: Null pointer dereference mednafen/cdrom/galois.c:51:4: warning: If memory allocation fails, then there is a possible null pointer dereference: gt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:42:45: note: Assuming allocation function fails mednafen/cdrom/galois.c:42:23: note: Assignment 'gt=(struct GaloisTables*)calloc(1,sizeof(struct GaloisTables))', assigned value is 0 mednafen/cdrom/galois.c:51:4: note: Null pointer dereference mednafen/cdrom/galois.c:52:4: warning: If memory allocation fails, then there is a possible null pointer dereference: gt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:42:45: note: Assuming allocation function fails mednafen/cdrom/galois.c:42:23: note: Assignment 'gt=(struct GaloisTables*)calloc(1,sizeof(struct GaloisTables))', assigned value is 0 mednafen/cdrom/galois.c:52:4: note: Null pointer dereference mednafen/cdrom/galois.c:57:7: warning: If memory allocation fails, then there is a possible null pointer dereference: gt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:42:45: note: Assuming allocation function fails mednafen/cdrom/galois.c:42:23: note: Assignment 'gt=(struct GaloisTables*)calloc(1,sizeof(struct GaloisTables))', assigned value is 0 mednafen/cdrom/galois.c:57:7: note: Null pointer dereference mednafen/cdrom/galois.c:58:7: warning: If memory allocation fails, then there is a possible null pointer dereference: gt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:42:45: note: Assuming allocation function fails mednafen/cdrom/galois.c:42:23: note: Assignment 'gt=(struct GaloisTables*)calloc(1,sizeof(struct GaloisTables))', assigned value is 0 mednafen/cdrom/galois.c:58:7: note: Null pointer dereference mednafen/cdrom/galois.c:72:4: warning: If memory allocation fails, then there is a possible null pointer dereference: gt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:42:45: note: Assuming allocation function fails mednafen/cdrom/galois.c:42:23: note: Assignment 'gt=(struct GaloisTables*)calloc(1,sizeof(struct GaloisTables))', assigned value is 0 mednafen/cdrom/galois.c:64:8: note: Assuming condition is false mednafen/cdrom/galois.c:72:4: note: Null pointer dereference mednafen/cdrom/galois.c:73:4: warning: If memory allocation fails, then there is a possible null pointer dereference: gt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:42:45: note: Assuming allocation function fails mednafen/cdrom/galois.c:42:23: note: Assignment 'gt=(struct GaloisTables*)calloc(1,sizeof(struct GaloisTables))', assigned value is 0 mednafen/cdrom/galois.c:64:8: note: Assuming condition is false mednafen/cdrom/galois.c:73:4: note: Null pointer dereference mednafen/cdrom/galois.c:76:7: warning: If memory allocation fails, then there is a possible null pointer dereference: gt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:42:45: note: Assuming allocation function fails mednafen/cdrom/galois.c:42:23: note: Assignment 'gt=(struct GaloisTables*)calloc(1,sizeof(struct GaloisTables))', assigned value is 0 mednafen/cdrom/galois.c:64:8: note: Assuming condition is false mednafen/cdrom/galois.c:76:7: note: Null pointer dereference mednafen/cdrom/galois.c:76:27: warning: If memory allocation fails, then there is a possible null pointer dereference: gt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:42:45: note: Assuming allocation function fails mednafen/cdrom/galois.c:42:23: note: Assignment 'gt=(struct GaloisTables*)calloc(1,sizeof(struct GaloisTables))', assigned value is 0 mednafen/cdrom/galois.c:64:8: note: Assuming condition is false mednafen/cdrom/galois.c:76:27: note: Null pointer dereference mednafen/cdrom/galois.c:107:4: warning: If memory allocation fails, then there is a possible null pointer dereference: rt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:105:13: note: Assuming allocation function fails mednafen/cdrom/galois.c:104:28: note: Assignment 'rt=(struct ReedSolomonTables*)calloc(1,sizeof(struct ReedSolomonTables))', assigned value is 0 mednafen/cdrom/galois.c:107:4: note: Null pointer dereference mednafen/cdrom/galois.c:108:4: warning: If memory allocation fails, then there is a possible null pointer dereference: rt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:105:13: note: Assuming allocation function fails mednafen/cdrom/galois.c:104:28: note: Assignment 'rt=(struct ReedSolomonTables*)calloc(1,sizeof(struct ReedSolomonTables))', assigned value is 0 mednafen/cdrom/galois.c:108:4: note: Null pointer dereference mednafen/cdrom/galois.c:109:4: warning: If memory allocation fails, then there is a possible null pointer dereference: rt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:105:13: note: Assuming allocation function fails mednafen/cdrom/galois.c:104:28: note: Assignment 'rt=(struct ReedSolomonTables*)calloc(1,sizeof(struct ReedSolomonTables))', assigned value is 0 mednafen/cdrom/galois.c:109:4: note: Null pointer dereference mednafen/cdrom/galois.c:110:4: warning: If memory allocation fails, then there is a possible null pointer dereference: rt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:105:13: note: Assuming allocation function fails mednafen/cdrom/galois.c:104:28: note: Assignment 'rt=(struct ReedSolomonTables*)calloc(1,sizeof(struct ReedSolomonTables))', assigned value is 0 mednafen/cdrom/galois.c:110:4: note: Null pointer dereference mednafen/cdrom/galois.c:111:4: warning: If memory allocation fails, then there is a possible null pointer dereference: rt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:105:13: note: Assuming allocation function fails mednafen/cdrom/galois.c:104:28: note: Assignment 'rt=(struct ReedSolomonTables*)calloc(1,sizeof(struct ReedSolomonTables))', assigned value is 0 mednafen/cdrom/galois.c:111:4: note: Null pointer dereference mednafen/cdrom/galois.c:111:33: warning: If memory allocation fails, then there is a possible null pointer dereference: rt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:105:13: note: Assuming allocation function fails mednafen/cdrom/galois.c:104:28: note: Assignment 'rt=(struct ReedSolomonTables*)calloc(1,sizeof(struct ReedSolomonTables))', assigned value is 0 mednafen/cdrom/galois.c:111:33: note: Null pointer dereference mednafen/cdrom/galois.c:113:4: warning: If memory allocation fails, then there is a possible null pointer dereference: rt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:105:13: note: Assuming allocation function fails mednafen/cdrom/galois.c:104:28: note: Assignment 'rt=(struct ReedSolomonTables*)calloc(1,sizeof(struct ReedSolomonTables))', assigned value is 0 mednafen/cdrom/galois.c:113:4: note: Null pointer dereference mednafen/cdrom/galois.c:113:38: warning: If memory allocation fails, then there is a possible null pointer dereference: rt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:105:13: note: Assuming allocation function fails mednafen/cdrom/galois.c:104:28: note: Assignment 'rt=(struct ReedSolomonTables*)calloc(1,sizeof(struct ReedSolomonTables))', assigned value is 0 mednafen/cdrom/galois.c:113:38: note: Null pointer dereference mednafen/cdrom/galois.c:117:4: warning: If memory allocation fails, then there is a possible null pointer dereference: rt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:105:13: note: Assuming allocation function fails mednafen/cdrom/galois.c:104:28: note: Assignment 'rt=(struct ReedSolomonTables*)calloc(1,sizeof(struct ReedSolomonTables))', assigned value is 0 mednafen/cdrom/galois.c:117:4: note: Null pointer dereference mednafen/cdrom/galois.c:119:54: warning: If memory allocation fails, then there is a possible null pointer dereference: rt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:105:13: note: Assuming allocation function fails mednafen/cdrom/galois.c:104:28: note: Assignment 'rt=(struct ReedSolomonTables*)calloc(1,sizeof(struct ReedSolomonTables))', assigned value is 0 mednafen/cdrom/galois.c:119:54: note: Null pointer dereference mednafen/cdrom/galois.c:120:7: warning: If memory allocation fails, then there is a possible null pointer dereference: rt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:105:13: note: Assuming allocation function fails mednafen/cdrom/galois.c:104:28: note: Assignment 'rt=(struct ReedSolomonTables*)calloc(1,sizeof(struct ReedSolomonTables))', assigned value is 0 mednafen/cdrom/galois.c:120:7: note: Null pointer dereference mednafen/cdrom/galois.c:126:13: warning: If memory allocation fails, then there is a possible null pointer dereference: rt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:105:13: note: Assuming allocation function fails mednafen/cdrom/galois.c:104:28: note: Assignment 'rt=(struct ReedSolomonTables*)calloc(1,sizeof(struct ReedSolomonTables))', assigned value is 0 mednafen/cdrom/galois.c:126:13: note: Null pointer dereference mednafen/cdrom/galois.c:132:7: warning: If memory allocation fails, then there is a possible null pointer dereference: rt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:105:13: note: Assuming allocation function fails mednafen/cdrom/galois.c:104:28: note: Assignment 'rt=(struct ReedSolomonTables*)calloc(1,sizeof(struct ReedSolomonTables))', assigned value is 0 mednafen/cdrom/galois.c:132:7: note: Null pointer dereference mednafen/cdrom/galois.c:132:59: warning: If memory allocation fails, then there is a possible null pointer dereference: rt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:105:13: note: Assuming allocation function fails mednafen/cdrom/galois.c:104:28: note: Assignment 'rt=(struct ReedSolomonTables*)calloc(1,sizeof(struct ReedSolomonTables))', assigned value is 0 mednafen/cdrom/galois.c:132:59: note: Null pointer dereference mednafen/cdrom/galois.c:137:16: warning: If memory allocation fails, then there is a possible null pointer dereference: rt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:105:13: note: Assuming allocation function fails mednafen/cdrom/galois.c:104:28: note: Assignment 'rt=(struct ReedSolomonTables*)calloc(1,sizeof(struct ReedSolomonTables))', assigned value is 0 mednafen/cdrom/galois.c:137:16: note: Null pointer dereference mednafen/cdrom/galois.c:138:7: warning: If memory allocation fails, then there is a possible null pointer dereference: rt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:105:13: note: Assuming allocation function fails mednafen/cdrom/galois.c:104:28: note: Assignment 'rt=(struct ReedSolomonTables*)calloc(1,sizeof(struct ReedSolomonTables))', assigned value is 0 mednafen/cdrom/galois.c:138:7: note: Null pointer dereference mednafen/cdrom/galois.c:138:34: warning: If memory allocation fails, then there is a possible null pointer dereference: rt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:105:13: note: Assuming allocation function fails mednafen/cdrom/galois.c:104:28: note: Assignment 'rt=(struct ReedSolomonTables*)calloc(1,sizeof(struct ReedSolomonTables))', assigned value is 0 mednafen/cdrom/galois.c:138:34: note: Null pointer dereference mednafen/cdrom/galois.c:39:42: style:inconclusive: Function 'CreateGaloisTables' argument 1 names different: declaration 'a' definition 'gf_generator'. [funcArgNamesDifferent] mednafen/cdrom/galois.h:66:42: note: Function 'CreateGaloisTables' argument 1 names different: declaration 'a' definition 'gf_generator'. mednafen/cdrom/galois.c:39:42: note: Function 'CreateGaloisTables' argument 1 names different: declaration 'a' definition 'gf_generator'. mednafen/cdrom/galois.c:81:37: style:inconclusive: Function 'FreeGaloisTables' argument 1 names different: declaration 'a' definition 'gt'. [funcArgNamesDifferent] mednafen/cdrom/galois.h:67:37: note: Function 'FreeGaloisTables' argument 1 names different: declaration 'a' definition 'gt'. mednafen/cdrom/galois.c:81:37: note: Function 'FreeGaloisTables' argument 1 names different: declaration 'a' definition 'gt'. mednafen/cdrom/galois.c:98:58: style:inconclusive: Function 'CreateReedSolomonTables' argument 1 names different: declaration 'a' definition 'gt'. [funcArgNamesDifferent] mednafen/cdrom/galois.h:69:58: note: Function 'CreateReedSolomonTables' argument 1 names different: declaration 'a' definition 'gt'. mednafen/cdrom/galois.c:98:58: note: Function 'CreateReedSolomonTables' argument 1 names different: declaration 'a' definition 'gt'. mednafen/cdrom/galois.c:99:15: style:inconclusive: Function 'CreateReedSolomonTables' argument 2 names different: declaration 'b' definition 'first_consecutive_root'. [funcArgNamesDifferent] mednafen/cdrom/galois.h:69:69: note: Function 'CreateReedSolomonTables' argument 2 names different: declaration 'b' definition 'first_consecutive_root'. mednafen/cdrom/galois.c:99:15: note: Function 'CreateReedSolomonTables' argument 2 names different: declaration 'b' definition 'first_consecutive_root'. mednafen/cdrom/galois.c:100:15: style:inconclusive: Function 'CreateReedSolomonTables' argument 3 names different: declaration 'c' definition 'prim_elem'. [funcArgNamesDifferent] mednafen/cdrom/galois.h:69:80: note: Function 'CreateReedSolomonTables' argument 3 names different: declaration 'c' definition 'prim_elem'. mednafen/cdrom/galois.c:100:15: note: Function 'CreateReedSolomonTables' argument 3 names different: declaration 'c' definition 'prim_elem'. mednafen/cdrom/galois.c:101:11: style:inconclusive: Function 'CreateReedSolomonTables' argument 4 names different: declaration 'd' definition 'nroots_in'. [funcArgNamesDifferent] mednafen/cdrom/galois.h:69:87: note: Function 'CreateReedSolomonTables' argument 4 names different: declaration 'd' definition 'nroots_in'. mednafen/cdrom/galois.c:101:11: note: Function 'CreateReedSolomonTables' argument 4 names different: declaration 'd' definition 'nroots_in'. mednafen/cdrom/galois.c:143:47: style:inconclusive: Function 'FreeReedSolomonTables' argument 1 names different: declaration 'a' definition 'rt'. [funcArgNamesDifferent] mednafen/cdrom/galois.h:70:47: note: Function 'FreeReedSolomonTables' argument 1 names different: declaration 'a' definition 'rt'. mednafen/cdrom/galois.c:143:47: note: Function 'FreeReedSolomonTables' argument 1 names different: declaration 'a' definition 'rt'. mednafen/cdrom/cdromif.cpp:162:15: warning: Member variable 'CDIF_Message::parg' is not initialized in the constructor. [uninitMemberVar] mednafen/cdrom/cdromif.cpp:169:15: warning: Member variable 'CDIF_Message::parg' is not initialized in the constructor. [uninitMemberVar] mednafen/cdrom/cdromif.cpp:178:15: warning: Member variable 'CDIF_Message::args' is not initialized in the constructor. [uninitMemberVar] mednafen/cdrom/cdromif.cpp:178:15: warning: Member variable 'CDIF_Message::parg' is not initialized in the constructor. [uninitMemberVar] mednafen/cdrom/cdromif.cpp:402:10: warning: Member variable 'CDIF_MT::SectorBuffers' is not initialized in the constructor. [uninitMemberVar] mednafen/cdrom/cdromif.cpp:402:10: warning: Member variable 'CDIF_MT::SBWritePos' is not initialized in the constructor. [uninitMemberVar] mednafen/cdrom/cdromif.cpp:402:10: warning: Member variable 'CDIF_MT::ra_lba' is not initialized in the constructor. [uninitMemberVar] mednafen/cdrom/cdromif.cpp:402:10: warning: Member variable 'CDIF_MT::ra_count' is not initialized in the constructor. [uninitMemberVar] mednafen/cdrom/cdromif.cpp:402:10: warning: Member variable 'CDIF_MT::last_read_lba' is not initialized in the constructor. [uninitMemberVar] mednafen/cdrom/cdromif.cpp:775:20: warning: Member variable 'CDIF_Stream_Thing::position' is not initialized in the constructor. [uninitMemberVar] mednafen/cdrom/cdromif.cpp:181:4: performance: Variable 'str_message' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] mednafen/cdrom/cdromif.h:35:19: style:inconclusive: Technically the member function 'CDIF::ReadTOC' can be const. [functionConst] mednafen/cdrom/cdromif.cpp:479:12: performance:inconclusive: Technically the member function 'CDIF::ValidateRawSector' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/cdrom/cdromif.h:45:12: note: Technically the member function 'CDIF::ValidateRawSector' can be static (but you may consider moving to unnamed namespace). mednafen/cdrom/cdromif.cpp:479:12: note: Technically the member function 'CDIF::ValidateRawSector' can be static (but you may consider moving to unnamed namespace). mednafen/cdrom/cdromif.cpp:49:7: style: Class 'CDIF_Message' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] mednafen/cdrom/cdromif.cpp:90:7: style: Class 'CDIF_MT' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] mednafen/cdrom/cdromif.cpp:139:7: style: Class 'CDIF_ST' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] mednafen/cdrom/cdromif.cpp:91:16: style: The destructor '~CDIF_MT' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/cdrom/cdromif.h:33:16: note: Virtual destructor in base class mednafen/cdrom/cdromif.cpp:91:16: note: Destructor in derived class mednafen/cdrom/cdromif.cpp:93:20: style: The function 'HintReadSector' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/cdrom/cdromif.h:40:20: note: Virtual function in base class mednafen/cdrom/cdromif.cpp:93:20: note: Function in derived class mednafen/cdrom/cdromif.cpp:94:20: style: The function 'ReadRawSector' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/cdrom/cdromif.h:41:20: note: Virtual function in base class mednafen/cdrom/cdromif.cpp:94:20: note: Function in derived class mednafen/cdrom/cdromif.cpp:95:20: style: The function 'ReadRawSectorPWOnly' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/cdrom/cdromif.h:42:20: note: Virtual function in base class mednafen/cdrom/cdromif.cpp:95:20: note: Function in derived class mednafen/cdrom/cdromif.cpp:99:20: style: The function 'Eject' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/cdrom/cdromif.h:54:20: note: Virtual function in base class mednafen/cdrom/cdromif.cpp:99:20: note: Function in derived class mednafen/cdrom/cdromif.cpp:140:16: style: The destructor '~CDIF_ST' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/cdrom/cdromif.h:33:16: note: Virtual destructor in base class mednafen/cdrom/cdromif.cpp:140:16: note: Destructor in derived class mednafen/cdrom/cdromif.cpp:142:20: style: The function 'HintReadSector' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/cdrom/cdromif.h:40:20: note: Virtual function in base class mednafen/cdrom/cdromif.cpp:142:20: note: Function in derived class mednafen/cdrom/cdromif.cpp:143:20: style: The function 'ReadRawSector' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/cdrom/cdromif.h:41:20: note: Virtual function in base class mednafen/cdrom/cdromif.cpp:143:20: note: Function in derived class mednafen/cdrom/cdromif.cpp:144:20: style: The function 'ReadRawSectorPWOnly' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/cdrom/cdromif.h:42:20: note: Virtual function in base class mednafen/cdrom/cdromif.cpp:144:20: note: Function in derived class mednafen/cdrom/cdromif.cpp:145:20: style: The function 'Eject' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/cdrom/cdromif.h:54:20: note: Virtual function in base class mednafen/cdrom/cdromif.cpp:145:20: note: Function in derived class mednafen/cdrom/cdromif.cpp:754:8: style: The destructor '~CDIF_Stream_Thing' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:22:16: note: Virtual destructor in base class mednafen/cdrom/cdromif.cpp:754:8: note: Destructor in derived class mednafen/cdrom/cdromif.cpp:756:22: style: The function 'attributes' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:30:24: note: Virtual function in base class mednafen/cdrom/cdromif.cpp:756:22: note: Function in derived class mednafen/cdrom/cdromif.cpp:760:22: style: The function 'read' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:32:24: note: Virtual function in base class mednafen/cdrom/cdromif.cpp:760:22: note: Function in derived class mednafen/cdrom/cdromif.cpp:761:20: style: The function 'write' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:33:20: note: Virtual function in base class mednafen/cdrom/cdromif.cpp:761:20: note: Function in derived class mednafen/cdrom/cdromif.cpp:763:20: style: The function 'seek' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:35:20: note: Virtual function in base class mednafen/cdrom/cdromif.cpp:763:20: note: Function in derived class mednafen/cdrom/cdromif.cpp:764:21: style: The function 'tell' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:36:23: note: Virtual function in base class mednafen/cdrom/cdromif.cpp:764:21: note: Function in derived class mednafen/cdrom/cdromif.cpp:765:21: style: The function 'size' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:37:23: note: Virtual function in base class mednafen/cdrom/cdromif.cpp:765:21: note: Function in derived class mednafen/cdrom/cdromif.cpp:766:20: style: The function 'close' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/Stream.h:38:20: note: Virtual function in base class mednafen/cdrom/cdromif.cpp:766:20: note: Function in derived class mednafen/cdrom/cdromif.cpp:507:7: portability: %d in format string (no. 1) requires 'int' but the argument type is 'uint32 {aka unsigned int}'. [invalidPrintfArgType_sint] mednafen/cdrom/cdromif.cpp:507:7: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mednafen/cdrom/cdromif.cpp:552:7: portability: %d in format string (no. 1) requires 'int' but the argument type is 'uint32 {aka unsigned int}'. [invalidPrintfArgType_sint] mednafen/cdrom/cdromif.cpp:552:7: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mednafen/cdrom/cdromif.cpp:704:7: portability: %d in format string (no. 1) requires 'int' but the argument type is 'uint32 {aka unsigned int}'. [invalidPrintfArgType_sint] mednafen/cdrom/cdromif.cpp:704:7: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mednafen/cdrom/cdromif.cpp:277:21: style: C-style pointer casting [cstyleCast] mednafen/cdrom/cdromif.cpp:415:37: style: C-style pointer casting [cstyleCast] mednafen/cdrom/cdromif.cpp:823:14: style: C-style pointer casting [cstyleCast] mednafen/cdrom/cdromif.cpp:207:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/cdrom/cdromif.cpp:212:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/cdrom/cdromif.cpp:212:40: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/cdrom/cdromif.cpp:223:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/cdrom/cdromif.cpp:233:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/cdrom/cdromif.cpp:237:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/cdrom/cdromif.cpp:239:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/cdrom/cdromif.cpp:383:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/cdrom/cdromif.cpp:391:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/cdrom/cdromif.cpp:392:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/cdrom/cdromif.cpp:422:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/cdrom/cdromif.cpp:428:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/cdrom/cdromif.cpp:434:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/cdrom/cdromif.cpp:464:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/cdrom/cdromif.cpp:468:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/cdrom/cdromif.cpp:513:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/cdrom/cdromif.cpp:529:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/cdrom/cdromif.cpp:529:39: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/cdrom/cdromif.cpp:532:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/cdrom/cdromif.cpp:775:63: style:inconclusive: Function 'CDIF_Stream_Thing' argument 2 names different: declaration 'lba_arg' definition 'start_lba_arg'. [funcArgNamesDifferent] mednafen/cdrom/cdromif.cpp:753:50: note: Function 'CDIF_Stream_Thing' argument 2 names different: declaration 'lba_arg' definition 'start_lba_arg'. mednafen/cdrom/cdromif.cpp:775:63: note: Function 'CDIF_Stream_Thing' argument 2 names different: declaration 'lba_arg' definition 'start_lba_arg'. mednafen/cdrom/cdromif.cpp:55:13: style: class member 'CDIF_Message::parg' is never used. [unusedStructMember] mednafen/masmem.h:187:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] mednafen/masmem.h:198:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] mednafen/cdrom/l-ec.c:85:32: style: Parameter 'frame' can be declared as pointer to const [constParameterPointer] mednafen/cdrom/l-ec.c:93:54: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] mednafen/cdrom/l-ec.c:129:32: style: Parameter 'frame' can be declared as pointer to const [constParameterPointer] mednafen/cdrom/l-ec.c:141:54: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] mednafen/cdrom/recover-raw.c:55:35: style:inconclusive: Function 'CheckEDC' argument 1 names different: declaration 'a' definition 'cd_frame'. [funcArgNamesDifferent] mednafen/cdrom/recover-raw.h:14:35: note: Function 'CheckEDC' argument 1 names different: declaration 'a' definition 'cd_frame'. mednafen/cdrom/recover-raw.c:55:35: note: Function 'CheckEDC' argument 1 names different: declaration 'a' definition 'cd_frame'. mednafen/cdrom/recover-raw.c:55:50: style:inconclusive: Function 'CheckEDC' argument 2 names different: declaration 'b' definition 'xa_mode'. [funcArgNamesDifferent] mednafen/cdrom/recover-raw.h:14:43: note: Function 'CheckEDC' argument 2 names different: declaration 'b' definition 'xa_mode'. mednafen/cdrom/recover-raw.c:55:50: note: Function 'CheckEDC' argument 2 names different: declaration 'b' definition 'xa_mode'. mednafen/cdrom/recover-raw.c:187:20: style: Variable 'lec_did_sth' is assigned a value that is never used. [unreadVariable] mednafen/cdrom/recover-raw.c:196:19: style: Variable 'lec_did_sth' is assigned a value that is never used. [unreadVariable] mednafen/psx/cpu.cpp:626:5: error: syntax error [syntaxError] mednafen/error.cpp:27:13: warning: Member variable 'MDFN_Error::errno_code' is not initialized in the constructor. [uninitMemberVar] mednafen/error.cpp:27:13: warning: Member variable 'MDFN_Error::error_message' is not initialized in the constructor. [uninitMemberVar] mednafen/error.cpp:72:25: warning: 'operator=' should check for assignment to self to avoid problems with dynamic memory. [operatorEqToSelf] mednafen/cdrom/lec.c:98:35: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] mednafen/file.c:128:54: style:inconclusive: Function 'file_fgets' argument 3 names different: declaration 'buffer_size' definition 'len'. [funcArgNamesDifferent] mednafen/file.h:30:54: note: Function 'file_fgets' argument 3 names different: declaration 'buffer_size' definition 'len'. mednafen/file.c:128:54: note: Function 'file_fgets' argument 3 names different: declaration 'buffer_size' definition 'len'. mednafen/mednafen-endian.c:72:32: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] mednafen/mednafen-endian.c:79:32: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] mednafen/mednafen-endian.c:86:32: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] mednafen/mednafen-endian.c:94:32: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] mednafen/mednafen-endian.c:127:32: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] mednafen/mednafen-endian.c:147:32: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] mednafen/mednafen-endian.c:191:30: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] mednafen/mednafen-endian.c:198:30: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] mednafen/general.cpp:64:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] mednafen/general.cpp:99:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] mednafen/tremor/block.c:215:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sample_count [valueFlowBailoutIncompleteVar] mednafen/tremor/vorbisfile.c:63:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mednafen/trio/trio.c:1512:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mednafen/trio/trio.c:3414:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mednafen/trio/trio.c:3478:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mednafen/trio/trio.c:3549:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mednafen/trio/trio.c:3692:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mednafen/trio/trio.c:3844:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mednafen/trio/trio.c:4177:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mednafen/general.cpp:165:11: style: C-style pointer casting [cstyleCast] mednafen/general.cpp:135:9: style: The scope of the variable 'slash' can be reduced. [variableScope] mednafen/md5.c:43:51: style: Parameter 'data' can be declared as const array [constParameter] mednafen/md5.c:244:28: style: Parameter 'digest' can be declared as const array [constParameter] mednafen/md5.c:247:16: style: Variable 'trans' can be declared as const array [constVariable] mednafen/psx/debug.cpp:590:10: error: syntax error [syntaxError] mednafen/psx/gpu.h:89:20: style:inconclusive: Technically the member function 'PS_GPU::GetScanlineNum' can be const. [functionConst] mednafen/psx/gpu.h:94:21: style:inconclusive: Technically the member function 'PS_GPU::PeekRAM' can be const. [functionConst] mednafen/psx/FastFIFO.h:30:16: style:inconclusive: Technically the member function 'FastFIFO < uint32_t , 0x20 >::CanRead' can be const. [functionConst] mednafen/psx/FastFIFO.h:35:16: style:inconclusive: Technically the member function 'FastFIFO < uint32_t , 0x20 >::CanWrite' can be const. [functionConst] mednafen/psx/FastFIFO.h:40:11: style:inconclusive: Technically the member function 'FastFIFO < uint32_t , 0x20 >::Peek' can be const. [functionConst] mednafen/masmem.h:119:15: style:inconclusive: Technically the member function 'MultiAccessSizeMem < 1024 , uint32_t , false >::ReadU8' can be const. [functionConst] mednafen/masmem.h:119:15: style:inconclusive: Technically the member function 'MultiAccessSizeMem < 2097152 , uint32_t , false >::ReadU8' can be const. [functionConst] mednafen/psx/dis.cpp:278:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mednafen/psx/dis.cpp:293:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mednafen/psx/dis.cpp:294:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mednafen/psx/dis.cpp:317:25: portability: %d in format string (no. 1) requires 'int' but the argument type is 'uint32 {aka unsigned int}'. [invalidPrintfArgType_sint] mednafen/psx/dis.cpp:322:25: portability: %d in format string (no. 1) requires 'int' but the argument type is 'uint32 {aka unsigned int}'. [invalidPrintfArgType_sint] mednafen/psx/dis.cpp:327:25: portability: %d in format string (no. 1) requires 'int' but the argument type is 'uint32 {aka unsigned int}'. [invalidPrintfArgType_sint] mednafen/masmem.h:127:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/masmem.h:127:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/masmem.h:129:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/masmem.h:129:34: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/masmem.h:135:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/masmem.h:135:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/masmem.h:137:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/masmem.h:137:34: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/masmem.h:161:5: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/masmem.h:161:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/masmem.h:163:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/masmem.h:163:28: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/masmem.h:169:5: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/masmem.h:169:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/masmem.h:171:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/masmem.h:171:28: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/masmem.h:149:10: error: Uninitialized variable: ret [legacyUninitvar] mednafen/mempatcher.cpp:207:5: style: Condition '!AddCheatEntry(t,NULL,addr,val,compare,1,type,length,bigendian)' is always false [knownConditionTrueFalse] mednafen/mempatcher.cpp:207:19: note: Calling function 'AddCheatEntry' returns 1 mednafen/mempatcher.cpp:207:5: note: Condition '!AddCheatEntry(t,NULL,addr,val,compare,1,type,length,bigendian)' is always false mednafen/mempatcher.cpp:109:12: style: C-style pointer casting [cstyleCast] mednafen/mempatcher.cpp:617:9: style: C-style pointer casting [cstyleCast] mednafen/mempatcher.cpp:125:40: style:inconclusive: Function 'MDFNMP_AddRAM' argument 2 names different: declaration 'address' definition 'A'. [funcArgNamesDifferent] mednafen/mempatcher.h:18:40: note: Function 'MDFNMP_AddRAM' argument 2 names different: declaration 'address' definition 'A'. mednafen/mempatcher.cpp:125:40: note: Function 'MDFNMP_AddRAM' argument 2 names different: declaration 'address' definition 'A'. mednafen/mempatcher.cpp:180:32: style:inconclusive: Function 'MDFN_LoadGameCheats' argument 1 names different: declaration 'override' definition 'override_ptr'. [funcArgNamesDifferent] mednafen/mednafen.h:28:32: note: Function 'MDFN_LoadGameCheats' argument 1 names different: declaration 'override' definition 'override_ptr'. mednafen/mempatcher.cpp:180:32: note: Function 'MDFN_LoadGameCheats' argument 1 names different: declaration 'override' definition 'override_ptr'. mednafen/mempatcher.cpp:584:33: style:inconclusive: Function 'MDFNI_DecodePAR' argument 1 names different: declaration 'code' definition 'str'. [funcArgNamesDifferent] mednafen/mempatcher-driver.h:28:33: note: Function 'MDFNI_DecodePAR' argument 1 names different: declaration 'code' definition 'str'. mednafen/mempatcher.cpp:584:33: note: Function 'MDFNI_DecodePAR' argument 1 names different: declaration 'code' definition 'str'. mednafen/mempatcher.cpp:180:32: style: Parameter 'override_ptr' can be declared as pointer to const [constParameterPointer] mednafen/mempatcher.cpp:508:14: style: Variable 'lets' can be declared as const array [constVariable] mednafen/mempatcher.cpp:77:51: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] mednafen/mempatcher.cpp:146:64: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] mednafen/mempatcher.cpp:189:53: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] mednafen/mempatcher.cpp:384:53: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] mednafen/mempatcher.cpp:413:51: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] mednafen/psx/dma.cpp:84:9: style:inconclusive: Boolean expression 'irqo' is used in bitwise operation. [bitwiseOnBoolean] mednafen/psx/dma.cpp:86:9: style:inconclusive: Boolean expression 'irqo' is used in bitwise operation. [bitwiseOnBoolean] mednafen/psx/spu.h:44:4: warning: Member variable 'SPU_Sweep::Control' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.h:44:4: warning: Member variable 'SPU_Sweep::Current' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.h:44:4: warning: Member variable 'SPU_Sweep::Divider' is not initialized in the constructor. [uninitMemberVar] mednafen/cdrom/SimpleFIFO.h:63:18: style:inconclusive: Technically the member function 'SimpleFIFO < uint8_t >::CanRead' can be const. [functionConst] mednafen/cdrom/SimpleFIFO.h:68:18: style:inconclusive: Technically the member function 'SimpleFIFO < uint8_t >::CanWrite' can be const. [functionConst] mednafen/cdrom/SimpleFIFO.h:15:2: style: Class 'SimpleFIFO < uint8_t >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] mednafen/clamp.h:25:14: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::DiscChanged' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::DiscStartupDelay' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::AudioBuffer' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::Pending_DecodeVolume' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::DecodeVolume' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::ADPCM_ResampBuf' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::ADPCM_ResampCurPos' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::ADPCM_ResampCurPhase' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::RegSelector' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::ArgsBuf' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::ArgsWP' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::ArgsRP' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::ArgsReceiveLatch' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::ArgsReceiveBuf' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::ArgsReceiveIn' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::ResultsBuffer' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::ResultsIn' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::ResultsWP' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::ResultsRP' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::SB' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::SB_In' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::SectorPipe' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::SectorPipe_Pos' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::SectorPipe_In' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::SubQBuf' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::SubQBuf_Safe' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::SubQChecksumOK' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::HeaderBufValid' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::HeaderBuf' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::IRQBuffer' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::IRQOutTestMask' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::CDCReadyReceiveCounter' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::FilterFile' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::FilterChan' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::PendingCommand' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::PendingCommandCounter' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::SPUCounter' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::Mode' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::StatusAfterSeek' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::Forward' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::Backward' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::Muted' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::PlayTrackMatch' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::PSRCounter' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::CurSector' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::SectorsRead' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::AsyncIRQPending' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::AsyncResultsPending' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::AsyncResultsPendingCount' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::SeekTarget' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::SeekRetryCounter' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::lastts' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::DiscID' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::CommandLoc' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::CommandLoc_Dirty' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::xa_previous' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::xa_cur_set' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::xa_cur_file' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::xa_cur_chan' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:55:9: warning: Member variable 'PS_CDC::ReportLastF' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/cdc.cpp:118:15: style:inconclusive: Technically the member function 'PS_CDC::CalcNextEvent' can be const. [functionConst] mednafen/psx/cdc.h:29:13: note: Technically the member function 'PS_CDC::CalcNextEvent' can be const. mednafen/psx/cdc.cpp:118:15: note: Technically the member function 'PS_CDC::CalcNextEvent' can be const. mednafen/psx/cdc.cpp:501:21: style:inconclusive: Technically the member function 'PS_CDC::ApplyVolume' can be const. [functionConst] mednafen/psx/cdc.h:55:12: note: Technically the member function 'PS_CDC::ApplyVolume' can be const. mednafen/psx/cdc.cpp:501:21: note: Technically the member function 'PS_CDC::ApplyVolume' can be const. mednafen/psx/cdc.cpp:362:14: style:inconclusive: Technically the member function 'PS_CDC::RecalcIRQ' can be const. [functionConst] mednafen/psx/cdc.h:90:12: note: Technically the member function 'PS_CDC::RecalcIRQ' can be const. mednafen/psx/cdc.cpp:362:14: note: Technically the member function 'PS_CDC::RecalcIRQ' can be const. mednafen/psx/dma.cpp:140:8: style: Variable 'tmp' is assigned a value that is never used. [unreadVariable] mednafen/psx/cdc.cpp:2142:20: style: Comparing expression of type 'const unsigned char' against value 0. Condition is always true. [compareValueOutOfTypeRangeError] mednafen/psx/cdc.cpp:112:18: style: C-style pointer casting [cstyleCast] mednafen/psx/cdc.cpp:628:29: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/psx/cdc.cpp:703:29: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/psx/cdc.cpp:718:33: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/psx/cdc.cpp:2142:17: style: Unsigned expression 'args[0]' can't be negative so it is unnecessary to test it. [unsignedPositive] mednafen/psx/cdc.cpp:458:32: style: Parameter 'subpw' can be declared as pointer to const [constParameterPointer] mednafen/psx/cdc.cpp:545:17: style: Variable 'wf' can be declared as pointer to const [constVariablePointer] mednafen/psx/cdc.cpp:810:65: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] mednafen/psx/cdc.cpp:588:10: style: struct member 'XA_Subheader::file_dup' is never used. [unusedStructMember] mednafen/psx/cdc.cpp:589:10: style: struct member 'XA_Subheader::channel_dup' is never used. [unusedStructMember] mednafen/psx/cdc.cpp:590:10: style: struct member 'XA_Subheader::submode_dup' is never used. [unusedStructMember] mednafen/cdrom/CDAccess_Image.cpp:466:29: error:inconclusive: Returning object that points to local variable 'cmdbuf' that will be invalid when returning. [returnDanglingLifetime] mednafen/cdrom/CDAccess_Image.cpp:466:77: note: Pointer to container is created here. mednafen/cdrom/CDAccess_Image.cpp:466:77: note: Passed to constructor of 'MDFN_Error'. mednafen/cdrom/CDAccess_Image.cpp:333:16: note: Variable created here. mednafen/cdrom/CDAccess_Image.cpp:466:29: note: Returning object that points to local variable 'cmdbuf' that will be invalid when returning. mednafen/cdrom/CDAccess_Image.cpp:511:32: error:inconclusive: Returning object that points to local variable 'cmdbuf' that will be invalid when returning. [returnDanglingLifetime] mednafen/cdrom/CDAccess_Image.cpp:511:101: note: Pointer to container is created here. mednafen/cdrom/CDAccess_Image.cpp:511:101: note: Passed to constructor of 'MDFN_Error'. mednafen/cdrom/CDAccess_Image.cpp:333:16: note: Variable created here. mednafen/cdrom/CDAccess_Image.cpp:511:32: note: Returning object that points to local variable 'cmdbuf' that will be invalid when returning. mednafen/cdrom/CDAccess_Image.cpp:521:32: error:inconclusive: Returning object that points to local variable 'cmdbuf' that will be invalid when returning. [returnDanglingLifetime] mednafen/cdrom/CDAccess_Image.cpp:521:101: note: Pointer to container is created here. mednafen/cdrom/CDAccess_Image.cpp:521:101: note: Passed to constructor of 'MDFN_Error'. mednafen/cdrom/CDAccess_Image.cpp:333:16: note: Variable created here. mednafen/cdrom/CDAccess_Image.cpp:521:32: note: Returning object that points to local variable 'cmdbuf' that will be invalid when returning. mednafen/cdrom/CDAccess_Image.cpp:666:35: error:inconclusive: Returning object that points to local variable 'cmdbuf' that will be invalid when returning. [returnDanglingLifetime] mednafen/cdrom/CDAccess_Image.cpp:666:102: note: Pointer to container is created here. mednafen/cdrom/CDAccess_Image.cpp:666:102: note: Passed to constructor of 'MDFN_Error'. mednafen/cdrom/CDAccess_Image.cpp:333:16: note: Variable created here. mednafen/cdrom/CDAccess_Image.cpp:666:35: note: Returning object that points to local variable 'cmdbuf' that will be invalid when returning. mednafen/cdrom/CDAccess_Image.cpp:683:35: error:inconclusive: Returning object that points to local variable 'cmdbuf' that will be invalid when returning. [returnDanglingLifetime] mednafen/cdrom/CDAccess_Image.cpp:683:102: note: Pointer to container is created here. mednafen/cdrom/CDAccess_Image.cpp:683:102: note: Passed to constructor of 'MDFN_Error'. mednafen/cdrom/CDAccess_Image.cpp:333:16: note: Variable created here. mednafen/cdrom/CDAccess_Image.cpp:683:35: note: Returning object that points to local variable 'cmdbuf' that will be invalid when returning. mednafen/cdrom/CDAccess_Image.cpp:697:35: error:inconclusive: Returning object that points to local variable 'cmdbuf' that will be invalid when returning. [returnDanglingLifetime] mednafen/cdrom/CDAccess_Image.cpp:697:102: note: Pointer to container is created here. mednafen/cdrom/CDAccess_Image.cpp:697:102: note: Passed to constructor of 'MDFN_Error'. mednafen/cdrom/CDAccess_Image.cpp:333:16: note: Variable created here. mednafen/cdrom/CDAccess_Image.cpp:697:35: note: Returning object that points to local variable 'cmdbuf' that will be invalid when returning. mednafen/cdrom/CDAccess_Image.cpp:740:29: error:inconclusive: Returning object that points to local variable 'cmdbuf' that will be invalid when returning. [returnDanglingLifetime] mednafen/cdrom/CDAccess_Image.cpp:740:89: note: Pointer to container is created here. mednafen/cdrom/CDAccess_Image.cpp:740:89: note: Passed to constructor of 'MDFN_Error'. mednafen/cdrom/CDAccess_Image.cpp:333:16: note: Variable created here. mednafen/cdrom/CDAccess_Image.cpp:740:29: note: Returning object that points to local variable 'cmdbuf' that will be invalid when returning. mednafen/cdrom/CDAccess_Image.cpp:856:25: error: Using pointer that is a temporary. [danglingTemporaryLifetime] mednafen/cdrom/CDAccess_Image.cpp:854:105: note: Pointer to container is created here. mednafen/cdrom/CDAccess_Image.cpp:854:30: note: Temporary created here. mednafen/cdrom/CDAccess_Image.cpp:856:25: note: Using pointer that is a temporary. mednafen/psx/cdc.cpp:591:10: style: struct member 'XA_Subheader::coding_dup' is never used. [unusedStructMember] mednafen/cdrom/CDAccess_Image.cpp:175:24: performance:inconclusive: Technically the member function 'CDAccess_Image::GetSectorCount' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/cdrom/CDAccess_Image.h:73:16: note: Technically the member function 'CDAccess_Image::GetSectorCount' can be static (but you may consider moving to unnamed namespace). mednafen/cdrom/CDAccess_Image.cpp:175:24: note: Technically the member function 'CDAccess_Image::GetSectorCount' can be static (but you may consider moving to unnamed namespace). mednafen/cdrom/CDAccess_Image.cpp:1062:7: portability: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'int32 {aka signed int}'. [invalidPrintfArgType_uint] mednafen/cdrom/CDAccess_Image.cpp:940:26: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] mednafen/cdrom/CDAccess_Image.cpp:423:26: style: Variable 'active_track' is reassigned a value before the old one has been used. [redundantAssignment] mednafen/cdrom/CDAccess_Image.cpp:415:29: note: active_track is assigned mednafen/cdrom/CDAccess_Image.cpp:423:26: note: active_track is overwritten mednafen/cdrom/CDAccess_Image.cpp:754:10: style: The scope of the variable 'LastIndex' can be reduced. [variableScope] mednafen/cdrom/CDAccess_Image.cpp:854:7: error: Dangerous usage of c_str(). The value returned by c_str() is invalid after this call. [stlcstr] mednafen/psx/frontio.cpp:897:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] mednafen/psx/gpu_common.cpp:6:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BlendMode [valueFlowBailoutIncompleteVar] mednafen/psx/gpu_common.cpp:81:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DitherLUT [valueFlowBailoutIncompleteVar] mednafen/psx/gpu_common.cpp:91:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TexMode_TA [valueFlowBailoutIncompleteVar] mednafen/psx/gpu_common.cpp:140:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tww [valueFlowBailoutIncompleteVar] mednafen/psx/gpu_common.cpp:197:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TexWindowXLUT [valueFlowBailoutIncompleteVar] mednafen/psx/gpu_line.cpp:40:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable goraud [valueFlowBailoutIncompleteVar] mednafen/psx/gpu_line.cpp:68:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable goraud [valueFlowBailoutIncompleteVar] mednafen/psx/gpu_line.cpp:94:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable goraud [valueFlowBailoutIncompleteVar] mednafen/psx/gpu_line.cpp:111:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] mednafen/psx/gpu_line.cpp:186:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DrawTimeAvail [valueFlowBailoutIncompleteVar] mednafen/psx/gpu_polygon.cpp:100:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable textured [valueFlowBailoutIncompleteVar] mednafen/psx/gpu_polygon.cpp:117:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable textured [valueFlowBailoutIncompleteVar] mednafen/psx/gpu_polygon.cpp:141:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ClipX0 [valueFlowBailoutIncompleteVar] mednafen/psx/gpu_polygon.cpp:236:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable y [valueFlowBailoutIncompleteVar] mednafen/psx/gpu_polygon.cpp:427:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable numvertices [valueFlowBailoutIncompleteVar] mednafen/psx/gpu_sprite.cpp:23:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable textured [valueFlowBailoutIncompleteVar] mednafen/psx/gpu_sprite.cpp:130:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DrawTimeAvail [valueFlowBailoutIncompleteVar] mednafen/psx/input/dualanalog.cpp:42:25: warning: Member variable 'InputDevice_DualAnalog::axes' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/input/dualanalog.cpp:12:20: style: Virtual function 'Power' is called from constructor 'InputDevice_DualAnalog(bool joystick_mode_)' at line 44. Dynamic binding is not used. [virtualCallInConstructor] mednafen/psx/input/dualanalog.cpp:44:4: note: Calling Power mednafen/psx/input/dualanalog.cpp:12:20: note: Power is a virtual function mednafen/psx/input/dualanalog.cpp:9:7: style: Class 'InputDevice_DualAnalog' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] mednafen/psx/input/dualanalog.cpp:10:16: style: The destructor '~InputDevice_DualAnalog' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:11:16: note: Virtual destructor in base class mednafen/psx/input/dualanalog.cpp:10:16: note: Destructor in derived class mednafen/psx/input/dualanalog.cpp:12:20: style: The function 'Power' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:13:20: note: Virtual function in base class mednafen/psx/input/dualanalog.cpp:12:20: note: Function in derived class mednafen/psx/input/dualanalog.cpp:13:19: style: The function 'StateAction' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:15:19: note: Virtual function in base class mednafen/psx/input/dualanalog.cpp:13:19: note: Function in derived class mednafen/psx/input/dualanalog.cpp:14:20: style: The function 'UpdateInput' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:14:20: note: Virtual function in base class mednafen/psx/input/dualanalog.cpp:14:20: note: Function in derived class mednafen/psx/input/dualanalog.cpp:19:20: style: The function 'SetDTR' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:29:20: note: Virtual function in base class mednafen/psx/input/dualanalog.cpp:19:20: note: Function in derived class mednafen/psx/input/dualanalog.cpp:20:20: style: The function 'GetDSR' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:30:20: note: Virtual function in base class mednafen/psx/input/dualanalog.cpp:20:20: note: Function in derived class mednafen/psx/input/dualanalog.cpp:21:20: style: The function 'Clock' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:32:20: note: Virtual function in base class mednafen/psx/input/dualanalog.cpp:21:20: note: Function in derived class mednafen/psx/input/dualanalog.cpp:109:16: style: C-style pointer casting [cstyleCast] mednafen/psx/input/dualanalog.cpp:124:37: style: C-style pointer casting [cstyleCast] mednafen/psx/input/dualanalog.cpp:124:109: style: C-style pointer casting [cstyleCast] mednafen/psx/input/dualanalog.cpp:118:27: style: Variable 'aba' is assigned a value that is never used. [unreadVariable] mednafen/psx/input/dualanalog.cpp:118:23: style: Variable 'aba' is assigned a value that is never used. [unreadVariable] mednafen/masmem.h:121:15: warning: Either the condition 'A<0x00800000' is redundant or the array 'data8[2097152]' is accessed at index 2097153, which is out of bounds. [arrayIndexOutOfBoundsCond] libretro.cpp:426:9: note: Assuming that condition 'A<0x00800000' is not redundant libretro.cpp:442:35: note: Calling function 'ReadU24', 1st argument 'A&0x1FFFFF' value is 2097151 mednafen/masmem.h:146:73: note: Calling function 'ReadU8', 1st argument 'address+2' value is 2097153 mednafen/masmem.h:121:15: note: Array index out of bounds mednafen/masmem.h:155:8: warning: Either the condition 'A<0x00800000' is redundant or the array 'data8[2097152]' is accessed at index 2097153, which is out of bounds. [arrayIndexOutOfBoundsCond] libretro.cpp:426:9: note: Assuming that condition 'A<0x00800000' is not redundant libretro.cpp:440:32: note: Calling function 'WriteU24', 1st argument 'A&0x1FFFFF' value is 2097151 mednafen/masmem.h:180:20: note: Calling function 'WriteU8', 1st argument 'address+2' value is 2097153 mednafen/masmem.h:155:8: note: Array index out of bounds mednafen/masmem.h:121:15: warning: Either the condition 'A<=0x1FC7FFFF' is redundant or the array 'data8[524288]' is accessed at index 524289, which is out of bounds. [arrayIndexOutOfBoundsCond] libretro.cpp:455:28: note: Assuming that condition 'A<=0x1FC7FFFF' is not redundant libretro.cpp:460:36: note: Calling function 'ReadU24', 1st argument 'A&0x7FFFF' value is 524287 mednafen/masmem.h:146:73: note: Calling function 'ReadU8', 1st argument 'address+2' value is 524289 mednafen/masmem.h:121:15: note: Array index out of bounds mednafen/masmem.h:121:15: warning: Either the condition '(A&0x7FFFFF)<65536' is redundant or the array 'data8[65536]' is accessed at index 65537, which is out of bounds. [arrayIndexOutOfBoundsCond] libretro.cpp:695:31: note: Assuming that condition '(A&0x7FFFFF)<65536' is not redundant libretro.cpp:698:41: note: Calling function 'ReadU24', 1st argument 'A&0x7FFFFF' value is 65535 mednafen/masmem.h:146:73: note: Calling function 'ReadU8', 1st argument 'address+2' value is 65537 mednafen/masmem.h:121:15: note: Array index out of bounds libretro.cpp:3318:4: portability: Using memset() on struct which contains a floating point number. [memsetClassFloat] mednafen/masmem.h:119:15: style:inconclusive: Technically the member function 'MultiAccessSizeMem < 524288 , uint32_t , false >::ReadU8' can be const. [functionConst] mednafen/masmem.h:119:15: style:inconclusive: Technically the member function 'MultiAccessSizeMem < 65536 , uint32_t , false >::ReadU8' can be const. [functionConst] libretro.cpp:1437:33: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] libretro.cpp:1445:33: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] libretro.cpp:1451:33: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] libretro.cpp:1462:33: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] libretro.cpp:1464:57: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] libretro.cpp:1468:33: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] libretro.cpp:1474:33: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] libretro.cpp:1495:34: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] libretro.cpp:1511:36: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] libretro.cpp:1517:36: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] libretro.cpp:1533:33: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] libretro.cpp:490:40: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] libretro.cpp:2306:11: style: Condition 'dir' is always true [knownConditionTrueFalse] libretro.cpp:1363:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libretro.cpp:998:15: style: C-style pointer casting [cstyleCast] libretro.cpp:1082:27: style: C-style pointer casting [cstyleCast] libretro.cpp:1167:59: style: C-style pointer casting [cstyleCast] libretro.cpp:1169:23: style: C-style pointer casting [cstyleCast] libretro.cpp:1171:26: style: C-style pointer casting [cstyleCast] libretro.cpp:1177:31: style: C-style pointer casting [cstyleCast] libretro.cpp:1183:31: style: C-style pointer casting [cstyleCast] libretro.cpp:1189:31: style: C-style pointer casting [cstyleCast] libretro.cpp:2698:28: style: C-style pointer casting [cstyleCast] libretro.cpp:2700:24: style: C-style pointer casting [cstyleCast] libretro.cpp:2705:25: style: C-style pointer casting [cstyleCast] libretro.cpp:3140:31: style: C-style pointer casting [cstyleCast] libretro.cpp:3237:24: style: C-style pointer casting [cstyleCast] libretro.cpp:3422:40: style: C-style pointer casting [cstyleCast] libretro.cpp:3423:54: style: C-style pointer casting [cstyleCast] libretro.cpp:3473:18: style: C-style pointer casting [cstyleCast] libretro.cpp:3491:14: style: C-style pointer casting [cstyleCast] libretro.cpp:3572:23: style: C-style pointer casting [cstyleCast] libretro.cpp:2495:10: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] libretro.cpp:2500:10: note: Found duplicate branches for 'if' and 'else'. libretro.cpp:2495:10: note: Found duplicate branches for 'if' and 'else'. libretro.cpp:1442:7: style: Variable 'po' is reassigned a value before the old one has been used. [redundantAssignment] libretro.cpp:1440:7: note: po is assigned libretro.cpp:1442:7: note: po is overwritten libretro.cpp:964:241: style:inconclusive: Function 'PSX_GPULineHook' argument 9 names different: declaration 'pix_clock_divide' definition 'pix_clock_divider'. [funcArgNamesDifferent] mednafen/psx/psx.h:83:241: note: Function 'PSX_GPULineHook' argument 9 names different: declaration 'pix_clock_divide' definition 'pix_clock_divider'. libretro.cpp:964:241: note: Function 'PSX_GPULineHook' argument 9 names different: declaration 'pix_clock_divide' definition 'pix_clock_divider'. libretro.cpp:2731:52: style:inconclusive: Function 'retro_load_game' argument 1 names different: declaration 'game' definition 'info'. [funcArgNamesDifferent] libretro.h:1903:52: note: Function 'retro_load_game' argument 1 names different: declaration 'game' definition 'info'. libretro.cpp:2731:52: note: Function 'retro_load_game' argument 1 names different: declaration 'game' definition 'info'. libretro.cpp:3351:48: style:inconclusive: Function 'retro_set_controller_port_device' argument 1 names different: declaration 'port' definition 'in_port'. [funcArgNamesDifferent] libretro.h:1871:48: note: Function 'retro_set_controller_port_device' argument 1 names different: declaration 'port' definition 'in_port'. libretro.cpp:3351:48: note: Function 'retro_set_controller_port_device' argument 1 names different: declaration 'port' definition 'in_port'. libretro.cpp:3497:38: style:inconclusive: Function 'retro_get_memory_data' argument 1 names different: declaration 'id' definition 'type'. [funcArgNamesDifferent] libretro.h:1919:38: note: Function 'retro_get_memory_data' argument 1 names different: declaration 'id' definition 'type'. libretro.cpp:3497:38: note: Function 'retro_get_memory_data' argument 1 names different: declaration 'id' definition 'type'. libretro.cpp:3513:39: style:inconclusive: Function 'retro_get_memory_size' argument 1 names different: declaration 'id' definition 'type'. [funcArgNamesDifferent] libretro.h:1920:39: note: Function 'retro_get_memory_size' argument 1 names different: declaration 'id' definition 'type'. libretro.cpp:3513:39: note: Function 'retro_get_memory_size' argument 1 names different: declaration 'id' definition 'type'. libretro.cpp:1277:17: style: Local variable 'i' shadows outer variable [shadowVariable] libretro.cpp:1231:21: note: Shadowed declaration libretro.cpp:1277:17: note: Shadow variable libretro.cpp:969:51: style: Parameter 'fp' can be declared as pointer to const. However it seems that 'TestMagic' is a callback function, if 'fp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libretro.cpp:2055:2: note: You might need to cast the function pointer here libretro.cpp:969:51: note: Parameter 'fp' can be declared as pointer to const libretro.cpp:3570:39: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] libretro.cpp:212:13: style: struct member 'Anonymous32::PIO_Base' is never used. [unusedStructMember] libretro.cpp:213:13: style: struct member 'Anonymous32::Unknown0' is never used. [unusedStructMember] libretro.cpp:214:13: style: struct member 'Anonymous32::Unknown1' is never used. [unusedStructMember] libretro.cpp:215:13: style: struct member 'Anonymous32::Unknown2' is never used. [unusedStructMember] libretro.cpp:217:13: style: struct member 'Anonymous32::BIOS_Mapping' is never used. [unusedStructMember] libretro.cpp:218:13: style: struct member 'Anonymous32::SPU_Delay' is never used. [unusedStructMember] libretro.cpp:219:13: style: struct member 'Anonymous32::CDC_Delay' is never used. [unusedStructMember] libretro.cpp:220:13: style: struct member 'Anonymous32::Unknown4' is never used. [unusedStructMember] libretro.cpp:221:13: style: struct member 'Anonymous32::Unknown5' is never used. [unusedStructMember] libretro.cpp:1536:7: style: Variable 'po' is assigned a value that is never used. [unreadVariable] libretro.cpp:3499:13: style: Unused variable: data [unusedVariable] mednafen/psx/frontio.cpp:335:10: warning: Member variable 'FrontIO::ClockDivider' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/frontio.cpp:335:10: warning: Member variable 'FrontIO::ReceivePending' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/frontio.cpp:335:10: warning: Member variable 'FrontIO::TransmitPending' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/frontio.cpp:335:10: warning: Member variable 'FrontIO::ReceiveInProgress' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/frontio.cpp:335:10: warning: Member variable 'FrontIO::TransmitInProgress' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/frontio.cpp:335:10: warning: Member variable 'FrontIO::ReceiveBufferAvail' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/frontio.cpp:335:10: warning: Member variable 'FrontIO::ReceiveBuffer' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/frontio.cpp:335:10: warning: Member variable 'FrontIO::TransmitBuffer' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/frontio.cpp:335:10: warning: Member variable 'FrontIO::ReceiveBitCounter' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/frontio.cpp:335:10: warning: Member variable 'FrontIO::TransmitBitCounter' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/frontio.cpp:335:10: warning: Member variable 'FrontIO::Mode' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/frontio.cpp:335:10: warning: Member variable 'FrontIO::Control' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/frontio.cpp:335:10: warning: Member variable 'FrontIO::Baudrate' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/frontio.cpp:335:10: warning: Member variable 'FrontIO::istatus' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/frontio.cpp:335:10: warning: Member variable 'FrontIO::irq10_pulse_ts' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/frontio.cpp:335:10: warning: Member variable 'FrontIO::dsr_pulse_delay' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/frontio.cpp:335:10: warning: Member variable 'FrontIO::dsr_active_until_ts' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/frontio.cpp:335:10: warning: Member variable 'FrontIO::lastts' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/frontio.cpp:335:10: warning: Member variable 'FrontIO::amct_enabled' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/frontio.cpp:397:18: style:inconclusive: Technically the member function 'FrontIO::CalcNextEventTS' can be const. [functionConst] mednafen/psx/frontio.h:61:15: note: Technically the member function 'FrontIO::CalcNextEventTS' can be const. mednafen/psx/frontio.cpp:397:18: note: Technically the member function 'FrontIO::CalcNextEventTS' can be const. mednafen/psx/frontio.cpp:341:4: warning: Class 'FrontIO' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] mednafen/psx/frontio.cpp:341:4: warning: Class 'FrontIO' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] mednafen/psx/input/multitap.h:9:16: style: The destructor '~InputDevice_Multitap' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:11:16: note: Virtual destructor in base class mednafen/psx/input/multitap.h:9:16: note: Destructor in derived class mednafen/psx/input/multitap.h:10:20: style: The function 'Power' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:13:20: note: Virtual function in base class mednafen/psx/input/multitap.h:10:20: note: Function in derived class mednafen/psx/input/multitap.h:11:19: style: The function 'StateAction' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:15:19: note: Virtual function in base class mednafen/psx/input/multitap.h:11:19: note: Function in derived class mednafen/psx/input/multitap.h:18:20: style: The function 'SetDTR' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:29:20: note: Virtual function in base class mednafen/psx/input/multitap.h:18:20: note: Function in derived class mednafen/psx/input/multitap.h:19:20: style: The function 'GetDSR' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:30:20: note: Virtual function in base class mednafen/psx/input/multitap.h:19:20: note: Function in derived class mednafen/psx/input/multitap.h:20:20: style: The function 'Clock' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:32:20: note: Virtual function in base class mednafen/psx/input/multitap.h:20:20: note: Function in derived class mednafen/psx/frontio.cpp:338:4: portability:inconclusive: Array 'emulate_memcards' might be filled incompletely. Did you forget to multiply the size given to 'memcpy()' with 'sizeof(*emulate_memcards)'? [incompleteArrayFill] mednafen/psx/frontio.cpp:339:4: portability:inconclusive: Array 'emulate_multitap' might be filled incompletely. Did you forget to multiply the size given to 'memcpy()' with 'sizeof(*emulate_multitap)'? [incompleteArrayFill] mednafen/psx/frontio.cpp:201:48: style:inconclusive: Function 'GPULineHook' argument 1 names different: declaration 'line_timestamp' definition 'timestamp'. [funcArgNamesDifferent] mednafen/psx/frontio.h:19:49: note: Function 'GPULineHook' argument 1 names different: declaration 'line_timestamp' definition 'timestamp'. mednafen/psx/frontio.cpp:201:48: note: Function 'GPULineHook' argument 1 names different: declaration 'line_timestamp' definition 'timestamp'. mednafen/psx/frontio.cpp:254:31: style: Parameter 'emulate_multitap' can be declared as const array [constParameter] mednafen/psx/frontio.cpp:265:38: style: Parameter 'emulate_multitap' can be declared as const array [constParameter] mednafen/psx/frontio.cpp:335:23: style: Parameter 'emulate_memcards_' can be declared as const array [constParameter] mednafen/psx/frontio.cpp:335:50: style: Parameter 'emulate_multitap_' can be declared as const array [constParameter] mednafen/psx/input/dualshock.cpp:122:24: warning: Member variable 'InputDevice_DualShock::cur_ana_button_state' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/input/dualshock.cpp:122:24: warning: Member variable 'InputDevice_DualShock::analog_mode' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/input/dualshock.cpp:122:24: warning: Member variable 'InputDevice_DualShock::axes' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/input/dualshock.cpp:124:4: performance: Variable 'gp_name' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] mednafen/psx/input/dualshock.cpp:59:20: style: Virtual function 'Power' is called from constructor 'InputDevice_DualShock(const std::string&arg_name)' at line 125. Dynamic binding is not used. [virtualCallInConstructor] mednafen/psx/input/dualshock.cpp:125:4: note: Calling Power mednafen/psx/input/dualshock.cpp:59:20: note: Power is a virtual function mednafen/psx/input/dualshock.cpp:56:7: style: Class 'InputDevice_DualShock' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] mednafen/psx/input/dualshock.cpp:57:16: style: The destructor '~InputDevice_DualShock' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:11:16: note: Virtual destructor in base class mednafen/psx/input/dualshock.cpp:57:16: note: Destructor in derived class mednafen/psx/input/dualshock.cpp:59:20: style: The function 'Power' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:13:20: note: Virtual function in base class mednafen/psx/input/dualshock.cpp:59:20: note: Function in derived class mednafen/psx/input/dualshock.cpp:60:19: style: The function 'StateAction' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:15:19: note: Virtual function in base class mednafen/psx/input/dualshock.cpp:60:19: note: Function in derived class mednafen/psx/input/dualshock.cpp:61:20: style: The function 'Update' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:21:20: note: Virtual function in base class mednafen/psx/input/dualshock.cpp:61:20: note: Function in derived class mednafen/psx/input/dualshock.cpp:62:20: style: The function 'ResetTS' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:22:20: note: Virtual function in base class mednafen/psx/input/dualshock.cpp:62:20: note: Function in derived class mednafen/psx/input/dualshock.cpp:63:20: style: The function 'UpdateInput' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:14:20: note: Virtual function in base class mednafen/psx/input/dualshock.cpp:63:20: note: Function in derived class mednafen/psx/input/dualshock.cpp:65:20: style: The function 'SetAMCT' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:26:20: note: Virtual function in base class mednafen/psx/input/dualshock.cpp:65:20: note: Function in derived class mednafen/psx/input/dualshock.cpp:69:20: style: The function 'SetDTR' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:29:20: note: Virtual function in base class mednafen/psx/input/dualshock.cpp:69:20: note: Function in derived class mednafen/psx/input/dualshock.cpp:70:20: style: The function 'GetDSR' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:30:20: note: Virtual function in base class mednafen/psx/input/dualshock.cpp:70:20: note: Function in derived class mednafen/psx/input/dualshock.cpp:71:20: style: The function 'Clock' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:32:20: note: Virtual function in base class mednafen/psx/input/dualshock.cpp:71:20: note: Function in derived class mednafen/psx/input/dualshock.cpp:461:47: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] mednafen/psx/input/dualshock.cpp:521:47: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] mednafen/psx/input/dualshock.cpp:294:16: style: C-style pointer casting [cstyleCast] mednafen/psx/input/dualshock.cpp:312:37: style: C-style pointer casting [cstyleCast] mednafen/psx/input/dualshock.cpp:312:109: style: C-style pointer casting [cstyleCast] mednafen/psx/input/dualshock.cpp:122:65: style:inconclusive: Function 'InputDevice_DualShock' argument 1 names different: declaration 'arg_name' definition 'name'. [funcArgNamesDifferent] mednafen/psx/input/dualshock.cpp:56:48: note: Function 'InputDevice_DualShock' argument 1 names different: declaration 'arg_name' definition 'name'. mednafen/psx/input/dualshock.cpp:122:65: note: Function 'InputDevice_DualShock' argument 1 names different: declaration 'arg_name' definition 'name'. mednafen/psx/input/dualshock.cpp:295:17: style: Variable 'rumb_dp' can be declared as pointer to const [constVariablePointer] mednafen/psx/gte.cpp:221:65: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] mednafen/psx/gte.cpp:222:47: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] mednafen/psx/input/dualshock.cpp:295:25: style: Variable 'rumb_dp' is assigned a value that is never used. [unreadVariable] mednafen/psx/input/dualshock.cpp:305:27: style: Variable 'aba' is assigned a value that is never used. [unreadVariable] mednafen/psx/gte.cpp:1167:12: style: Variable 'IR_temp' can be declared as const array [constVariable] mednafen/psx/gte.cpp:346:69: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] mednafen/psx/gte.cpp:1681:18: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] mednafen/psx/gte.cpp:44:12: style: struct member 'gtematrix::dummy' is never used. [unusedStructMember] mednafen/psx/input/gamepad.cpp:12:20: style: Virtual function 'Power' is called from constructor 'InputDevice_Gamepad()' at line 42. Dynamic binding is not used. [virtualCallInConstructor] mednafen/psx/input/gamepad.cpp:42:4: note: Calling Power mednafen/psx/input/gamepad.cpp:12:20: note: Power is a virtual function mednafen/psx/input/gamepad.cpp:10:16: style: The destructor '~InputDevice_Gamepad' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:11:16: note: Virtual destructor in base class mednafen/psx/input/gamepad.cpp:10:16: note: Destructor in derived class mednafen/psx/input/gamepad.cpp:12:20: style: The function 'Power' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:13:20: note: Virtual function in base class mednafen/psx/input/gamepad.cpp:12:20: note: Function in derived class mednafen/psx/input/gamepad.cpp:13:19: style: The function 'StateAction' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:15:19: note: Virtual function in base class mednafen/psx/input/gamepad.cpp:13:19: note: Function in derived class mednafen/psx/input/gamepad.cpp:14:20: style: The function 'UpdateInput' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:14:20: note: Virtual function in base class mednafen/psx/input/gamepad.cpp:14:20: note: Function in derived class mednafen/psx/input/gamepad.cpp:19:20: style: The function 'SetDTR' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:29:20: note: Virtual function in base class mednafen/psx/input/gamepad.cpp:19:20: note: Function in derived class mednafen/psx/input/gamepad.cpp:20:20: style: The function 'GetDSR' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:30:20: note: Virtual function in base class mednafen/psx/input/gamepad.cpp:20:20: note: Function in derived class mednafen/psx/input/gamepad.cpp:21:20: style: The function 'Clock' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:32:20: note: Virtual function in base class mednafen/psx/input/gamepad.cpp:21:20: note: Function in derived class mednafen/psx/input/gamepad.cpp:107:16: style: C-style pointer casting [cstyleCast] mednafen/psx/input/gamepad.cpp:107:11: style: Variable 'd8' can be declared as pointer to const [constVariablePointer] mednafen/psx/input/justifier.cpp:29:20: style: Virtual function 'Power' is called from constructor 'InputDevice_Justifier()' at line 75. Dynamic binding is not used. [virtualCallInConstructor] mednafen/psx/input/justifier.cpp:75:4: note: Calling Power mednafen/psx/input/justifier.cpp:29:20: note: Power is a virtual function mednafen/psx/input/justifier.cpp:27:16: style: The destructor '~InputDevice_Justifier' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:11:16: note: Virtual destructor in base class mednafen/psx/input/justifier.cpp:27:16: note: Destructor in derived class mednafen/psx/input/justifier.cpp:29:20: style: The function 'Power' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:13:20: note: Virtual function in base class mednafen/psx/input/justifier.cpp:29:20: note: Function in derived class mednafen/psx/input/justifier.cpp:30:19: style: The function 'StateAction' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:15:19: note: Virtual function in base class mednafen/psx/input/justifier.cpp:30:19: note: Function in derived class mednafen/psx/input/justifier.cpp:31:20: style: The function 'UpdateInput' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:14:20: note: Virtual function in base class mednafen/psx/input/justifier.cpp:31:20: note: Function in derived class mednafen/psx/input/justifier.cpp:32:20: style: The function 'RequireNoFrameskip' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:17:20: note: Virtual function in base class mednafen/psx/input/justifier.cpp:32:20: note: Function in derived class mednafen/psx/input/justifier.cpp:33:23: style: The function 'GPULineHook' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:19:23: note: Virtual function in base class mednafen/psx/input/justifier.cpp:33:23: note: Function in derived class mednafen/psx/input/justifier.cpp:38:20: style: The function 'SetDTR' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:29:20: note: Virtual function in base class mednafen/psx/input/justifier.cpp:38:20: note: Function in derived class mednafen/psx/input/justifier.cpp:39:20: style: The function 'GetDSR' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:30:20: note: Virtual function in base class mednafen/psx/input/justifier.cpp:39:20: note: Function in derived class mednafen/psx/input/justifier.cpp:40:20: style: The function 'Clock' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:32:20: note: Virtual function in base class mednafen/psx/input/justifier.cpp:40:20: note: Function in derived class mednafen/psx/input/justifier.cpp:118:16: style: C-style pointer casting [cstyleCast] mednafen/psx/input/guncon.cpp:29:20: style: Virtual function 'Power' is called from constructor 'InputDevice_GunCon()' at line 73. Dynamic binding is not used. [virtualCallInConstructor] mednafen/psx/input/guncon.cpp:73:4: note: Calling Power mednafen/psx/input/guncon.cpp:29:20: note: Power is a virtual function mednafen/psx/input/guncon.cpp:27:16: style: The destructor '~InputDevice_GunCon' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:11:16: note: Virtual destructor in base class mednafen/psx/input/guncon.cpp:27:16: note: Destructor in derived class mednafen/psx/input/guncon.cpp:29:20: style: The function 'Power' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:13:20: note: Virtual function in base class mednafen/psx/input/guncon.cpp:29:20: note: Function in derived class mednafen/psx/input/guncon.cpp:30:19: style: The function 'StateAction' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:15:19: note: Virtual function in base class mednafen/psx/input/guncon.cpp:30:19: note: Function in derived class mednafen/psx/input/guncon.cpp:31:20: style: The function 'UpdateInput' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:14:20: note: Virtual function in base class mednafen/psx/input/guncon.cpp:31:20: note: Function in derived class mednafen/psx/input/guncon.cpp:32:20: style: The function 'RequireNoFrameskip' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:17:20: note: Virtual function in base class mednafen/psx/input/guncon.cpp:32:20: note: Function in derived class mednafen/psx/input/guncon.cpp:33:23: style: The function 'GPULineHook' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:19:23: note: Virtual function in base class mednafen/psx/input/guncon.cpp:33:23: note: Function in derived class mednafen/psx/input/guncon.cpp:38:20: style: The function 'SetDTR' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:29:20: note: Virtual function in base class mednafen/psx/input/guncon.cpp:38:20: note: Function in derived class mednafen/psx/input/guncon.cpp:39:20: style: The function 'GetDSR' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:30:20: note: Virtual function in base class mednafen/psx/input/guncon.cpp:39:20: note: Function in derived class mednafen/psx/input/guncon.cpp:40:20: style: The function 'Clock' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:32:20: note: Virtual function in base class mednafen/psx/input/guncon.cpp:40:20: note: Function in derived class mednafen/psx/input/guncon.cpp:162:16: style: C-style pointer casting [cstyleCast] mednafen/psx/input/mouse.cpp:12:20: style: Virtual function 'Power' is called from constructor 'InputDevice_Mouse()' at line 50. Dynamic binding is not used. [virtualCallInConstructor] mednafen/psx/input/mouse.cpp:50:4: note: Calling Power mednafen/psx/input/mouse.cpp:12:20: note: Power is a virtual function mednafen/psx/input/mouse.cpp:10:16: style: The destructor '~InputDevice_Mouse' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:11:16: note: Virtual destructor in base class mednafen/psx/input/mouse.cpp:10:16: note: Destructor in derived class mednafen/psx/input/mouse.cpp:12:20: style: The function 'Power' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:13:20: note: Virtual function in base class mednafen/psx/input/mouse.cpp:12:20: note: Function in derived class mednafen/psx/input/mouse.cpp:13:19: style: The function 'StateAction' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:15:19: note: Virtual function in base class mednafen/psx/input/mouse.cpp:13:19: note: Function in derived class mednafen/psx/input/mouse.cpp:14:20: style: The function 'UpdateInput' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:14:20: note: Virtual function in base class mednafen/psx/input/mouse.cpp:14:20: note: Function in derived class mednafen/psx/input/mouse.cpp:16:20: style: The function 'Update' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:21:20: note: Virtual function in base class mednafen/psx/input/mouse.cpp:16:20: note: Function in derived class mednafen/psx/input/mouse.cpp:17:20: style: The function 'ResetTS' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:22:20: note: Virtual function in base class mednafen/psx/input/mouse.cpp:17:20: note: Function in derived class mednafen/psx/input/mouse.cpp:22:20: style: The function 'SetDTR' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:29:20: note: Virtual function in base class mednafen/psx/input/mouse.cpp:22:20: note: Function in derived class mednafen/psx/input/mouse.cpp:23:20: style: The function 'Clock' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:32:20: note: Virtual function in base class mednafen/psx/input/mouse.cpp:23:20: note: Function in derived class mednafen/psx/input/mouse.cpp:147:40: style: C-style pointer casting [cstyleCast] mednafen/psx/input/mouse.cpp:148:40: style: C-style pointer casting [cstyleCast] mednafen/psx/input/mouse.cpp:156:16: style: C-style pointer casting [cstyleCast] mednafen/psx/input/mouse.cpp:157:25: style: C-style pointer casting [cstyleCast] mednafen/psx/input/negcon.cpp:29:20: style: Virtual function 'Power' is called from constructor 'InputDevice_neGcon()' at line 60. Dynamic binding is not used. [virtualCallInConstructor] mednafen/psx/input/negcon.cpp:60:4: note: Calling Power mednafen/psx/input/negcon.cpp:29:20: note: Power is a virtual function mednafen/psx/input/negcon.cpp:27:16: style: The destructor '~InputDevice_neGcon' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:11:16: note: Virtual destructor in base class mednafen/psx/input/negcon.cpp:27:16: note: Destructor in derived class mednafen/psx/input/negcon.cpp:29:20: style: The function 'Power' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:13:20: note: Virtual function in base class mednafen/psx/input/negcon.cpp:29:20: note: Function in derived class mednafen/psx/input/negcon.cpp:30:20: style: The function 'UpdateInput' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:14:20: note: Virtual function in base class mednafen/psx/input/negcon.cpp:30:20: note: Function in derived class mednafen/psx/input/negcon.cpp:35:20: style: The function 'SetDTR' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:29:20: note: Virtual function in base class mednafen/psx/input/negcon.cpp:35:20: note: Function in derived class mednafen/psx/input/negcon.cpp:36:20: style: The function 'GetDSR' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:30:20: note: Virtual function in base class mednafen/psx/input/negcon.cpp:36:20: note: Function in derived class mednafen/psx/input/negcon.cpp:37:20: style: The function 'Clock' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:32:20: note: Virtual function in base class mednafen/psx/input/negcon.cpp:37:20: note: Function in derived class mednafen/psx/input/negcon.cpp:94:16: style: C-style pointer casting [cstyleCast] mednafen/psx/input/negcon.cpp:99:35: style: C-style pointer casting [cstyleCast] mednafen/psx/input/negcon.cpp:99:84: style: C-style pointer casting [cstyleCast] mednafen/psx/input/negcon.cpp:101:34: style: C-style pointer casting [cstyleCast] mednafen/psx/input/negcon.cpp:102:34: style: C-style pointer casting [cstyleCast] mednafen/psx/input/negcon.cpp:103:34: style: C-style pointer casting [cstyleCast] mednafen/psx/input/negcon.cpp:94:11: style: Variable 'd8' can be declared as pointer to const [constVariablePointer] mednafen/psx/input/multitap.cpp:280:20: style:inconclusive: Boolean expression 'ret' is used in bitwise operation. [bitwiseOnBoolean] mednafen/psx/input/multitap.h:10:20: style: Virtual function 'Power' is called from constructor 'InputDevice_Multitap()' at line 99. Dynamic binding is not used. [virtualCallInConstructor] mednafen/psx/input/multitap.cpp:99:4: note: Calling Power mednafen/psx/input/multitap.h:10:20: note: Power is a virtual function mednafen/psx/input/multitap.cpp:270:34: style: Condition 'byte_counter>=0x03' is always true [knownConditionTrueFalse] mednafen/psx/input/multitap.cpp:268:34: note: Assuming that condition 'byte_counter==2' is not redundant mednafen/psx/input/multitap.cpp:270:34: note: Condition 'byte_counter>=0x03' is always true mednafen/psx/input/multitap.cpp:375:31: style: Condition 'byte_counter>=3' is always true [knownConditionTrueFalse] mednafen/psx/input/multitap.cpp:365:31: note: Assuming that condition 'byte_counter==2' is not redundant mednafen/psx/input/multitap.cpp:375:31: note: Condition 'byte_counter>=3' is always true mednafen/psx/irq.cpp:55:33: style:inconclusive: Function 'IRQ_Assert' argument 2 names different: declaration 'asserted' definition 'status'. [funcArgNamesDifferent] mednafen/psx/irq.h:28:33: note: Function 'IRQ_Assert' argument 2 names different: declaration 'asserted' definition 'status'. mednafen/psx/irq.cpp:55:33: note: Function 'IRQ_Assert' argument 2 names different: declaration 'asserted' definition 'status'. mednafen/psx/irq.cpp:122:52: style: Parameter 'special' can be declared as pointer to const [constParameterPointer] mednafen/psx/notes/tristep.cpp:19:19: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] mednafen/psx/notes/tristep.cpp:25:26: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] mednafen/psx/input/memcard.cpp:115:22: warning: Member variable 'InputDevice_Memcard::rw_buffer' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/input/memcard.cpp:115:22: warning: Member variable 'InputDevice_Memcard::write_xor' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/input/memcard.cpp:115:22: warning: Member variable 'InputDevice_Memcard::calced_xor' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/input/memcard.cpp:31:20: style: Virtual function 'Power' is called from constructor 'InputDevice_Memcard()' at line 117. Dynamic binding is not used. [virtualCallInConstructor] mednafen/psx/input/memcard.cpp:117:4: note: Calling Power mednafen/psx/input/memcard.cpp:31:20: note: Power is a virtual function mednafen/psx/input/memcard.cpp:29:16: style: The destructor '~InputDevice_Memcard' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:11:16: note: Virtual destructor in base class mednafen/psx/input/memcard.cpp:29:16: note: Destructor in derived class mednafen/psx/input/memcard.cpp:31:20: style: The function 'Power' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:13:20: note: Virtual function in base class mednafen/psx/input/memcard.cpp:31:20: note: Function in derived class mednafen/psx/input/memcard.cpp:32:19: style: The function 'StateAction' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:15:19: note: Virtual function in base class mednafen/psx/input/memcard.cpp:32:19: note: Function in derived class mednafen/psx/input/memcard.cpp:37:20: style: The function 'SetDTR' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:29:20: note: Virtual function in base class mednafen/psx/input/memcard.cpp:37:20: note: Function in derived class mednafen/psx/input/memcard.cpp:38:20: style: The function 'GetDSR' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:30:20: note: Virtual function in base class mednafen/psx/input/memcard.cpp:38:20: note: Function in derived class mednafen/psx/input/memcard.cpp:39:20: style: The function 'Clock' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:32:20: note: Virtual function in base class mednafen/psx/input/memcard.cpp:39:20: note: Function in derived class mednafen/psx/input/memcard.cpp:43:22: style: The function 'GetNVData' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:34:22: note: Virtual function in base class mednafen/psx/input/memcard.cpp:43:22: note: Function in derived class mednafen/psx/input/memcard.cpp:44:22: style: The function 'GetNVSize' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:35:24: note: Virtual function in base class mednafen/psx/input/memcard.cpp:44:22: note: Function in derived class mednafen/psx/input/memcard.cpp:45:20: style: The function 'ReadNV' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:36:20: note: Virtual function in base class mednafen/psx/input/memcard.cpp:45:20: note: Function in derived class mednafen/psx/input/memcard.cpp:46:20: style: The function 'WriteNV' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:37:20: note: Virtual function in base class mednafen/psx/input/memcard.cpp:46:20: note: Function in derived class mednafen/psx/input/memcard.cpp:48:22: style: The function 'GetNVDirtyCount' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:41:24: note: Virtual function in base class mednafen/psx/input/memcard.cpp:48:22: note: Function in derived class mednafen/psx/input/memcard.cpp:49:20: style: The function 'ResetNVDirtyCount' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] mednafen/psx/frontio.h:42:20: note: Virtual function in base class mednafen/psx/input/memcard.cpp:49:20: note: Function in derived class mednafen/settings.cpp:50:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mednafen/settings.cpp:66:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mednafen/settings.cpp:75:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mednafen/settings.cpp:120:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mednafen/settings.cpp:153:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mednafen/tremor/codebook.c:234:27: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] mednafen/tremor/codebook.c:235:39: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] mednafen/tremor/floor0.c:148:36: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] mednafen/tremor/mapping0.c:188:43: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] mednafen/tremor/mapping0.c:189:29: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] mednafen/tremor/mapping0.c:191:27: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] mednafen/tremor/mapping0.c:192:29: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] mednafen/tremor/info.c:60:27: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] mednafen/tremor/info.c:80:27: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] mednafen/tremor/res012.c:221:30: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] mednafen/tremor/sharedbook.c:343:43: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] mednafen/tremor/sharedbook.c:354:22: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] mednafen/psx/timer.cpp:472:54: style: Parameter 'special' can be declared as pointer to const [constParameterPointer] mednafen/tremor/sharedbook.c:418:14: style: Condition 'hival>0x7fff' is always false [knownConditionTrueFalse] mednafen/tremor/sharedbook.c:408:16: note: Assuming that condition 'hi0x7fff' is always false mednafen/trio/trio.c:1825:22: style: Condition 'varsize<=(int)sizeof(long long)' is always false [knownConditionTrueFalse] mednafen/trio/trio.c:1822:22: note: Assuming that condition 'varsize<=(int)sizeof(long)' is not redundant mednafen/trio/trio.c:1825:22: note: Condition 'varsize<=(int)sizeof(long long)' is always false mednafen/tremor/floor0.c:315:3: warning: If memory allocation fails, then there is a possible null pointer dereference: info [nullPointerOutOfMemory] mednafen/tremor/floor0.c:314:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:314:28: note: Assignment 'info=(struct vorbis_info_floor0*)malloc(sizeof(*info))', assigned value is 0 mednafen/tremor/floor0.c:315:3: note: Null pointer dereference mednafen/tremor/floor0.c:316:3: warning: If memory allocation fails, then there is a possible null pointer dereference: info [nullPointerOutOfMemory] mednafen/tremor/floor0.c:314:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:314:28: note: Assignment 'info=(struct vorbis_info_floor0*)malloc(sizeof(*info))', assigned value is 0 mednafen/tremor/floor0.c:316:3: note: Null pointer dereference mednafen/tremor/floor0.c:317:3: warning: If memory allocation fails, then there is a possible null pointer dereference: info [nullPointerOutOfMemory] mednafen/tremor/floor0.c:314:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:314:28: note: Assignment 'info=(struct vorbis_info_floor0*)malloc(sizeof(*info))', assigned value is 0 mednafen/tremor/floor0.c:317:3: note: Null pointer dereference mednafen/tremor/floor0.c:318:3: warning: If memory allocation fails, then there is a possible null pointer dereference: info [nullPointerOutOfMemory] mednafen/tremor/floor0.c:314:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:314:28: note: Assignment 'info=(struct vorbis_info_floor0*)malloc(sizeof(*info))', assigned value is 0 mednafen/tremor/floor0.c:318:3: note: Null pointer dereference mednafen/tremor/floor0.c:319:3: warning: If memory allocation fails, then there is a possible null pointer dereference: info [nullPointerOutOfMemory] mednafen/tremor/floor0.c:314:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:314:28: note: Assignment 'info=(struct vorbis_info_floor0*)malloc(sizeof(*info))', assigned value is 0 mednafen/tremor/floor0.c:319:3: note: Null pointer dereference mednafen/tremor/floor0.c:320:3: warning: If memory allocation fails, then there is a possible null pointer dereference: info [nullPointerOutOfMemory] mednafen/tremor/floor0.c:314:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:314:28: note: Assignment 'info=(struct vorbis_info_floor0*)malloc(sizeof(*info))', assigned value is 0 mednafen/tremor/floor0.c:320:3: note: Null pointer dereference mednafen/tremor/floor0.c:322:6: warning: If memory allocation fails, then there is a possible null pointer dereference: info [nullPointerOutOfMemory] mednafen/tremor/floor0.c:314:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:314:28: note: Assignment 'info=(struct vorbis_info_floor0*)malloc(sizeof(*info))', assigned value is 0 mednafen/tremor/floor0.c:322:6: note: Null pointer dereference mednafen/tremor/floor0.c:355:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor0.c:354:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:354:28: note: Assignment 'look=(struct vorbis_look_floor0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor0.c:355:3: note: Null pointer dereference mednafen/tremor/floor0.c:356:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor0.c:354:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:354:28: note: Assignment 'look=(struct vorbis_look_floor0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor0.c:356:3: note: Null pointer dereference mednafen/tremor/floor0.c:357:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor0.c:354:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:354:28: note: Assignment 'look=(struct vorbis_look_floor0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor0.c:357:3: note: Null pointer dereference mednafen/tremor/floor0.c:358:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor0.c:354:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:354:28: note: Assignment 'look=(struct vorbis_look_floor0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor0.c:358:3: note: Null pointer dereference mednafen/tremor/floor0.c:366:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor0.c:354:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:354:28: note: Assignment 'look=(struct vorbis_look_floor0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor0.c:366:3: note: Null pointer dereference mednafen/tremor/floor0.c:366:39: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor0.c:354:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:354:28: note: Assignment 'look=(struct vorbis_look_floor0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor0.c:366:39: note: Null pointer dereference mednafen/tremor/floor0.c:367:13: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor0.c:354:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:354:28: note: Assignment 'look=(struct vorbis_look_floor0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor0.c:367:13: note: Null pointer dereference mednafen/tremor/floor0.c:369:14: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor0.c:354:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:354:28: note: Assignment 'look=(struct vorbis_look_floor0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor0.c:369:14: note: Null pointer dereference mednafen/tremor/floor0.c:370:31: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor0.c:354:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:354:28: note: Assignment 'look=(struct vorbis_look_floor0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor0.c:370:31: note: Null pointer dereference mednafen/tremor/floor0.c:372:13: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor0.c:354:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:354:28: note: Assignment 'look=(struct vorbis_look_floor0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor0.c:372:13: note: Null pointer dereference mednafen/tremor/floor0.c:373:5: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor0.c:354:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:354:28: note: Assignment 'look=(struct vorbis_look_floor0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor0.c:373:5: note: Null pointer dereference mednafen/tremor/floor0.c:375:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor0.c:354:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:354:28: note: Assignment 'look=(struct vorbis_look_floor0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor0.c:375:3: note: Null pointer dereference mednafen/tremor/floor0.c:377:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor0.c:354:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:354:28: note: Assignment 'look=(struct vorbis_look_floor0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor0.c:377:3: note: Null pointer dereference mednafen/tremor/floor0.c:377:45: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor0.c:354:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:354:28: note: Assignment 'look=(struct vorbis_look_floor0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor0.c:377:45: note: Null pointer dereference mednafen/tremor/floor0.c:378:13: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor0.c:354:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:354:28: note: Assignment 'look=(struct vorbis_look_floor0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor0.c:378:13: note: Null pointer dereference mednafen/tremor/floor0.c:379:5: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor0.c:354:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:354:28: note: Assignment 'look=(struct vorbis_look_floor0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor0.c:379:5: note: Null pointer dereference mednafen/tremor/floor0.c:379:51: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor0.c:354:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:354:28: note: Assignment 'look=(struct vorbis_look_floor0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor0.c:379:51: note: Null pointer dereference mednafen/tremor/floor1.c:73:3: warning: If memory allocation fails, then there is a possible null pointer dereference: info [nullPointerOutOfMemory] mednafen/tremor/floor1.c:71:61: note: Assuming allocation function fails mednafen/tremor/floor1.c:71:28: note: Assignment 'info=(struct vorbis_info_floor1*)calloc(1,sizeof(*info))', assigned value is 0 mednafen/tremor/floor1.c:73:3: note: Null pointer dereference mednafen/tremor/floor1.c:74:13: warning: If memory allocation fails, then there is a possible null pointer dereference: info [nullPointerOutOfMemory] mednafen/tremor/floor1.c:71:61: note: Assuming allocation function fails mednafen/tremor/floor1.c:71:28: note: Assignment 'info=(struct vorbis_info_floor1*)calloc(1,sizeof(*info))', assigned value is 0 mednafen/tremor/floor1.c:74:13: note: Null pointer dereference mednafen/tremor/floor1.c:75:5: warning: If memory allocation fails, then there is a possible null pointer dereference: info [nullPointerOutOfMemory] mednafen/tremor/floor1.c:71:61: note: Assuming allocation function fails mednafen/tremor/floor1.c:71:28: note: Assignment 'info=(struct vorbis_info_floor1*)calloc(1,sizeof(*info))', assigned value is 0 mednafen/tremor/floor1.c:75:5: note: Null pointer dereference mednafen/tremor/floor1.c:76:8: warning: If memory allocation fails, then there is a possible null pointer dereference: info [nullPointerOutOfMemory] mednafen/tremor/floor1.c:71:61: note: Assuming allocation function fails mednafen/tremor/floor1.c:71:28: note: Assignment 'info=(struct vorbis_info_floor1*)calloc(1,sizeof(*info))', assigned value is 0 mednafen/tremor/floor1.c:76:8: note: Null pointer dereference mednafen/tremor/floor1.c:139:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor1.c:136:61: note: Assuming allocation function fails mednafen/tremor/floor1.c:136:28: note: Assignment 'look=(struct vorbis_look_floor1*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor1.c:139:3: note: Null pointer dereference mednafen/tremor/floor1.c:140:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor1.c:136:61: note: Assuming allocation function fails mednafen/tremor/floor1.c:136:28: note: Assignment 'look=(struct vorbis_look_floor1*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor1.c:140:3: note: Null pointer dereference mednafen/tremor/floor1.c:151:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor1.c:136:61: note: Assuming allocation function fails mednafen/tremor/floor1.c:136:28: note: Assignment 'look=(struct vorbis_look_floor1*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor1.c:151:3: note: Null pointer dereference mednafen/tremor/floor1.c:158:19: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor1.c:136:61: note: Assuming allocation function fails mednafen/tremor/floor1.c:136:28: note: Assignment 'look=(struct vorbis_look_floor1*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor1.c:158:19: note: Null pointer dereference mednafen/tremor/mapping0.c:90:30: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/mapping0.c:89:65: note: Assuming allocation function fails mednafen/tremor/mapping0.c:89:30: note: Assignment 'look=(struct vorbis_look_mapping0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/mapping0.c:90:30: note: Null pointer dereference mednafen/tremor/mapping0.c:91:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/mapping0.c:89:65: note: Assuming allocation function fails mednafen/tremor/mapping0.c:89:30: note: Assignment 'look=(struct vorbis_look_mapping0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/mapping0.c:91:3: note: Null pointer dereference mednafen/tremor/mapping0.c:93:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/mapping0.c:89:65: note: Assuming allocation function fails mednafen/tremor/mapping0.c:89:30: note: Assignment 'look=(struct vorbis_look_mapping0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/mapping0.c:93:3: note: Null pointer dereference mednafen/tremor/mapping0.c:95:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/mapping0.c:89:65: note: Assuming allocation function fails mednafen/tremor/mapping0.c:89:30: note: Assignment 'look=(struct vorbis_look_mapping0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/mapping0.c:95:3: note: Null pointer dereference mednafen/tremor/mapping0.c:97:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/mapping0.c:89:65: note: Assuming allocation function fails mednafen/tremor/mapping0.c:89:30: note: Assignment 'look=(struct vorbis_look_mapping0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/mapping0.c:97:3: note: Null pointer dereference mednafen/tremor/mapping0.c:98:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/mapping0.c:89:65: note: Assuming allocation function fails mednafen/tremor/mapping0.c:89:30: note: Assignment 'look=(struct vorbis_look_mapping0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/mapping0.c:98:3: note: Null pointer dereference mednafen/tremor/mapping0.c:104:5: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/mapping0.c:89:65: note: Assuming allocation function fails mednafen/tremor/mapping0.c:89:30: note: Assignment 'look=(struct vorbis_look_mapping0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/mapping0.c:104:5: note: Null pointer dereference mednafen/tremor/mapping0.c:105:5: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/mapping0.c:89:65: note: Assuming allocation function fails mednafen/tremor/mapping0.c:89:30: note: Assignment 'look=(struct vorbis_look_mapping0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/mapping0.c:105:5: note: Null pointer dereference mednafen/tremor/mapping0.c:105:25: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/mapping0.c:89:65: note: Assuming allocation function fails mednafen/tremor/mapping0.c:89:30: note: Assignment 'look=(struct vorbis_look_mapping0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/mapping0.c:105:25: note: Null pointer dereference mednafen/tremor/mapping0.c:107:5: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/mapping0.c:89:65: note: Assuming allocation function fails mednafen/tremor/mapping0.c:89:30: note: Assignment 'look=(struct vorbis_look_mapping0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/mapping0.c:107:5: note: Null pointer dereference mednafen/tremor/mapping0.c:108:5: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/mapping0.c:89:65: note: Assuming allocation function fails mednafen/tremor/mapping0.c:89:30: note: Assignment 'look=(struct vorbis_look_mapping0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/mapping0.c:108:5: note: Null pointer dereference mednafen/tremor/mapping0.c:108:27: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/mapping0.c:89:65: note: Assuming allocation function fails mednafen/tremor/mapping0.c:89:30: note: Assignment 'look=(struct vorbis_look_mapping0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/mapping0.c:108:27: note: Null pointer dereference mednafen/tremor/mapping0.c:113:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/mapping0.c:89:65: note: Assuming allocation function fails mednafen/tremor/mapping0.c:89:30: note: Assignment 'look=(struct vorbis_look_mapping0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/mapping0.c:113:3: note: Null pointer dereference mednafen/tremor/mapping0.c:123:10: warning: If memory allocation fails, then there is a possible null pointer dereference: info [nullPointerOutOfMemory] mednafen/tremor/mapping0.c:121:65: note: Assuming allocation function fails mednafen/tremor/mapping0.c:121:30: note: Assignment 'info=(struct vorbis_info_mapping0*)calloc(1,sizeof(*info))', assigned value is 0 mednafen/tremor/mapping0.c:123:10: note: Null pointer dereference mednafen/tremor/res012.c:87:3: warning: If memory allocation fails, then there is a possible null pointer dereference: info [nullPointerOutOfMemory] mednafen/tremor/res012.c:84:65: note: Assuming allocation function fails mednafen/tremor/res012.c:84:30: note: Assignment 'info=(struct vorbis_info_residue0*)calloc(1,sizeof(*info))', assigned value is 0 mednafen/tremor/res012.c:87:3: note: Null pointer dereference mednafen/tremor/res012.c:88:3: warning: If memory allocation fails, then there is a possible null pointer dereference: info [nullPointerOutOfMemory] mednafen/tremor/res012.c:84:65: note: Assuming allocation function fails mednafen/tremor/res012.c:84:30: note: Assignment 'info=(struct vorbis_info_residue0*)calloc(1,sizeof(*info))', assigned value is 0 mednafen/tremor/res012.c:88:3: note: Null pointer dereference mednafen/tremor/res012.c:89:3: warning: If memory allocation fails, then there is a possible null pointer dereference: info [nullPointerOutOfMemory] mednafen/tremor/res012.c:84:65: note: Assuming allocation function fails mednafen/tremor/res012.c:84:30: note: Assignment 'info=(struct vorbis_info_residue0*)calloc(1,sizeof(*info))', assigned value is 0 mednafen/tremor/res012.c:89:3: note: Null pointer dereference mednafen/tremor/res012.c:90:3: warning: If memory allocation fails, then there is a possible null pointer dereference: info [nullPointerOutOfMemory] mednafen/tremor/res012.c:84:65: note: Assuming allocation function fails mednafen/tremor/res012.c:84:30: note: Assignment 'info=(struct vorbis_info_residue0*)calloc(1,sizeof(*info))', assigned value is 0 mednafen/tremor/res012.c:90:3: note: Null pointer dereference mednafen/tremor/res012.c:91:3: warning: If memory allocation fails, then there is a possible null pointer dereference: info [nullPointerOutOfMemory] mednafen/tremor/res012.c:84:65: note: Assuming allocation function fails mednafen/tremor/res012.c:84:30: note: Assignment 'info=(struct vorbis_info_residue0*)calloc(1,sizeof(*info))', assigned value is 0 mednafen/tremor/res012.c:91:3: note: Null pointer dereference mednafen/tremor/res012.c:94:6: warning: If memory allocation fails, then there is a possible null pointer dereference: info [nullPointerOutOfMemory] mednafen/tremor/res012.c:84:65: note: Assuming allocation function fails mednafen/tremor/res012.c:84:30: note: Assignment 'info=(struct vorbis_info_residue0*)calloc(1,sizeof(*info))', assigned value is 0 mednafen/tremor/res012.c:94:6: note: Null pointer dereference mednafen/tremor/res012.c:155:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:155:3: note: Null pointer dereference mednafen/tremor/res012.c:156:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:156:3: note: Null pointer dereference mednafen/tremor/res012.c:158:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:158:3: note: Null pointer dereference mednafen/tremor/res012.c:159:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:159:3: note: Null pointer dereference mednafen/tremor/res012.c:160:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:160:3: note: Null pointer dereference mednafen/tremor/res012.c:161:7: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:161:7: note: Null pointer dereference mednafen/tremor/res012.c:163:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:163:3: note: Null pointer dereference mednafen/tremor/res012.c:163:45: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:163:45: note: Null pointer dereference mednafen/tremor/res012.c:165:13: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:165:13: note: Null pointer dereference mednafen/tremor/res012.c:181:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:181:3: note: Null pointer dereference mednafen/tremor/res012.c:181:18: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:181:18: note: Null pointer dereference mednafen/tremor/res012.c:182:21: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:182:21: note: Null pointer dereference mednafen/tremor/res012.c:182:37: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:182:37: note: Null pointer dereference mednafen/tremor/res012.c:183:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:183:3: note: Null pointer dereference mednafen/tremor/res012.c:184:3: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:184:3: note: Null pointer dereference mednafen/tremor/res012.c:184:39: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:184:39: note: Null pointer dereference mednafen/tremor/res012.c:185:13: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:185:13: note: Null pointer dereference mednafen/tremor/res012.c:187:15: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:187:15: note: Null pointer dereference mednafen/tremor/res012.c:187:30: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:187:30: note: Null pointer dereference mednafen/tremor/res012.c:188:5: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:188:5: note: Null pointer dereference mednafen/tremor/block.c:91:7: warning: If memory allocation fails, then there is a possible null pointer dereference: link [nullPointerOutOfMemory] mednafen/tremor/block.c:89:65: note: Assuming allocation function fails mednafen/tremor/block.c:89:32: note: Assignment 'link=(struct alloc_chain*)malloc(sizeof(*link))', assigned value is 0 mednafen/tremor/block.c:91:7: note: Null pointer dereference mednafen/tremor/block.c:92:7: warning: If memory allocation fails, then there is a possible null pointer dereference: link [nullPointerOutOfMemory] mednafen/tremor/block.c:89:65: note: Assuming allocation function fails mednafen/tremor/block.c:89:32: note: Assignment 'link=(struct alloc_chain*)malloc(sizeof(*link))', assigned value is 0 mednafen/tremor/block.c:92:7: note: Null pointer dereference mednafen/tremor/block.c:149:3: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] mednafen/tremor/block.c:146:51: note: Assuming allocation function fails mednafen/tremor/block.c:146:5: note: Assignment 'b=(struct private_state*)(v->backend_state=calloc(1,sizeof(*b)))', assigned value is 0 mednafen/tremor/block.c:149:3: note: Null pointer dereference mednafen/tremor/block.c:152:3: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] mednafen/tremor/block.c:146:51: note: Assuming allocation function fails mednafen/tremor/block.c:146:5: note: Assignment 'b=(struct private_state*)(v->backend_state=calloc(1,sizeof(*b)))', assigned value is 0 mednafen/tremor/block.c:152:3: note: Null pointer dereference mednafen/tremor/block.c:153:3: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] mednafen/tremor/block.c:146:51: note: Assuming allocation function fails mednafen/tremor/block.c:146:5: note: Assignment 'b=(struct private_state*)(v->backend_state=calloc(1,sizeof(*b)))', assigned value is 0 mednafen/tremor/block.c:153:3: note: Null pointer dereference mednafen/tremor/vorbisfile.c:193:4: warning: If memory allocation fails, then there is a possible null pointer dereference: *serialno_list [nullPointerOutOfMemory] mednafen/tremor/vorbisfile.c:190:33: note: Assuming allocation function fails mednafen/tremor/vorbisfile.c:190:33: note: Assignment '*serialno_list=malloc(sizeof(**serialno_list))', assigned value is 0 mednafen/tremor/vorbisfile.c:193:4: note: Null pointer dereference mednafen/state.cpp:497:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEDNAFEN_VERSION_NUMERIC [valueFlowBailoutIncompleteVar] mednafen/tremor/vorbisfile.c:612:7: style: Same expression used in consecutive assignments of 'endserial' and 'serialno'. [duplicateAssignExpression] mednafen/tremor/vorbisfile.c:613:7: note: Same expression used in consecutive assignments of 'endserial' and 'serialno'. mednafen/tremor/vorbisfile.c:612:7: note: Same expression used in consecutive assignments of 'endserial' and 'serialno'. mednafen/tremor/mapping0.c:252:8: style: Variable 'pcmM[j]' is assigned an expression that holds the same value. [redundantAssignment] mednafen/tremor/mapping0.c:247:22: note: mag is assigned 'pcmM[j]' here. mednafen/tremor/mapping0.c:252:8: note: Variable 'pcmM[j]' is assigned an expression that holds the same value. mednafen/tremor/mapping0.c:260:8: style: Variable 'pcmM[j]' is assigned an expression that holds the same value. [redundantAssignment] mednafen/tremor/mapping0.c:247:22: note: mag is assigned 'pcmM[j]' here. mednafen/tremor/mapping0.c:260:8: note: Variable 'pcmM[j]' is assigned an expression that holds the same value. mednafen/psx/mdec.cpp:237:34: style: Parameter 'in_coeff' can be declared as pointer to const [constParameterPointer] mednafen/tremor/bitwise.c:51:40: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] mednafen/tremor/bitwise.c:499:36: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] mednafen/tremor/bitwise.c:503:35: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] mednafen/tremor/bitwise.c:515:51: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] mednafen/tremor/bitwise.c:313:6: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] mednafen/tremor/bitwise.c:430:6: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] mednafen/tremor/codebook.c:29:59: style:inconclusive: Function 'vorbis_staticbook_unpack' argument 1 names different: declaration 'b' definition 'opb'. [funcArgNamesDifferent] mednafen/tremor/codebook.h:85:66: note: Function 'vorbis_staticbook_unpack' argument 1 names different: declaration 'b' definition 'opb'. mednafen/tremor/codebook.c:29:59: note: Function 'vorbis_staticbook_unpack' argument 1 names different: declaration 'b' definition 'opb'. mednafen/tremor/codebook.c:333:77: style:inconclusive: Function 'vorbis_book_decodevv_add' argument 3 names different: declaration 'off' definition 'offset'. [funcArgNamesDifferent] mednafen/tremor/codebook.h:95:15: note: Function 'vorbis_book_decodevv_add' argument 3 names different: declaration 'off' definition 'offset'. mednafen/tremor/codebook.c:333:77: note: Function 'vorbis_book_decodevv_add' argument 3 names different: declaration 'off' definition 'offset'. mednafen/tremor/block.c:484:51: style:inconclusive: Function 'vorbis_synthesis_read' argument 2 names different: declaration 'samples' definition 'bytes'. [funcArgNamesDifferent] mednafen/tremor/ivorbiscodec.h:178:63: note: Function 'vorbis_synthesis_read' argument 2 names different: declaration 'samples' definition 'bytes'. mednafen/tremor/block.c:484:51: note: Function 'vorbis_synthesis_read' argument 2 names different: declaration 'samples' definition 'bytes'. mednafen/tremor/sharedbook.c:316:39: style:inconclusive: Function 'vorbis_book_init_decode' argument 1 names different: declaration 'dest' definition 'c'. [funcArgNamesDifferent] mednafen/tremor/codebook.h:80:46: note: Function 'vorbis_book_init_decode' argument 1 names different: declaration 'dest' definition 'c'. mednafen/tremor/sharedbook.c:316:39: note: Function 'vorbis_book_init_decode' argument 1 names different: declaration 'dest' definition 'c'. mednafen/tremor/sharedbook.c:316:64: style:inconclusive: Function 'vorbis_book_init_decode' argument 2 names different: declaration 'source' definition 's'. [funcArgNamesDifferent] mednafen/tremor/codebook.h:80:74: note: Function 'vorbis_book_init_decode' argument 2 names different: declaration 'source' definition 's'. mednafen/tremor/sharedbook.c:316:64: note: Function 'vorbis_book_init_decode' argument 2 names different: declaration 'source' definition 's'. mednafen/tremor/vorbisfile.c:981:29: style:inconclusive: Function 'ov_open_callbacks' argument 1 names different: declaration 'datasource' definition 'f'. [funcArgNamesDifferent] mednafen/tremor/ivorbisfile.h:90:36: note: Function 'ov_open_callbacks' argument 1 names different: declaration 'datasource' definition 'f'. mednafen/tremor/vorbisfile.c:981:29: note: Function 'ov_open_callbacks' argument 1 names different: declaration 'datasource' definition 'f'. mednafen/tremor/vorbisfile.c:1630:49: style:inconclusive: Function 'ov_time_seek' argument 2 names different: declaration 'pos' definition 'milliseconds'. [funcArgNamesDifferent] mednafen/tremor/ivorbisfile.h:106:56: note: Function 'ov_time_seek' argument 2 names different: declaration 'pos' definition 'milliseconds'. mednafen/tremor/vorbisfile.c:1630:49: note: Function 'ov_time_seek' argument 2 names different: declaration 'pos' definition 'milliseconds'. mednafen/tremor/vorbisfile.c:1660:54: style:inconclusive: Function 'ov_time_seek_page' argument 2 names different: declaration 'pos' definition 'milliseconds'. [funcArgNamesDifferent] mednafen/tremor/ivorbisfile.h:107:61: note: Function 'ov_time_seek_page' argument 2 names different: declaration 'pos' definition 'milliseconds'. mednafen/tremor/vorbisfile.c:1660:54: note: Function 'ov_time_seek_page' argument 2 names different: declaration 'pos' definition 'milliseconds'. mednafen/tremor/vorbisfile.c:1753:50: style:inconclusive: Function 'ov_read' argument 3 names different: declaration 'length' definition 'bytes_req'. [funcArgNamesDifferent] mednafen/tremor/ivorbisfile.h:114:57: note: Function 'ov_read' argument 3 names different: declaration 'length' definition 'bytes_req'. mednafen/tremor/vorbisfile.c:1753:50: note: Function 'ov_read' argument 3 names different: declaration 'length' definition 'bytes_req'. mednafen/tremor/window.c:55:54: style:inconclusive: Function '_vorbis_apply_window' argument 2 names different: declaration 'window' definition 'window_p'. [funcArgNamesDifferent] mednafen/tremor/window.h:22:61: note: Function '_vorbis_apply_window' argument 2 names different: declaration 'window' definition 'window_p'. mednafen/tremor/window.c:55:54: note: Function '_vorbis_apply_window' argument 2 names different: declaration 'window' definition 'window_p'. mednafen/tremor/mdct.c:399:16: style: Local variable 'iX' shadows outer variable [shadowVariable] mednafen/tremor/mdct.c:343:14: note: Shadowed declaration mednafen/tremor/mdct.c:399:16: note: Shadow variable mednafen/tremor/res012.c:214:7: style: Local variable 'max' shadows outer variable [shadowVariable] mednafen/trio/trio.c:2861:1: note: Shadowed declaration mednafen/tremor/res012.c:214:7: note: Shadow variable mednafen/tremor/res012.c:295:7: style: Local variable 'max' shadows outer variable [shadowVariable] mednafen/trio/trio.c:2861:1: note: Shadowed declaration mednafen/tremor/res012.c:295:7: note: Shadow variable mednafen/tremor/framing.c:694:20: style: Local variable 'page' shadows outer variable [shadowVariable] mednafen/tremor/framing.c:639:18: note: Shadowed declaration mednafen/tremor/framing.c:694:20: note: Shadow variable mednafen/tremor/framing.c:695:10: style: Local variable 'bytes' shadows outer variable [shadowVariable] mednafen/tremor/framing.c:641:8: note: Shadowed declaration mednafen/tremor/framing.c:695:10: note: Shadow variable mednafen/tremor/sharedbook.c:401:20: style: Local variable 'mask' shadows outer variable [shadowVariable] mednafen/tremor/bitwise.c:28:28: note: Shadowed declaration mednafen/tremor/sharedbook.c:401:20: note: Shadow variable mednafen/tremor/vorbisfile.c:1024:9: style: Local variable 'i' shadows outer argument [shadowArgument] mednafen/tremor/vorbisfile.c:1018:40: note: Shadowed declaration mednafen/tremor/vorbisfile.c:1024:9: note: Shadow variable mednafen/tremor/vorbisfile.c:1090:9: style: Local variable 'i' shadows outer argument [shadowArgument] mednafen/tremor/vorbisfile.c:1085:49: note: Shadowed declaration mednafen/tremor/vorbisfile.c:1090:9: note: Shadow variable mednafen/tremor/vorbisfile.c:1109:9: style: Local variable 'i' shadows outer argument [shadowArgument] mednafen/tremor/vorbisfile.c:1104:49: note: Shadowed declaration mednafen/tremor/vorbisfile.c:1109:9: note: Shadow variable mednafen/tremor/vorbisfile.c:1128:9: style: Local variable 'i' shadows outer argument [shadowArgument] mednafen/tremor/vorbisfile.c:1123:50: note: Shadowed declaration mednafen/tremor/vorbisfile.c:1128:9: note: Shadow variable mednafen/tremor/vorbisfile.c:1453:16: style: Local variable 'og' shadows outer variable [shadowVariable] mednafen/tremor/vorbisfile.c:1380:14: note: Shadowed declaration mednafen/tremor/vorbisfile.c:1453:16: note: Shadow variable mednafen/tremor/vorbisfile.c:1548:9: style: Local variable 'ret' shadows outer variable [shadowVariable] mednafen/tremor/vorbisfile.c:1537:7: note: Shadowed declaration mednafen/tremor/vorbisfile.c:1548:9: note: Shadow variable mednafen/tremor/codebook.c:267:18: style: Variable 't' can be declared as pointer to const [constVariablePointer] mednafen/tremor/codebook.c:298:18: style: Variable 't' can be declared as pointer to const [constVariablePointer] mednafen/tremor/floor0.c:136:50: style: Parameter 'map' can be declared as pointer to const [constParameterPointer] mednafen/tremor/floor0.c:137:18: style: Parameter 'lsp' can be declared as pointer to const [constParameterPointer] mednafen/tremor/floor0.c:140:18: style: Parameter 'icos' can be declared as pointer to const [constParameterPointer] mednafen/tremor/floor0.c:311:25: style: Variable 'ci' can be declared as pointer to const [constVariablePointer] mednafen/tremor/floor0.c:348:79: style: Parameter 'mi' can be declared as pointer to const. However it seems that 'floor0_look' is a callback function, if 'mi' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mednafen/tremor/floor0.c:435:19: note: You might need to cast the function pointer here mednafen/tremor/floor0.c:348:79: note: Parameter 'mi' can be declared as pointer to const mednafen/tremor/floor0.c:396:26: style: Variable 'ci' can be declared as pointer to const [constVariablePointer] mednafen/tremor/floor0.c:418:23: style: Variable 'info' can be declared as pointer to const [constVariablePointer] mednafen/tremor/floor1.c:68:25: style: Variable 'ci' can be declared as pointer to const [constVariablePointer] mednafen/tremor/floor1.c:417:10: style: Variable 'fit_value' can be declared as pointer to const [constVariablePointer] mednafen/tremor/mdct.c:266:16: style: Variable 'x0' can be declared as pointer to const [constVariablePointer] mednafen/tremor/mdct.c:267:16: style: Variable 'x1' can be declared as pointer to const [constVariablePointer] mednafen/tremor/mdct.c:303:16: style: Variable 'x0' can be declared as pointer to const [constVariablePointer] mednafen/tremor/mdct.c:304:16: style: Variable 'x1' can be declared as pointer to const [constVariablePointer] mednafen/tremor/mapping0.c:122:25: style: Variable 'ci' can be declared as pointer to const [constVariablePointer] mednafen/tremor/info.c:56:54: style: Parameter 'tag' can be declared as pointer to const [constParameterPointer] mednafen/tremor/info.c:77:48: style: Parameter 'vc' can be declared as pointer to const [constParameterPointer] mednafen/tremor/info.c:77:58: style: Parameter 'tag' can be declared as pointer to const [constParameterPointer] mednafen/tremor/res012.c:146:71: style: Parameter 'vm' can be declared as pointer to const. However it seems that 'res0_look' is a callback function, if 'vm' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mednafen/tremor/res012.c:362:4: note: You might need to cast the function pointer here mednafen/tremor/res012.c:146:71: note: Parameter 'vm' can be declared as pointer to const mednafen/tremor/res012.c:262:26: style: Parameter 'nonzero' can be declared as pointer to const. However it seems that 'res0_inverse' is a callback function, if 'nonzero' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mednafen/tremor/res012.c:349:4: note: You might need to cast the function pointer here mednafen/tremor/res012.c:262:26: note: Parameter 'nonzero' can be declared as pointer to const mednafen/tremor/res012.c:274:26: style: Parameter 'nonzero' can be declared as pointer to const. However it seems that 'res1_inverse' is a callback function, if 'nonzero' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mednafen/tremor/res012.c:357:4: note: You might need to cast the function pointer here mednafen/tremor/res012.c:274:26: note: Parameter 'nonzero' can be declared as pointer to const mednafen/tremor/res012.c:287:26: style: Parameter 'nonzero' can be declared as pointer to const. However it seems that 'res2_inverse' is a callback function, if 'nonzero' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mednafen/tremor/res012.c:365:4: note: You might need to cast the function pointer here mednafen/tremor/res012.c:287:26: note: Parameter 'nonzero' can be declared as pointer to const mednafen/tremor/framing.c:46:18: style: Variable 'page' can be declared as pointer to const [constVariablePointer] mednafen/tremor/framing.c:190:40: style: Parameter 'os' can be declared as pointer to const [constParameterPointer] mednafen/tremor/framing.c:584:36: style: Parameter 'oy' can be declared as pointer to const [constParameterPointer] mednafen/tremor/framing.c:640:18: style: Variable 'next' can be declared as pointer to const [constVariablePointer] mednafen/tremor/framing.c:770:18: style: Variable 'header' can be declared as pointer to const [constVariablePointer] mednafen/tremor/block.c:312:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] mednafen/tremor/block.c:318:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] mednafen/tremor/block.c:326:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] mednafen/tremor/block.c:334:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] mednafen/tremor/block.c:343:15: style: Variable 'p' can be declared as pointer to const [constVariablePointer] mednafen/tremor/block.c:471:16: style: Variable 'vi' can be declared as pointer to const [constVariablePointer] mednafen/tremor/sharedbook.c:63:33: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] mednafen/tremor/sharedbook.c:187:67: style: Parameter 'sparsemap' can be declared as pointer to const [constParameterPointer] mednafen/tremor/vorbisfile.c:183:37: style: Parameter 'og' can be declared as pointer to const [constParameterPointer] mednafen/tremor/vorbisfile.c:197:59: style: Parameter 'serialno_list' can be declared as pointer to const [constParameterPointer] mednafen/tremor/vorbisfile.c:207:44: style: Parameter 'og' can be declared as pointer to const [constParameterPointer] mednafen/tremor/vorbisfile.c:1000:33: style: Parameter 'vf' can be declared as pointer to const [constParameterPointer] mednafen/tremor/vorbisfile.c:1005:34: style: Parameter 'vf' can be declared as pointer to const [constParameterPointer] mednafen/tremor/vorbisfile.c:1690:41: style: Parameter 'vf' can be declared as pointer to const [constParameterPointer] mednafen/tremor/vorbisfile.c:1696:41: style: Parameter 'vf' can be declared as pointer to const [constParameterPointer] mednafen/tremor/vorbisfile.c:1792:23: style: Variable 'src' can be declared as pointer to const [constVariablePointer] mednafen/tremor/window.c:56:12: style: Parameter 'blocksizes' can be declared as pointer to const [constParameterPointer] mednafen/trio/trio.c:910:9: style: Variable 'groupingPointer' can be declared as pointer to const [constVariablePointer] mednafen/trio/trio.c:1275:1: style: Parameter 'format' can be declared as pointer to const [constParameterPointer] mednafen/trio/trio.c:3238:1: style: Parameter 'format' can be declared as pointer to const [constParameterPointer] mednafen/trio/triostr.c:365:1: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] mednafen/trio/triostr.c:384:1: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] mednafen/tremor/misc.h:218:27: warning: Shifting signed 32-bit value by 31 bits is undefined behaviour. See condition at line 217. [shiftTooManyBitsSigned] mednafen/tremor/misc.h:217:13: note: Assuming that condition 'shift<32' is not redundant mednafen/tremor/misc.h:218:27: note: Shift mednafen/tremor/misc.h:227:27: warning: Shifting signed 32-bit value by 31 bits is undefined behaviour. See condition at line 226. [shiftTooManyBitsSigned] mednafen/tremor/misc.h:226:13: note: Assuming that condition 'shift<32' is not redundant mednafen/tremor/misc.h:227:27: note: Shift mednafen/tremor/info.c:173:20: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] mednafen/tremor/info.c:174:20: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] mednafen/tremor/floor1.c:118:11: warning: Uninitialized variable: sortpointer [uninitvar] mednafen/tremor/floor1.c:117:14: note: Assuming condition is false mednafen/tremor/floor1.c:118:11: note: Uninitialized variable: sortpointer mednafen/tremor/floor1.c:155:9: warning: Uninitialized variable: sortpointer [uninitvar] mednafen/tremor/floor1.c:154:12: note: Assuming condition is false mednafen/tremor/floor1.c:155:9: note: Uninitialized variable: sortpointer mednafen/tremor/codebook.c:324:11: style: Unused variable: j [unusedVariable] mednafen/state.cpp:350:16: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mednafen/state.cpp:350:16: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mednafen/state.cpp:50:18: style: C-style pointer casting [cstyleCast] mednafen/state.cpp:133:27: style: C-style pointer casting [cstyleCast] mednafen/state.cpp:179:33: style: C-style pointer casting [cstyleCast] mednafen/state.cpp:185:25: style: C-style pointer casting [cstyleCast] mednafen/state.cpp:216:12: style: C-style pointer casting [cstyleCast] mednafen/state.cpp:260:20: style: C-style pointer casting [cstyleCast] mednafen/state.cpp:289:26: style: C-style pointer casting [cstyleCast] mednafen/state.cpp:302:21: style: C-style pointer casting [cstyleCast] mednafen/state.cpp:341:29: style: C-style pointer casting [cstyleCast] mednafen/state.cpp:361:30: style: C-style pointer casting [cstyleCast] mednafen/state.cpp:368:23: style: C-style pointer casting [cstyleCast] mednafen/state.cpp:368:56: style: C-style pointer casting [cstyleCast] mednafen/state.cpp:412:19: style: C-style pointer casting [cstyleCast] mednafen/state.cpp:426:33: style: C-style pointer casting [cstyleCast] mednafen/state.cpp:480:19: style: C-style pointer casting [cstyleCast] mednafen/state.cpp:490:19: style: C-style pointer casting [cstyleCast] mednafen/state.cpp:516:19: style: C-style pointer casting [cstyleCast] mednafen/state.cpp:309:8: style: The scope of the variable 'temp' can be reduced. [variableScope] mednafen/state.cpp:90:15: style: Checking if unsigned expression 'st->loc' is less than zero. [unsignedLessThanZero] mednafen/state.cpp:410:30: style:inconclusive: Function 'MDFNSS_StateAction' argument 1 names different: declaration 'st' definition 'st_p'. [funcArgNamesDifferent] mednafen/state.h:114:30: note: Function 'MDFNSS_StateAction' argument 1 names different: declaration 'st' definition 'st_p'. mednafen/state.cpp:410:30: note: Function 'MDFNSS_StateAction' argument 1 names different: declaration 'st' definition 'st_p'. mednafen/state.cpp:478:30: style:inconclusive: Function 'MDFNSS_StateAction' argument 1 names different: declaration 'st' definition 'st_p'. [funcArgNamesDifferent] mednafen/state.h:115:30: note: Function 'MDFNSS_StateAction' argument 1 names different: declaration 'st' definition 'st_p'. mednafen/state.cpp:478:30: note: Function 'MDFNSS_StateAction' argument 1 names different: declaration 'st' definition 'st_p'. mednafen/state.cpp:487:25: style:inconclusive: Function 'MDFNSS_SaveSM' argument 1 names different: declaration 'st' definition 'st_p'. [funcArgNamesDifferent] mednafen/state.h:23:25: note: Function 'MDFNSS_SaveSM' argument 1 names different: declaration 'st' definition 'st_p'. mednafen/state.cpp:487:25: note: Function 'MDFNSS_SaveSM' argument 1 names different: declaration 'st' definition 'st_p'. mednafen/state.cpp:512:25: style:inconclusive: Function 'MDFNSS_LoadSM' argument 1 names different: declaration 'st' definition 'st_p'. [funcArgNamesDifferent] mednafen/state.h:24:25: note: Function 'MDFNSS_LoadSM' argument 1 names different: declaration 'st' definition 'st_p'. mednafen/state.cpp:512:25: note: Function 'MDFNSS_LoadSM' argument 1 names different: declaration 'st' definition 'st_p'. mednafen/state.cpp:42:40: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] mednafen/state.cpp:70:29: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] mednafen/state.cpp:151:15: style: Variable 'slen' is assigned a value that is never used. [unreadVariable] mednafen/state.cpp:394:74: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] mednafen/state.cpp:420:69: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] mednafen/state.cpp:468:66: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] mednafen/tremor/sharedbook.c:52:9: style: Variable 'sign' is assigned a value that is never used. [unreadVariable] mednafen/tremor/vorbisfile.c:470:25: style: Variable 'dataoffset' is assigned a value that is never used. [unreadVariable] mednafen/tremor/vorbisfile.c:850:15: style: Variable 'link' is assigned a value that is never used. [unreadVariable] mednafen/tremor/vorbisfile.c:1511:17: style: Variable 'result' is assigned a value that is never used. [unreadVariable] mednafen/trio/trio.c:2841:64: error: va_list 'unused' used before va_start() was called. [va_list_usedBeforeStarted] mednafen/trio/trio.c:2906:41: error: va_list 'unused' used before va_start() was called. [va_list_usedBeforeStarted] mednafen/trio/trio.c:3097:35: error: va_list 'unused' used before va_start() was called. [va_list_usedBeforeStarted] mednafen/trio/trio.c:4266:13: error: va_list 'unused' used before va_start() was called. [va_list_usedBeforeStarted] mednafen/psx/gpu.cpp:93:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RGB8SAT_Under [valueFlowBailoutIncompleteVar] mednafen/psx/gpu_common.cpp:146:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TexWindowXLUT [valueFlowBailoutIncompleteVar] mednafen/psx/gpu_polygon.cpp:151:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable goraud [valueFlowBailoutIncompleteVar] mednafen/psx/gpu_sprite.cpp:139:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable textured [valueFlowBailoutIncompleteVar] mednafen/psx/gpu_line.cpp:145:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable goraud [valueFlowBailoutIncompleteVar] mednafen/psx/gpu_line.cpp:205:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable goraud [valueFlowBailoutIncompleteVar] mednafen/video/surface.cpp:43:15: warning: Member variable 'MDFN_Surface::palette' is not initialized in the constructor. [uninitMemberVar] mednafen/video/surface.cpp:53:15: warning: Member variable 'MDFN_Surface::palette' is not initialized in the constructor. [uninitMemberVar] mednafen/video/surface.cpp:70:13: style: C-style pointer casting [cstyleCast] mednafen/video/surface.cpp:81:54: style:inconclusive: Function 'SetFormat' argument 1 names different: declaration 'new_format' definition 'nf'. [funcArgNamesDifferent] mednafen/video/surface.h:97:41: note: Function 'SetFormat' argument 1 names different: declaration 'new_format' definition 'nf'. mednafen/video/surface.cpp:81:54: note: Function 'SetFormat' argument 1 names different: declaration 'new_format' definition 'nf'. mednafen/video/surface.cpp:58:37: style: Parameter 'p_pixels' can be declared as pointer to const [constParameterPointer] mednafen/video/Deinterlacer.cpp:50:85: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEINT_WEAVE [valueFlowBailoutIncompleteVar] mednafen/video/Deinterlacer.cpp:153:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEINT_WEAVE [valueFlowBailoutIncompleteVar] mednafen/video/Deinterlacer.cpp:43:20: style: Unused private function: 'Deinterlacer::InternalProcess' [unusedPrivateFunction] mednafen/video/Deinterlacer.h:50:7: note: Unused private function: 'Deinterlacer::InternalProcess' mednafen/video/Deinterlacer.cpp:43:20: note: Unused private function: 'Deinterlacer::InternalProcess' mednafen/video/Deinterlacer.h:38:18: style:inconclusive: Technically the member function 'Deinterlacer::GetType' can be const. [functionConst] mednafen/video/Deinterlacer.cpp:26:37: style:inconclusive: Function 'SetType' argument 1 names different: declaration 't' definition 'dt'. [funcArgNamesDifferent] mednafen/video/Deinterlacer.h:37:24: note: Function 'SetType' argument 1 names different: declaration 't' definition 'dt'. mednafen/video/Deinterlacer.cpp:26:37: note: Function 'SetType' argument 1 names different: declaration 't' definition 'dt'. mednafen/video/Deinterlacer.cpp:149:62: style: Parameter 'DisplayRect' can be declared as reference to const [constParameterReference] mednafen/video/Deinterlacer.cpp:149:42: style: Parameter 'surface' can be declared as pointer to const [constParameterPointer] mednafen/psx/spu.cpp:686:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IIR_SRC_A0 [valueFlowBailoutIncompleteVar] mednafen/psx/spu.cpp:838:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPUStatus [valueFlowBailoutIncompleteVar] mednafen/psx/spu.cpp:1524:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReverbRegs [valueFlowBailoutIncompleteVar] mednafen/psx/spu.cpp:1571:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReverbRegs [valueFlowBailoutIncompleteVar] mednafen/trio/trio.c:671:5: style: struct member 'trio_custom_t::stream' is never used. [unusedStructMember] mednafen/trio/trio.c:672:18: style: struct member 'trio_custom_t::closure' is never used. [unusedStructMember] mednafen/trio/trio.c:669:22: style: union member 'Anonymous6::out' is never used. [unusedStructMember] mednafen/trio/trio.c:670:21: style: union member 'Anonymous6::in' is never used. [unusedStructMember] mednafen/psx/gpu_sprite.cpp:154:10: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] mednafen/psx/gpu_line.cpp:221:4: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::GPURAM' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::DMAControl' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::ClipX0' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::ClipY0' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::ClipX1' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::ClipY1' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::OffsX' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::OffsY' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::dtd' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::dfe' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::MaskSetOR' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::MaskEvalAND' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::TexDisable' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::TexDisableAllowChange' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::tww' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::twh' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::twx' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::twy' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::TexWindowXLUT_Pre' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::TexWindowXLUT' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::TexWindowXLUT_Post' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::TexWindowYLUT_Pre' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::TexWindowYLUT' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::TexWindowYLUT_Post' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::TexPageX' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::TexPageY' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::SpriteFlip' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::abr' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::TexMode' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::RGB8SAT_Under' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::RGB8SAT' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::RGB8SAT_Over' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::DataReadBuffer' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::DataReadBufferEx' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::IRQPending' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::InCmd' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::InCmd_CC' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::InQuad_F3Vertices' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::InQuad_clut' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::InPLine_PrevPoint' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::FBRW_X' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::FBRW_Y' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::FBRW_W' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::FBRW_H' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::FBRW_CurY' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::FBRW_CurX' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::DisplayMode' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::DisplayOff' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::DisplayFB_XStart' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::DisplayFB_YStart' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::HorizStart' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::HorizEnd' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::VertStart' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::VertEnd' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::DisplayFB_CurYOffset' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::DisplayFB_CurLineYReadout' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::InVBlank' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::LinesPerField' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::scanline' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::field' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::field_ram_readout' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::PhaseChange' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::DotClockCounter' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::GPUClockCounter' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::LineClockCounter' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::LinePhase' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::DrawTimeAvail' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::lastts' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::sl_zero_reached' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::espec' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::surface' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::DisplayRect' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::LineWidths' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::CLUT_Cache' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::CLUT_Cache_VB' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::SUCV' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:66:9: warning: Member variable 'PS_GPU::TexCache' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/gpu.cpp:109:14: style:inconclusive: Technically the member function 'PS_GPU::FillVideoParams' can be const. [functionConst] mednafen/psx/gpu.h:48:12: note: Technically the member function 'PS_GPU::FillVideoParams' can be const. mednafen/psx/gpu.cpp:109:14: note: Technically the member function 'PS_GPU::FillVideoParams' can be const. mednafen/psx/gpu_common.cpp:197:21: debug: CheckClass::isMemberVar found used member variable 'TexWindowXLUT' with varid 0 [varid0] mednafen/psx/gpu_common.cpp:198:17: debug: CheckClass::isMemberVar found used member variable 'TexWindowYLUT' with varid 0 [varid0] mednafen/psx/gpu_common.cpp:162:25: style:inconclusive: Technically the member function 'PS_GPU::GetTexel' can be const. [functionConst] mednafen/psx/gpu.h:276:17: note: Technically the member function 'PS_GPU::GetTexel' can be const. mednafen/psx/gpu_common.cpp:162:25: note: Technically the member function 'PS_GPU::GetTexel' can be const. mednafen/psx/gpu.cpp:1118:21: performance:inconclusive: Technically the member function 'PS_GPU::ReorderRGB_Var' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/psx/gpu.h:321:12: note: Technically the member function 'PS_GPU::ReorderRGB_Var' can be static (but you may consider moving to unnamed namespace). mednafen/psx/gpu.cpp:1118:21: note: Technically the member function 'PS_GPU::ReorderRGB_Var' can be static (but you may consider moving to unnamed namespace). mednafen/psx/gpu_common.cpp:2:62: style:inconclusive: Function 'PlotPixel' argument 3 names different: declaration 'pix' definition 'fore_pix'. [funcArgNamesDifferent] mednafen/psx/gpu.h:273:50: note: Function 'PlotPixel' argument 3 names different: declaration 'pix' definition 'fore_pix'. mednafen/psx/gpu_common.cpp:2:62: note: Function 'PlotPixel' argument 3 names different: declaration 'pix' definition 'fore_pix'. mednafen/psx/gpu_common.cpp:162:70: style:inconclusive: Function 'GetTexel' argument 2 names different: declaration 'u' definition 'u_arg'. [funcArgNamesDifferent] mednafen/psx/gpu.h:276:52: note: Function 'GetTexel' argument 2 names different: declaration 'u' definition 'u_arg'. mednafen/psx/gpu_common.cpp:162:70: note: Function 'GetTexel' argument 2 names different: declaration 'u' definition 'u_arg'. mednafen/psx/gpu_common.cpp:162:85: style:inconclusive: Function 'GetTexel' argument 3 names different: declaration 'v' definition 'v_arg'. [funcArgNamesDifferent] mednafen/psx/gpu.h:276:61: note: Function 'GetTexel' argument 3 names different: declaration 'v' definition 'v_arg'. mednafen/psx/gpu_common.cpp:162:85: note: Function 'GetTexel' argument 3 names different: declaration 'v' definition 'v_arg'. mednafen/psx/gpu_line.cpp:103:35: style:inconclusive: Function 'DrawLine' argument 1 names different: declaration 'vertices' definition 'points'. [funcArgNamesDifferent] mednafen/psx/gpu.h:290:36: note: Function 'DrawLine' argument 1 names different: declaration 'vertices' definition 'points'. mednafen/psx/gpu_line.cpp:103:35: note: Function 'DrawLine' argument 1 names different: declaration 'vertices' definition 'points'. mednafen/psx/gpu.cpp:854:38: style:inconclusive: Function 'WriteCB' argument 1 names different: declaration 'data' definition 'InData'. [funcArgNamesDifferent] mednafen/psx/gpu.h:268:27: note: Function 'WriteCB' argument 1 names different: declaration 'data' definition 'InData'. mednafen/psx/gpu.cpp:854:38: note: Function 'WriteCB' argument 1 names different: declaration 'data' definition 'InData'. mednafen/psx/gpu.cpp:866:38: style:inconclusive: Function 'SetTPage' argument 1 names different: declaration 'data' definition 'cmdw'. [funcArgNamesDifferent] mednafen/psx/gpu.h:257:30: note: Function 'SetTPage' argument 1 names different: declaration 'data' definition 'cmdw'. mednafen/psx/gpu.cpp:866:38: note: Function 'SetTPage' argument 1 names different: declaration 'data' definition 'cmdw'. mednafen/psx/gpu.cpp:1148:38: style:inconclusive: Function 'Update' argument 1 names different: declaration 'timestamp' definition 'sys_timestamp'. [funcArgNamesDifferent] mednafen/psx/gpu.h:58:36: note: Function 'Update' argument 1 names different: declaration 'timestamp' definition 'sys_timestamp'. mednafen/psx/gpu.cpp:1148:38: note: Function 'Update' argument 1 names different: declaration 'timestamp' definition 'sys_timestamp'. mednafen/psx/gpu.cpp:1473:44: style:inconclusive: Function 'StartFrame' argument 1 names different: declaration 'espec' definition 'espec_arg'. [funcArgNamesDifferent] mednafen/psx/gpu.h:56:42: note: Function 'StartFrame' argument 1 names different: declaration 'espec' definition 'espec_arg'. mednafen/psx/gpu.cpp:1473:44: note: Function 'StartFrame' argument 1 names different: declaration 'espec' definition 'espec_arg'. mednafen/psx/gpu_common.cpp:220:41: style: Parameter 'g' can be declared as pointer to const [constParameterPointer] mednafen/psx/gpu_line.cpp:221:6: style: Variable 'cb' is assigned a value that is never used. [unreadVariable] mednafen/psx/spu.cpp:255:68: style:inconclusive: Boolean expression 'dec_mode' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] mednafen/psx/spu.cpp:256:42: style:inconclusive: Boolean expression 'inv_mode' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] mednafen/psx/spu.cpp:256:55: style:inconclusive: Boolean expression 'dec_mode' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] mednafen/psx/spu.cpp:264:20: style:inconclusive: Boolean expression 'dec_mode' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] mednafen/psx/spu.cpp:264:33: style:inconclusive: Boolean expression 'inv_mode' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::Voices' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::NoiseDivider' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::NoiseCounter' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::LFSR' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::FM_Mode' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::Noise_Mode' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::Reverb_Mode' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ReverbWA' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ReverbVol' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::CDVol' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ExternVol' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IRQAddr' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::RWAddr' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::SPUControl' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::VoiceOn' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::VoiceOff' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::BlockEnd' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::CWA' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::Regs' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::VoiceRegs' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::GlobalRegs' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::_Global0' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::SPUStatus' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::_Global1' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ReverbRegs' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::FB_SRC_A' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::FB_SRC_B' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IIR_ALPHA' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_COEF_A' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_COEF_B' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_COEF_C' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_COEF_D' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IIR_COEF' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::FB_ALPHA' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::FB_X' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IIR_DEST_A0' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IIR_DEST_A1' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_SRC_A0' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_SRC_A1' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_SRC_B0' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_SRC_B1' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IIR_SRC_A0' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IIR_SRC_A1' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IIR_DEST_B0' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IIR_DEST_B1' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_SRC_C0' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_SRC_C1' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_SRC_D0' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_SRC_D1' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IIR_SRC_B1' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IIR_SRC_B0' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::MIX_DEST_A0' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::MIX_DEST_A1' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::MIX_DEST_B0' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::MIX_DEST_B1' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IN_COEF_L' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IN_COEF_R' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::AuxRegs' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::RDSB' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::RUSB' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::RvbResPos' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ReverbCur' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IRQAsserted' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::clock_divider' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::SPURAM' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::last_rate' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::last_quality' is not initialized in the constructor. [uninitMemberVar] mednafen/psx/spu.cpp:237:25: style:inconclusive: Technically the member function 'SPU_Sweep::ReadVolume' can be const. [functionConst] mednafen/psx/spu.h:50:10: note: Technically the member function 'SPU_Sweep::ReadVolume' can be const. mednafen/psx/spu.cpp:237:25: note: Technically the member function 'SPU_Sweep::ReadVolume' can be const. mednafen/psx/spu.cpp:443:14: performance:inconclusive: Technically the member function 'PS_SPU::CacheEnvelope' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/psx/spu.h:123:12: note: Technically the member function 'PS_SPU::CacheEnvelope' can be static (but you may consider moving to unnamed namespace). mednafen/psx/spu.cpp:443:14: note: Technically the member function 'PS_SPU::CacheEnvelope' can be static (but you may consider moving to unnamed namespace). mednafen/psx/spu.cpp:467:14: performance:inconclusive: Technically the member function 'PS_SPU::ResetEnvelope' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/psx/spu.h:124:12: note: Technically the member function 'PS_SPU::ResetEnvelope' can be static (but you may consider moving to unnamed namespace). mednafen/psx/spu.cpp:467:14: note: Technically the member function 'PS_SPU::ResetEnvelope' can be static (but you may consider moving to unnamed namespace). mednafen/psx/spu.cpp:476:14: performance:inconclusive: Technically the member function 'PS_SPU::ReleaseEnvelope' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/psx/spu.h:125:12: note: Technically the member function 'PS_SPU::ReleaseEnvelope' can be static (but you may consider moving to unnamed namespace). mednafen/psx/spu.cpp:476:14: note: Technically the member function 'PS_SPU::ReleaseEnvelope' can be static (but you may consider moving to unnamed namespace). mednafen/psx/spu.cpp:485:14: performance:inconclusive: Technically the member function 'PS_SPU::RunEnvelope' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/psx/spu.h:126:12: note: Technically the member function 'PS_SPU::RunEnvelope' can be static (but you may consider moving to unnamed namespace). mednafen/psx/spu.cpp:485:14: note: Technically the member function 'PS_SPU::RunEnvelope' can be static (but you may consider moving to unnamed namespace). mednafen/psx/spu.cpp:584:23: style:inconclusive: Technically the member function 'PS_SPU::Get_Reverb_Offset' can be const. [functionConst] mednafen/psx/spu.h:232:16: note: Technically the member function 'PS_SPU::Get_Reverb_Offset' can be const. mednafen/psx/spu.cpp:584:23: note: Technically the member function 'PS_SPU::Get_Reverb_Offset' can be const. mednafen/psx/spu.cpp:1571:7: debug: CheckClass::isMemberVar found used member variable 'ReverbRegs' with varid 0 [varid0] mednafen/psx/spu.cpp:1483:16: style:inconclusive: Technically the member function 'PS_SPU::PeekSPURAM' can be const. [functionConst] mednafen/psx/spu.h:327:16: note: Technically the member function 'PS_SPU::PeekSPURAM' can be const. mednafen/psx/spu.cpp:1483:16: note: Technically the member function 'PS_SPU::PeekSPURAM' can be const. mednafen/psx/spu.cpp:256:42: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] mednafen/psx/spu.cpp:264:20: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] mednafen/psx/spu.cpp:669:22: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] mednafen/psx/spu.cpp:997:26: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] mednafen/psx/spu.cpp:584:48: style:inconclusive: Function 'Get_Reverb_Offset' argument 1 names different: declaration 'offset' definition 'in_offset'. [funcArgNamesDifferent] mednafen/psx/spu.h:232:43: note: Function 'Get_Reverb_Offset' argument 1 names different: declaration 'offset' definition 'in_offset'. mednafen/psx/spu.cpp:584:48: note: Function 'Get_Reverb_Offset' argument 1 names different: declaration 'offset' definition 'in_offset'. mednafen/psx/spu.cpp:456:40: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] mednafen/psx/spu.cpp:588:46: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] diff: head libretro.cpp:3140:31: style: C-style pointer casting [cstyleCast] 2.17.0 libretro.cpp:3140:32: style: C-style pointer casting [cstyleCast] head libretro.cpp:3572:23: style: C-style pointer casting [cstyleCast] 2.17.0 libretro.cpp:3572:24: style: C-style pointer casting [cstyleCast] head mednafen/cdrom/CDAccess_Image.cpp:175:24: performance:inconclusive: Technically the member function 'CDAccess_Image::GetSectorCount' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/cdrom/CDAccess_Image.h:73:16: note: Technically the member function 'CDAccess_Image::GetSectorCount' can be static (but you may consider moving to unnamed namespace). mednafen/cdrom/CDAccess_Image.cpp:175:24: note: Technically the member function 'CDAccess_Image::GetSectorCount' can be static (but you may consider moving to unnamed namespace). 2.17.0 mednafen/cdrom/CDAccess_Image.cpp:940:26: style: C-style pointer casting [cstyleCast] head mednafen/cdrom/CDAccess_Image.cpp:940:26: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/cdrom/CDAccess_Image.h:73:16: performance:inconclusive: Technically the member function 'CDAccess_Image::GetSectorCount' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/cdrom/CDAccess_Image.cpp:175:24: note: Technically the member function 'CDAccess_Image::GetSectorCount' can be static (but you may consider moving to unnamed namespace). mednafen/cdrom/CDAccess_Image.h:73:16: note: Technically the member function 'CDAccess_Image::GetSectorCount' can be static (but you may consider moving to unnamed namespace). 2.17.0 mednafen/cdrom/audioreader.cpp:139:20: style: C-style pointer casting [cstyleCast] head mednafen/cdrom/audioreader.cpp:139:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/cdrom/cdromif.cpp:207:15: style: C-style pointer casting [cstyleCast] head mednafen/cdrom/cdromif.cpp:207:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/cdrom/cdromif.cpp:212:21: style: C-style pointer casting [cstyleCast] head mednafen/cdrom/cdromif.cpp:212:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head mednafen/cdrom/cdromif.cpp:212:40: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/cdrom/cdromif.cpp:223:17: style: C-style pointer casting [cstyleCast] head mednafen/cdrom/cdromif.cpp:223:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/cdrom/cdromif.cpp:233:15: style: C-style pointer casting [cstyleCast] head mednafen/cdrom/cdromif.cpp:233:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/cdrom/cdromif.cpp:237:17: style: C-style pointer casting [cstyleCast] head mednafen/cdrom/cdromif.cpp:237:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/cdrom/cdromif.cpp:239:17: style: C-style pointer casting [cstyleCast] head mednafen/cdrom/cdromif.cpp:239:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/cdrom/cdromif.cpp:383:21: style: C-style pointer casting [cstyleCast] head mednafen/cdrom/cdromif.cpp:383:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/cdrom/cdromif.cpp:391:23: style: C-style pointer casting [cstyleCast] head mednafen/cdrom/cdromif.cpp:391:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/cdrom/cdromif.cpp:392:23: style: C-style pointer casting [cstyleCast] head mednafen/cdrom/cdromif.cpp:392:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/cdrom/cdromif.cpp:422:23: style: C-style pointer casting [cstyleCast] head mednafen/cdrom/cdromif.cpp:422:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/cdrom/cdromif.cpp:428:21: style: C-style pointer casting [cstyleCast] head mednafen/cdrom/cdromif.cpp:428:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/cdrom/cdromif.cpp:434:21: style: C-style pointer casting [cstyleCast] head mednafen/cdrom/cdromif.cpp:434:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/cdrom/cdromif.cpp:464:20: style: C-style pointer casting [cstyleCast] head mednafen/cdrom/cdromif.cpp:464:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/cdrom/cdromif.cpp:468:18: style: C-style pointer casting [cstyleCast] head mednafen/cdrom/cdromif.cpp:468:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head mednafen/cdrom/cdromif.cpp:479:12: performance:inconclusive: Technically the member function 'CDIF::ValidateRawSector' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/cdrom/cdromif.h:45:12: note: Technically the member function 'CDIF::ValidateRawSector' can be static (but you may consider moving to unnamed namespace). mednafen/cdrom/cdromif.cpp:479:12: note: Technically the member function 'CDIF::ValidateRawSector' can be static (but you may consider moving to unnamed namespace). 2.17.0 mednafen/cdrom/cdromif.cpp:513:15: style: C-style pointer casting [cstyleCast] head mednafen/cdrom/cdromif.cpp:513:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/cdrom/cdromif.cpp:529:21: style: C-style pointer casting [cstyleCast] head mednafen/cdrom/cdromif.cpp:529:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head mednafen/cdrom/cdromif.cpp:529:39: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/cdrom/cdromif.cpp:532:17: style: C-style pointer casting [cstyleCast] head mednafen/cdrom/cdromif.cpp:532:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/cdrom/cdromif.h:45:12: performance:inconclusive: Technically the member function 'CDIF::ValidateRawSector' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/cdrom/cdromif.cpp:479:12: note: Technically the member function 'CDIF::ValidateRawSector' can be static (but you may consider moving to unnamed namespace). mednafen/cdrom/cdromif.h:45:12: note: Technically the member function 'CDIF::ValidateRawSector' can be static (but you may consider moving to unnamed namespace). head mednafen/cdrom/galois.c:111:33: warning: If memory allocation fails, then there is a possible null pointer dereference: rt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:105:13: note: Assuming allocation function fails mednafen/cdrom/galois.c:104:28: note: Assignment 'rt=(struct ReedSolomonTables*)calloc(1,sizeof(struct ReedSolomonTables))', assigned value is 0 mednafen/cdrom/galois.c:111:33: note: Null pointer dereference head mednafen/cdrom/galois.c:113:38: warning: If memory allocation fails, then there is a possible null pointer dereference: rt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:105:13: note: Assuming allocation function fails mednafen/cdrom/galois.c:104:28: note: Assignment 'rt=(struct ReedSolomonTables*)calloc(1,sizeof(struct ReedSolomonTables))', assigned value is 0 mednafen/cdrom/galois.c:113:38: note: Null pointer dereference head mednafen/cdrom/galois.c:132:59: warning: If memory allocation fails, then there is a possible null pointer dereference: rt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:105:13: note: Assuming allocation function fails mednafen/cdrom/galois.c:104:28: note: Assignment 'rt=(struct ReedSolomonTables*)calloc(1,sizeof(struct ReedSolomonTables))', assigned value is 0 mednafen/cdrom/galois.c:132:59: note: Null pointer dereference head mednafen/cdrom/galois.c:138:34: warning: If memory allocation fails, then there is a possible null pointer dereference: rt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:105:13: note: Assuming allocation function fails mednafen/cdrom/galois.c:104:28: note: Assignment 'rt=(struct ReedSolomonTables*)calloc(1,sizeof(struct ReedSolomonTables))', assigned value is 0 mednafen/cdrom/galois.c:138:34: note: Null pointer dereference head mednafen/cdrom/galois.c:76:27: warning: If memory allocation fails, then there is a possible null pointer dereference: gt [nullPointerOutOfMemory] mednafen/cdrom/galois.c:42:45: note: Assuming allocation function fails mednafen/cdrom/galois.c:42:23: note: Assignment 'gt=(struct GaloisTables*)calloc(1,sizeof(struct GaloisTables))', assigned value is 0 mednafen/cdrom/galois.c:64:8: note: Assuming condition is false mednafen/cdrom/galois.c:76:27: note: Null pointer dereference head mednafen/masmem.h:127:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/masmem.h:127:23: style: C-style pointer casting [cstyleCast] head mednafen/masmem.h:127:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head mednafen/masmem.h:129:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/masmem.h:129:34: style: C-style pointer casting [cstyleCast] head mednafen/masmem.h:129:34: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head mednafen/masmem.h:135:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/masmem.h:135:23: style: C-style pointer casting [cstyleCast] head mednafen/masmem.h:135:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head mednafen/masmem.h:137:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/masmem.h:137:34: style: C-style pointer casting [cstyleCast] head mednafen/masmem.h:137:34: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/masmem.h:161:16: style: C-style pointer casting [cstyleCast] head mednafen/masmem.h:161:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head mednafen/masmem.h:161:5: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head mednafen/masmem.h:163:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/masmem.h:163:28: style: C-style pointer casting [cstyleCast] head mednafen/masmem.h:163:28: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/masmem.h:169:16: style: C-style pointer casting [cstyleCast] head mednafen/masmem.h:169:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head mednafen/masmem.h:169:5: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head mednafen/masmem.h:171:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/masmem.h:171:28: style: C-style pointer casting [cstyleCast] head mednafen/masmem.h:171:28: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head mednafen/psx/cdc.cpp:118:15: style:inconclusive: Technically the member function 'PS_CDC::CalcNextEvent' can be const. [functionConst] mednafen/psx/cdc.h:29:13: note: Technically the member function 'PS_CDC::CalcNextEvent' can be const. mednafen/psx/cdc.cpp:118:15: note: Technically the member function 'PS_CDC::CalcNextEvent' can be const. head mednafen/psx/cdc.cpp:362:14: style:inconclusive: Technically the member function 'PS_CDC::RecalcIRQ' can be const. [functionConst] mednafen/psx/cdc.h:90:12: note: Technically the member function 'PS_CDC::RecalcIRQ' can be const. mednafen/psx/cdc.cpp:362:14: note: Technically the member function 'PS_CDC::RecalcIRQ' can be const. head mednafen/psx/cdc.cpp:501:21: style:inconclusive: Technically the member function 'PS_CDC::ApplyVolume' can be const. [functionConst] mednafen/psx/cdc.h:55:12: note: Technically the member function 'PS_CDC::ApplyVolume' can be const. mednafen/psx/cdc.cpp:501:21: note: Technically the member function 'PS_CDC::ApplyVolume' can be const. head mednafen/psx/cdc.cpp:628:29: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/psx/cdc.cpp:628:30: style: C-style pointer casting [cstyleCast] head mednafen/psx/cdc.cpp:703:29: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/psx/cdc.cpp:703:30: style: C-style pointer casting [cstyleCast] head mednafen/psx/cdc.cpp:718:33: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 mednafen/psx/cdc.cpp:718:34: style: C-style pointer casting [cstyleCast] 2.17.0 mednafen/psx/cdc.h:29:13: style:inconclusive: Technically the member function 'PS_CDC::CalcNextEvent' can be const. [functionConst] mednafen/psx/cdc.cpp:118:15: note: Technically the member function 'PS_CDC::CalcNextEvent' can be const. mednafen/psx/cdc.h:29:13: note: Technically the member function 'PS_CDC::CalcNextEvent' can be const. 2.17.0 mednafen/psx/cdc.h:55:12: style:inconclusive: Technically the member function 'PS_CDC::ApplyVolume' can be const. [functionConst] mednafen/psx/cdc.cpp:501:21: note: Technically the member function 'PS_CDC::ApplyVolume' can be const. mednafen/psx/cdc.h:55:12: note: Technically the member function 'PS_CDC::ApplyVolume' can be const. 2.17.0 mednafen/psx/cdc.h:90:12: style:inconclusive: Technically the member function 'PS_CDC::RecalcIRQ' can be const. [functionConst] mednafen/psx/cdc.cpp:362:14: note: Technically the member function 'PS_CDC::RecalcIRQ' can be const. mednafen/psx/cdc.h:90:12: note: Technically the member function 'PS_CDC::RecalcIRQ' can be const. head mednafen/psx/frontio.cpp:397:18: style:inconclusive: Technically the member function 'FrontIO::CalcNextEventTS' can be const. [functionConst] mednafen/psx/frontio.h:61:15: note: Technically the member function 'FrontIO::CalcNextEventTS' can be const. mednafen/psx/frontio.cpp:397:18: note: Technically the member function 'FrontIO::CalcNextEventTS' can be const. 2.17.0 mednafen/psx/frontio.h:61:15: style:inconclusive: Technically the member function 'FrontIO::CalcNextEventTS' can be const. [functionConst] mednafen/psx/frontio.cpp:397:18: note: Technically the member function 'FrontIO::CalcNextEventTS' can be const. mednafen/psx/frontio.h:61:15: note: Technically the member function 'FrontIO::CalcNextEventTS' can be const. head mednafen/psx/gpu.cpp:109:14: style:inconclusive: Technically the member function 'PS_GPU::FillVideoParams' can be const. [functionConst] mednafen/psx/gpu.h:48:12: note: Technically the member function 'PS_GPU::FillVideoParams' can be const. mednafen/psx/gpu.cpp:109:14: note: Technically the member function 'PS_GPU::FillVideoParams' can be const. head mednafen/psx/gpu.cpp:1118:21: performance:inconclusive: Technically the member function 'PS_GPU::ReorderRGB_Var' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/psx/gpu.h:321:12: note: Technically the member function 'PS_GPU::ReorderRGB_Var' can be static (but you may consider moving to unnamed namespace). mednafen/psx/gpu.cpp:1118:21: note: Technically the member function 'PS_GPU::ReorderRGB_Var' can be static (but you may consider moving to unnamed namespace). 2.17.0 mednafen/psx/gpu.h:276:17: style:inconclusive: Technically the member function 'PS_GPU::GetTexel' can be const. [functionConst] mednafen/psx/gpu_common.cpp:162:25: note: Technically the member function 'PS_GPU::GetTexel' can be const. mednafen/psx/gpu.h:276:17: note: Technically the member function 'PS_GPU::GetTexel' can be const. 2.17.0 mednafen/psx/gpu.h:321:12: performance:inconclusive: Technically the member function 'PS_GPU::ReorderRGB_Var' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/psx/gpu.cpp:1118:21: note: Technically the member function 'PS_GPU::ReorderRGB_Var' can be static (but you may consider moving to unnamed namespace). mednafen/psx/gpu.h:321:12: note: Technically the member function 'PS_GPU::ReorderRGB_Var' can be static (but you may consider moving to unnamed namespace). 2.17.0 mednafen/psx/gpu.h:48:12: style:inconclusive: Technically the member function 'PS_GPU::FillVideoParams' can be const. [functionConst] mednafen/psx/gpu.cpp:109:14: note: Technically the member function 'PS_GPU::FillVideoParams' can be const. mednafen/psx/gpu.h:48:12: note: Technically the member function 'PS_GPU::FillVideoParams' can be const. head mednafen/psx/gpu_common.cpp:162:25: style:inconclusive: Technically the member function 'PS_GPU::GetTexel' can be const. [functionConst] mednafen/psx/gpu.h:276:17: note: Technically the member function 'PS_GPU::GetTexel' can be const. mednafen/psx/gpu_common.cpp:162:25: note: Technically the member function 'PS_GPU::GetTexel' can be const. head mednafen/psx/input/dualanalog.cpp:118:23: style: Variable 'aba' is assigned a value that is never used. [unreadVariable] head mednafen/psx/input/dualanalog.cpp:124:109: style: C-style pointer casting [cstyleCast] head mednafen/psx/input/dualanalog.cpp:124:37: style: C-style pointer casting [cstyleCast] 2.17.0 mednafen/psx/input/dualanalog.cpp:124:38: style: C-style pointer casting [cstyleCast] head mednafen/psx/input/dualshock.cpp:312:109: style: C-style pointer casting [cstyleCast] head mednafen/psx/input/dualshock.cpp:312:37: style: C-style pointer casting [cstyleCast] 2.17.0 mednafen/psx/input/dualshock.cpp:312:38: style: C-style pointer casting [cstyleCast] head mednafen/psx/input/negcon.cpp:101:34: style: C-style pointer casting [cstyleCast] 2.17.0 mednafen/psx/input/negcon.cpp:101:35: style: C-style pointer casting [cstyleCast] head mednafen/psx/input/negcon.cpp:102:34: style: C-style pointer casting [cstyleCast] 2.17.0 mednafen/psx/input/negcon.cpp:102:35: style: C-style pointer casting [cstyleCast] head mednafen/psx/input/negcon.cpp:103:34: style: C-style pointer casting [cstyleCast] 2.17.0 mednafen/psx/input/negcon.cpp:103:35: style: C-style pointer casting [cstyleCast] head mednafen/psx/input/negcon.cpp:99:35: style: C-style pointer casting [cstyleCast] 2.17.0 mednafen/psx/input/negcon.cpp:99:36: style: C-style pointer casting [cstyleCast] head mednafen/psx/input/negcon.cpp:99:84: style: C-style pointer casting [cstyleCast] head mednafen/psx/spu.cpp:1483:16: style:inconclusive: Technically the member function 'PS_SPU::PeekSPURAM' can be const. [functionConst] mednafen/psx/spu.h:327:16: note: Technically the member function 'PS_SPU::PeekSPURAM' can be const. mednafen/psx/spu.cpp:1483:16: note: Technically the member function 'PS_SPU::PeekSPURAM' can be const. head mednafen/psx/spu.cpp:237:25: style:inconclusive: Technically the member function 'SPU_Sweep::ReadVolume' can be const. [functionConst] mednafen/psx/spu.h:50:10: note: Technically the member function 'SPU_Sweep::ReadVolume' can be const. mednafen/psx/spu.cpp:237:25: note: Technically the member function 'SPU_Sweep::ReadVolume' can be const. head mednafen/psx/spu.cpp:443:14: performance:inconclusive: Technically the member function 'PS_SPU::CacheEnvelope' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/psx/spu.h:123:12: note: Technically the member function 'PS_SPU::CacheEnvelope' can be static (but you may consider moving to unnamed namespace). mednafen/psx/spu.cpp:443:14: note: Technically the member function 'PS_SPU::CacheEnvelope' can be static (but you may consider moving to unnamed namespace). head mednafen/psx/spu.cpp:467:14: performance:inconclusive: Technically the member function 'PS_SPU::ResetEnvelope' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/psx/spu.h:124:12: note: Technically the member function 'PS_SPU::ResetEnvelope' can be static (but you may consider moving to unnamed namespace). mednafen/psx/spu.cpp:467:14: note: Technically the member function 'PS_SPU::ResetEnvelope' can be static (but you may consider moving to unnamed namespace). head mednafen/psx/spu.cpp:476:14: performance:inconclusive: Technically the member function 'PS_SPU::ReleaseEnvelope' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/psx/spu.h:125:12: note: Technically the member function 'PS_SPU::ReleaseEnvelope' can be static (but you may consider moving to unnamed namespace). mednafen/psx/spu.cpp:476:14: note: Technically the member function 'PS_SPU::ReleaseEnvelope' can be static (but you may consider moving to unnamed namespace). head mednafen/psx/spu.cpp:485:14: performance:inconclusive: Technically the member function 'PS_SPU::RunEnvelope' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/psx/spu.h:126:12: note: Technically the member function 'PS_SPU::RunEnvelope' can be static (but you may consider moving to unnamed namespace). mednafen/psx/spu.cpp:485:14: note: Technically the member function 'PS_SPU::RunEnvelope' can be static (but you may consider moving to unnamed namespace). head mednafen/psx/spu.cpp:584:23: style:inconclusive: Technically the member function 'PS_SPU::Get_Reverb_Offset' can be const. [functionConst] mednafen/psx/spu.h:232:16: note: Technically the member function 'PS_SPU::Get_Reverb_Offset' can be const. mednafen/psx/spu.cpp:584:23: note: Technically the member function 'PS_SPU::Get_Reverb_Offset' can be const. head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_COEF_A' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_COEF_B' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_COEF_C' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_COEF_D' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_SRC_A0' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_SRC_A1' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_SRC_B0' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_SRC_B1' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_SRC_C0' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_SRC_C1' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_SRC_D0' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ACC_SRC_D1' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::AuxRegs' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::BlockEnd' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::CDVol' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::CWA' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ExternVol' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::FB_ALPHA' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::FB_SRC_A' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::FB_SRC_B' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::FB_X' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::FM_Mode' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::GlobalRegs' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IIR_ALPHA' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IIR_COEF' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IIR_DEST_A0' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IIR_DEST_A1' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IIR_DEST_B0' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IIR_DEST_B1' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IIR_SRC_A0' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IIR_SRC_A1' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IIR_SRC_B0' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IIR_SRC_B1' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IN_COEF_L' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IN_COEF_R' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IRQAddr' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::IRQAsserted' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::LFSR' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::MIX_DEST_A0' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::MIX_DEST_A1' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::MIX_DEST_B0' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::MIX_DEST_B1' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::NoiseCounter' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::NoiseDivider' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::Noise_Mode' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::RDSB' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::RUSB' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::RWAddr' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::Regs' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ReverbCur' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ReverbRegs' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ReverbVol' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::ReverbWA' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::Reverb_Mode' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::RvbResPos' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::SPUControl' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::SPURAM' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::SPUStatus' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::VoiceOff' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::VoiceOn' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::VoiceRegs' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::Voices' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::_Global0' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::_Global1' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::clock_divider' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::last_quality' is not initialized in the constructor. [uninitMemberVar] head mednafen/psx/spu.cpp:88:9: warning: Member variable 'PS_SPU::last_rate' is not initialized in the constructor. [uninitMemberVar] 2.17.0 mednafen/psx/spu.h:123:12: performance:inconclusive: Technically the member function 'PS_SPU::CacheEnvelope' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/psx/spu.cpp:443:14: note: Technically the member function 'PS_SPU::CacheEnvelope' can be static (but you may consider moving to unnamed namespace). mednafen/psx/spu.h:123:12: note: Technically the member function 'PS_SPU::CacheEnvelope' can be static (but you may consider moving to unnamed namespace). 2.17.0 mednafen/psx/spu.h:124:12: performance:inconclusive: Technically the member function 'PS_SPU::ResetEnvelope' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/psx/spu.cpp:467:14: note: Technically the member function 'PS_SPU::ResetEnvelope' can be static (but you may consider moving to unnamed namespace). mednafen/psx/spu.h:124:12: note: Technically the member function 'PS_SPU::ResetEnvelope' can be static (but you may consider moving to unnamed namespace). 2.17.0 mednafen/psx/spu.h:125:12: performance:inconclusive: Technically the member function 'PS_SPU::ReleaseEnvelope' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/psx/spu.cpp:476:14: note: Technically the member function 'PS_SPU::ReleaseEnvelope' can be static (but you may consider moving to unnamed namespace). mednafen/psx/spu.h:125:12: note: Technically the member function 'PS_SPU::ReleaseEnvelope' can be static (but you may consider moving to unnamed namespace). 2.17.0 mednafen/psx/spu.h:126:12: performance:inconclusive: Technically the member function 'PS_SPU::RunEnvelope' can be static (but you may consider moving to unnamed namespace). [functionStatic] mednafen/psx/spu.cpp:485:14: note: Technically the member function 'PS_SPU::RunEnvelope' can be static (but you may consider moving to unnamed namespace). mednafen/psx/spu.h:126:12: note: Technically the member function 'PS_SPU::RunEnvelope' can be static (but you may consider moving to unnamed namespace). 2.17.0 mednafen/psx/spu.h:232:16: style:inconclusive: Technically the member function 'PS_SPU::Get_Reverb_Offset' can be const. [functionConst] mednafen/psx/spu.cpp:584:23: note: Technically the member function 'PS_SPU::Get_Reverb_Offset' can be const. mednafen/psx/spu.h:232:16: note: Technically the member function 'PS_SPU::Get_Reverb_Offset' can be const. 2.17.0 mednafen/psx/spu.h:327:16: style:inconclusive: Technically the member function 'PS_SPU::PeekSPURAM' can be const. [functionConst] mednafen/psx/spu.cpp:1483:16: note: Technically the member function 'PS_SPU::PeekSPURAM' can be const. mednafen/psx/spu.h:327:16: note: Technically the member function 'PS_SPU::PeekSPURAM' can be const. 2.17.0 mednafen/psx/spu.h:50:10: style:inconclusive: Technically the member function 'SPU_Sweep::ReadVolume' can be const. [functionConst] mednafen/psx/spu.cpp:237:25: note: Technically the member function 'SPU_Sweep::ReadVolume' can be const. mednafen/psx/spu.h:50:10: note: Technically the member function 'SPU_Sweep::ReadVolume' can be const. head mednafen/state.cpp:133:27: style: C-style pointer casting [cstyleCast] 2.17.0 mednafen/state.cpp:133:28: style: C-style pointer casting [cstyleCast] head mednafen/state.cpp:260:20: style: C-style pointer casting [cstyleCast] 2.17.0 mednafen/state.cpp:260:21: style: C-style pointer casting [cstyleCast] head mednafen/state.cpp:289:26: style: C-style pointer casting [cstyleCast] 2.17.0 mednafen/state.cpp:289:27: style: C-style pointer casting [cstyleCast] head mednafen/state.cpp:368:56: style: C-style pointer casting [cstyleCast] head mednafen/state.cpp:412:19: style: C-style pointer casting [cstyleCast] 2.17.0 mednafen/state.cpp:412:20: style: C-style pointer casting [cstyleCast] head mednafen/state.cpp:480:19: style: C-style pointer casting [cstyleCast] 2.17.0 mednafen/state.cpp:480:20: style: C-style pointer casting [cstyleCast] head mednafen/state.cpp:490:19: style: C-style pointer casting [cstyleCast] 2.17.0 mednafen/state.cpp:490:20: style: C-style pointer casting [cstyleCast] head mednafen/state.cpp:516:19: style: C-style pointer casting [cstyleCast] 2.17.0 mednafen/state.cpp:516:20: style: C-style pointer casting [cstyleCast] head mednafen/tremor/floor0.c:366:39: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor0.c:354:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:354:28: note: Assignment 'look=(struct vorbis_look_floor0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor0.c:366:39: note: Null pointer dereference head mednafen/tremor/floor0.c:377:45: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor0.c:354:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:354:28: note: Assignment 'look=(struct vorbis_look_floor0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor0.c:377:45: note: Null pointer dereference head mednafen/tremor/floor0.c:379:51: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/floor0.c:354:61: note: Assuming allocation function fails mednafen/tremor/floor0.c:354:28: note: Assignment 'look=(struct vorbis_look_floor0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/floor0.c:379:51: note: Null pointer dereference head mednafen/tremor/mapping0.c:105:25: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/mapping0.c:89:65: note: Assuming allocation function fails mednafen/tremor/mapping0.c:89:30: note: Assignment 'look=(struct vorbis_look_mapping0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/mapping0.c:105:25: note: Null pointer dereference head mednafen/tremor/mapping0.c:108:27: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/mapping0.c:89:65: note: Assuming allocation function fails mednafen/tremor/mapping0.c:89:30: note: Assignment 'look=(struct vorbis_look_mapping0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/mapping0.c:108:27: note: Null pointer dereference head mednafen/tremor/res012.c:163:45: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:163:45: note: Null pointer dereference head mednafen/tremor/res012.c:181:18: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:181:18: note: Null pointer dereference head mednafen/tremor/res012.c:182:37: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:182:37: note: Null pointer dereference head mednafen/tremor/res012.c:184:39: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:184:39: note: Null pointer dereference head mednafen/tremor/res012.c:187:30: warning: If memory allocation fails, then there is a possible null pointer dereference: look [nullPointerOutOfMemory] mednafen/tremor/res012.c:149:65: note: Assuming allocation function fails mednafen/tremor/res012.c:149:30: note: Assignment 'look=(struct vorbis_look_residue0*)calloc(1,sizeof(*look))', assigned value is 0 mednafen/tremor/res012.c:187:30: note: Null pointer dereference 2.17.0 mednafen/tremor/res012.c:262:26: style: Parameter 'nonzero' can be declared as pointer to const [constParameterPointer] head mednafen/tremor/res012.c:262:26: style: Parameter 'nonzero' can be declared as pointer to const. However it seems that 'res0_inverse' is a callback function, if 'nonzero' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mednafen/tremor/res012.c:349:4: note: You might need to cast the function pointer here mednafen/tremor/res012.c:262:26: note: Parameter 'nonzero' can be declared as pointer to const 2.17.0 mednafen/tremor/res012.c:274:26: style: Parameter 'nonzero' can be declared as pointer to const [constParameterPointer] head mednafen/tremor/res012.c:274:26: style: Parameter 'nonzero' can be declared as pointer to const. However it seems that 'res1_inverse' is a callback function, if 'nonzero' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mednafen/tremor/res012.c:357:4: note: You might need to cast the function pointer here mednafen/tremor/res012.c:274:26: note: Parameter 'nonzero' can be declared as pointer to const 2.17.0 mednafen/tremor/res012.c:287:26: style: Parameter 'nonzero' can be declared as pointer to const [constParameterPointer] head mednafen/tremor/res012.c:287:26: style: Parameter 'nonzero' can be declared as pointer to const. However it seems that 'res2_inverse' is a callback function, if 'nonzero' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mednafen/tremor/res012.c:365:4: note: You might need to cast the function pointer here mednafen/tremor/res012.c:287:26: note: Parameter 'nonzero' can be declared as pointer to const head mednafen/video/Deinterlacer.cpp:43:20: style: Unused private function: 'Deinterlacer::InternalProcess' [unusedPrivateFunction] mednafen/video/Deinterlacer.h:50:7: note: Unused private function: 'Deinterlacer::InternalProcess' mednafen/video/Deinterlacer.cpp:43:20: note: Unused private function: 'Deinterlacer::InternalProcess' 2.17.0 mednafen/video/Deinterlacer.h:50:7: style: Unused private function: 'Deinterlacer::InternalProcess' [unusedPrivateFunction] head mednafen/video/surface.cpp:43:15: warning: Member variable 'MDFN_Surface::palette' is not initialized in the constructor. [uninitMemberVar] head mednafen/video/surface.cpp:53:15: warning: Member variable 'MDFN_Surface::palette' is not initialized in the constructor. [uninitMemberVar] DONE