Don't put semicolon inside SOCI_UNUSED() macro

This was inconsistent with the other statement-like macros in SOCI
itself and globally unusual.

Add semicolons to a couple of places where they were not used (they
already were in a couple of other ones).

No real changes.
This commit is contained in:
Vadim Zeitlin
2025-06-13 17:06:34 +02:00
parent 71c189efe8
commit add463ba73
2 changed files with 7 additions and 3 deletions

View File

@@ -115,7 +115,11 @@ template<> struct cond_to_isc<false>
};
template<> struct cond_to_isc<true>
{
static void checkInteger(short scale,short type) { SOCI_UNUSED(scale) SOCI_UNUSED(type) }
static void checkInteger(short scale,short type)
{
SOCI_UNUSED(scale);
SOCI_UNUSED(type);
}
};
template<typename T1>
@@ -219,7 +223,7 @@ template<> struct cond_from_isc<true> {
};
template<> struct cond_from_isc<false>
{
static void checkInteger(short scale) { SOCI_UNUSED(scale) }
static void checkInteger(short scale) { SOCI_UNUSED(scale); }
};
template<typename T1>

View File

@@ -95,7 +95,7 @@ private: \
classname(const classname&) = delete; \
classname& operator=(const classname&) = delete;
#define SOCI_UNUSED(x) (void)x;
#define SOCI_UNUSED(x) (void)x
// This macro can be used to avoid warnings from MSVC (and sometimes from gcc,
// if initialization is indirect) about "uninitialized" variables that are