Files
tqma6-yocto-mirror/sources/meta-openembedded/meta-networking/recipes-daemons/openhpi/files/fix-narrowing-warning.patch
Siggi (OpenClaw Agent) 16accb6b24 Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved)
- Complete sources/ directory with all BitBake recipes
- Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl)
- Full traceability for Softwarefreigabeantrag
- GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4
- License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
2026-03-01 21:14:11 +00:00

23 lines
948 B
Diff

Upstream-Status: Pending
Fix
sensor_factors_000.cpp:66:5: error: non-constant-expression cannot be narrowed from type 'int' to 'unsigned char' in initializer list [-Wc++11-narrowing]
((dRExp << 4) & 0xf0) | (dBExp & 0x0f ), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Index: openhpi-3.6.1/plugins/ipmidirect/t/sensor_factors_000.cpp
===================================================================
--- openhpi-3.6.1.orig/plugins/ipmidirect/t/sensor_factors_000.cpp
+++ openhpi-3.6.1/plugins/ipmidirect/t/sensor_factors_000.cpp
@@ -63,7 +63,7 @@ static cIpmiSdr sdr =
dB & 0xff,
((dB >> 2) & 0xc0) | (dAccuracy & 0x3f),
((dAccuracy >> 2) & 0xf0) | ((dAccuracyExp << 2) & 0x0c),
- ((dRExp << 4) & 0xf0) | (dBExp & 0x0f ),
+ (unsigned char)(((dRExp << 4) & 0xf0) | (dBExp & 0x0f )),
0,
0,
}