mirror of
https://github.com/allankoechke/soci.git
synced 2026-11-30 10:58:24 +00:00
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:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user