qulogic/gplugin

suppress a pvs-studio warning
feature/runtime-version-check
2020-02-22, Gary Kramlich
846d3245caf5
Parents d2b67454c6db
Children 5fbfc8bede24
suppress a pvs-studio warning
--- a/gplugin/gplugin-version.c Sat Feb 22 04:42:39 2020 -0600
+++ b/gplugin/gplugin-version.c Sat Feb 22 04:49:11 2020 -0600
@@ -185,12 +185,16 @@
if(major > GPLUGIN_MAJOR_VERSION) {
return "gplugin version too old (major mismatch)";
}
- if(major < GPLUGIN_MAJOR_VERSION) {
+
+ /* disable the pvs-studio suppression after 1.0.0 is released */
+ if(major < GPLUGIN_MAJOR_VERSION) { //-V547
return "gplugin version too new (major mismatch)";
}
+
if(minor > GPLUGIN_MINOR_VERSION) {
return "gplugin version too old (minor mismatch)";
}
+
if(minor == GPLUGIN_MINOR_VERSION && micro > GPLUGIN_MICRO_VERSION) {
return "gplugin version too old (micro mismatch)";
}