forked from lix-project/nix-eval-jobs
Ignore -Wnon-virtual-dtor for static struct.
This commit is contained in:
parent
2871c7a3f4
commit
0e0c6c44d0
|
@ -31,6 +31,9 @@ using namespace nix;
|
||||||
|
|
||||||
typedef enum { evalAuto, evalImpure, evalPure } pureEval;
|
typedef enum { evalAuto, evalImpure, evalPure } pureEval;
|
||||||
|
|
||||||
|
// Safe to ignore - the args will be static.
|
||||||
|
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
|
||||||
|
#pragma clang diagnostic ignored "-Wnon-virtual-dtor"
|
||||||
struct MyArgs : MixEvalArgs, MixCommonArgs
|
struct MyArgs : MixEvalArgs, MixCommonArgs
|
||||||
{
|
{
|
||||||
Path releaseExpr;
|
Path releaseExpr;
|
||||||
|
@ -113,6 +116,8 @@ struct MyArgs : MixEvalArgs, MixCommonArgs
|
||||||
expectArg("expr", &releaseExpr);
|
expectArg("expr", &releaseExpr);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
#pragma GCC diagnostic warning "-Wnon-virtual-dtor"
|
||||||
|
#pragma clang diagnostic warning "-Wnon-virtual-dtor"
|
||||||
|
|
||||||
static MyArgs myArgs;
|
static MyArgs myArgs;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue