sonarlint work

This commit is contained in:
Jasmine Iwanek
2023-06-27 10:21:51 -04:00
parent 797351a381
commit 8febf96669
18 changed files with 152 additions and 109 deletions

View File

@@ -552,9 +552,8 @@ pc_cas_print_state(UNUSED(const pc_cassette_t *cas))
static void
pc_cas_clock_pcm(pc_cassette_t *cas, unsigned long cnt)
{
unsigned long i;
unsigned long n;
int v = 0;
uint64_t n;
int v = 0;
n = cas->srate * cnt + cas->clk_pcm;
@@ -567,11 +566,11 @@ pc_cas_clock_pcm(pc_cassette_t *cas, unsigned long cnt)
}
if (cas->save) {
for (i = 0; i < n; i++) {
for (uint64_t i = 0; i < n; i++) {
pc_cas_write_smp(cas, cas->pcm_out_val);
}
} else {
for (i = 0; i < n; i++) {
for (uint64_t i = 0; i < n; i++) {
v = pc_cas_read_smp(cas);
}

View File

@@ -31,7 +31,7 @@
#include <86box/io.h>
#include <86box/timer.h>
#include <86box/device.h>
#include <86box/plat.h> // Replace with plat_unused.h when upstreamed
#include <86box/plat_unused.h>
#include <86box/hwm.h>
#include <86box/nsc366.h>

View File

@@ -30,7 +30,7 @@
#include <86box/io.h>
#include <86box/device.h>
#include <86box/intel_ich2_gpio.h>
#include <86box/plat.h> // Replace with plat_unused.h when upstreamed
#include <86box/plat_unused.h>
#ifdef ENABLE_INTEL_ICH2_GPIO_LOG
int intel_ich2_gpio_do_log = ENABLE_INTEL_ICH2_GPIO_LOG;

View File

@@ -29,7 +29,7 @@
#include <86box/timer.h>
#include <86box/io.h>
#include <86box/device.h>
#include <86box/plat.h> // Replace with plat_unused.h when upstreamed
#include <86box/plat_unused.h>
#include <86box/apm.h>
#include <86box/nvr.h>

View File

@@ -36,7 +36,7 @@
#include <86box/pic.h>
#include <86box/pit.h>
#include <86box/tco.h>
#include <86box/plat.h> // Replace with plat_unused.h when upstreamed
#include <86box/plat_unused.h>
#ifdef ENABLE_TCO_LOG
int tco_do_log = ENABLE_TCO_LOG;