From 9d1cf618ab45e86f8c99b82d2221ee88644e76e5 Mon Sep 17 00:00:00 2001 From: Sirius Bakke Date: Sat, 22 Jul 2023 20:06:23 +0200 Subject: [PATCH] fix: Ignore unused parameter --- src/iosacl/iosacl.cpp | 2 +- src/junosacl/junosacl.cpp | 2 +- src/nxosacl/nxosacl.cpp | 2 +- src/pix/pix.cpp | 4 ++-- src/procurve_acl/procurve_acl.cpp | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/iosacl/iosacl.cpp b/src/iosacl/iosacl.cpp index f7afeeb13..d9d884fcd 100644 --- a/src/iosacl/iosacl.cpp +++ b/src/iosacl/iosacl.cpp @@ -75,7 +75,7 @@ class UpgradePredicate: public XMLTools::UpgradePredicate public: virtual bool operator()(const string &msg) const { - msg.size(); // to make compiler happy about unused parameter + (void)msg.size(); // to make compiler happy about unused parameter cout << "Data file has been created in the old version of Firewall Builder.\nLoad it in the GUI to convert it to the new version." << endl; return false; } diff --git a/src/junosacl/junosacl.cpp b/src/junosacl/junosacl.cpp index a3072919c..827df49c9 100644 --- a/src/junosacl/junosacl.cpp +++ b/src/junosacl/junosacl.cpp @@ -75,7 +75,7 @@ class UpgradePredicate: public XMLTools::UpgradePredicate public: virtual bool operator()(const string &msg) const { - msg.size(); // to make compiler happy about unused parameter + (void)msg.size(); // to make compiler happy about unused parameter cout << "Data file has been created in the old version of Firewall Builder.\nLoad it in the GUI to convert it to the new version." << endl; return false; } diff --git a/src/nxosacl/nxosacl.cpp b/src/nxosacl/nxosacl.cpp index 8946ee1ef..7d8c80587 100644 --- a/src/nxosacl/nxosacl.cpp +++ b/src/nxosacl/nxosacl.cpp @@ -75,7 +75,7 @@ class UpgradePredicate: public XMLTools::UpgradePredicate public: virtual bool operator()(const string &msg) const { - msg.size(); // to make compiler happy about unused parameter + (void)msg.size(); // to make compiler happy about unused parameter cout << "Data file has been created in the old version of Firewall Builder.\nLoad it in the GUI to convert it to the new version." << endl; return false; } diff --git a/src/pix/pix.cpp b/src/pix/pix.cpp index e27c63004..eea10dcbb 100644 --- a/src/pix/pix.cpp +++ b/src/pix/pix.cpp @@ -76,13 +76,13 @@ class UpgradePredicate: public XMLTools::UpgradePredicate public: virtual bool operator()(const string &msg) const { - msg.size(); // to make compiler happy about unused parameter + (void)msg.size(); // to make compiler happy about unused parameter cout << "Data file has been created in the old version of Firewall Builder.\nLoad it in the GUI to convert it to the new version." << endl; return false; } }; - + void usage(const char *name) { cout << "Firewall Builder: policy compiler for Cisco PIX firewall (with support for FWSM)" << endl; diff --git a/src/procurve_acl/procurve_acl.cpp b/src/procurve_acl/procurve_acl.cpp index 9e3bfd7de..f85df98b8 100644 --- a/src/procurve_acl/procurve_acl.cpp +++ b/src/procurve_acl/procurve_acl.cpp @@ -75,7 +75,7 @@ class UpgradePredicate: public XMLTools::UpgradePredicate public: virtual bool operator()(const string &msg) const { - msg.size(); // to make compiler happy about unused parameter + (void)msg.size(); // to make compiler happy about unused parameter cout << "Data file has been created in the old version of Firewall Builder.\nLoad it in the GUI to convert it to the new version." << endl; return false; }