forked from qt-creator/qt-creator
VCS: Remove export for inline functions
vcsenums.h:29:28: warning: inline function 'void VcsBase::operator|=(VcsBase::RunFlags&, VcsBase::RunFlags)' declared as dllimport: attribute ignored [-Wattributes]
29 | inline void VCSBASE_EXPORT operator|=(RunFlags &p, RunFlags r)
| ^~~~~~~~
Change-Id: I0490965260302009bb49ed1c4be994496cbe186f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
774b74583e
commit
913c6f037c
@@ -26,24 +26,24 @@ enum class RunFlags {
|
||||
NoOutput = SuppressStdErr | SuppressFailMessage | SuppressCommandLogging
|
||||
};
|
||||
|
||||
inline void VCSBASE_EXPORT operator|=(RunFlags &p, RunFlags r)
|
||||
inline void operator|=(RunFlags &p, RunFlags r)
|
||||
{
|
||||
p = RunFlags(int(p) | int(r));
|
||||
}
|
||||
|
||||
inline RunFlags VCSBASE_EXPORT operator|(RunFlags p, RunFlags r)
|
||||
inline RunFlags operator|(RunFlags p, RunFlags r)
|
||||
{
|
||||
return RunFlags(int(p) | int(r));
|
||||
}
|
||||
|
||||
inline void VCSBASE_EXPORT operator&=(RunFlags &p, RunFlags r)
|
||||
inline void operator&=(RunFlags &p, RunFlags r)
|
||||
{
|
||||
p = RunFlags(int(p) & int(r));
|
||||
}
|
||||
|
||||
// Note, that it returns bool, not RunFlags.
|
||||
// It's only meant for testing whether a specific bit is set.
|
||||
inline bool VCSBASE_EXPORT operator&(RunFlags p, RunFlags r)
|
||||
inline bool operator&(RunFlags p, RunFlags r)
|
||||
{
|
||||
return bool(int(p) & int(r));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user