]> git.pld-linux.org Git - packages/hwsd.git/blobdiff - hwsd-Werror.patch
- added Werror patch (disable stringop-truncation warning on valid use of strncpy...
[packages/hwsd.git] / hwsd-Werror.patch
diff --git a/hwsd-Werror.patch b/hwsd-Werror.patch
new file mode 100644 (file)
index 0000000..c2281ec
--- /dev/null
@@ -0,0 +1,18 @@
+--- hwsd-2.0.1/hwsd/gpuInfo.cpp.orig   2020-08-01 07:38:16.290443380 +0200
++++ hwsd-2.0.1/hwsd/gpuInfo.cpp        2020-08-01 07:38:20.360657269 +0200
+@@ -37,7 +37,15 @@
+     , unused(0)
+ {
+     invalidatePVP();
++#if __GNUC__ >= 8
++    /* ignore "specified bound 4 equals destination size" */
++#pragma GCC diagnostic push
++#pragma GCC diagnostic ignored "-Wstringop-truncation"
++#endif
+     strncpy(reinterpret_cast<char*>(&type), name.c_str(), 4);
++#if __GNUC__ >= 8
++#pragma GCC diagnostic push
++#endif
+ }
+ void GPUInfo::invalidatePVP()
This page took 0.094268 seconds and 4 git commands to generate.