From 8575c924fbd2b6e7931872fc91108c85f9ffd7e3 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Wed, 6 Sep 2017 20:25:10 -0500 Subject: [PATCH] quiet warnings --- pdbApp/pdb.cpp | 2 +- pdbApp/pdbsingle.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pdbApp/pdb.cpp b/pdbApp/pdb.cpp index a2144bb..879dc8b 100644 --- a/pdbApp/pdb.cpp +++ b/pdbApp/pdb.cpp @@ -409,7 +409,7 @@ PDBProvider::PDBProvider(const epics::pvAccess::Configuration::shared_pointer &) if(!proc.groups.empty()) { fprintf(stderr, "pdbGroup(s) were defined, but need Base >=3.16.0.2 to function. Ignoring.\n"); } -#endif USE_MULTILOCK +#endif // USE_MULTILOCK event_context = db_init_events(); if(!event_context) diff --git a/pdbApp/pdbsingle.cpp b/pdbApp/pdbsingle.cpp index 70c27ab..fa5e56c 100644 --- a/pdbApp/pdbsingle.cpp +++ b/pdbApp/pdbsingle.cpp @@ -150,11 +150,13 @@ int single_put_callback(struct processNotify *notify,notifyPutType type) { PDBSinglePut *self = (PDBSinglePut*)notify->usrPvt; - if(notify->status!=notifyOK || type==putDisabledType) return 0; + if(notify->status!=notifyOK) return 0; // we've previously ensured that wait_changed&DBE_VALUE is true switch(type) { + case putDisabledType: + return 0; case putFieldType: { DBScanLocker L(notify->chan);