Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean-ups from various static analysis engine. #9

Merged
merged 14 commits into from
Sep 27, 2020
Merged

Clean-ups from various static analysis engine. #9

merged 14 commits into from
Sep 27, 2020

Conversation

0vercl0k
Copy link
Owner

No description provided.

diff --git a/src/python/python-kdmp.cc b/src/python/python-kdmp.cc
index 4682b42..6444770 100644
--- a/src/python/python-kdmp.cc
+++ b/src/python/python-kdmp.cc
@@ -7,10 +7,12 @@
 //

 PyObject *NewDumpParser(PyTypeObject *Type, PyObject *Args, PyObject *Kwds) {
+  UNREFERENCED_PARAMETER(Kwds);

   //
   // Allocate and zero PythonDumpParser.
   //
+
   PythonDumpParser *Self =
       reinterpret_cast<PythonDumpParser *>(Type->tp_alloc(Type, 0));
   Self->DumpParser = nullptr;
@@ -74,6 +76,7 @@ void DeleteDumpParser(PyObject *Object) {
 //

 PyObject *DumpParserGetType(PyObject *Object, PyObject *NotUsed) {
+  UNREFERENCED_PARAMETER(NotUsed);

   //
   // Get the dump type (FullDump, KernelDump or BMPDump).
@@ -89,6 +92,7 @@ PyObject *DumpParserGetType(PyObject *Object, PyObject *NotUsed) {
 //

 PyObject *DumpParserGetContext(PyObject *Object, PyObject *NotUsed) {
+  UNREFERENCED_PARAMETER(NotUsed);

   //
   // Get the dump context (commons registers).
@@ -139,6 +143,7 @@ PyObject *DumpParserGetContext(PyObject *Object, PyObject *NotUsed) {
 //

 PyObject *DumpParserGetBugCheckParameters(PyObject *Object, PyObject *NotUsed) {
+  UNREFERENCED_PARAMETER(NotUsed);

   //
   // Retrieve the bugcheck parameters.
diff --git a/src/python/python-kdmp.cc b/src/python/python-kdmp.cc
index 6444770..55d0a92 100644
--- a/src/python/python-kdmp.cc
+++ b/src/python/python-kdmp.cc
@@ -6,8 +6,7 @@
 //   >>> Dump(filepath)
 //

-PyObject *NewDumpParser(PyTypeObject *Type, PyObject *Args, PyObject *Kwds) {
-  UNREFERENCED_PARAMETER(Kwds);
+PyObject *NewDumpParser(PyTypeObject *Type, PyObject *Args, PyObject *) {

   //
   // Allocate and zero PythonDumpParser.
@@ -75,8 +74,7 @@ void DeleteDumpParser(PyObject *Object) {
 //  >>> dump_instance.type() # return int
 //

-PyObject *DumpParserGetType(PyObject *Object, PyObject *NotUsed) {
-  UNREFERENCED_PARAMETER(NotUsed);
+PyObject *DumpParserGetType(PyObject *Object, PyObject *) {

   //
   // Get the dump type (FullDump, KernelDump or BMPDump).
@@ -91,8 +89,7 @@ PyObject *DumpParserGetType(PyObject *Object, PyObject *NotUsed) {
 //  >>> dump_instance.context() # return dict(str -> int)
 //

-PyObject *DumpParserGetContext(PyObject *Object, PyObject *NotUsed) {
-  UNREFERENCED_PARAMETER(NotUsed);
+PyObject *DumpParserGetContext(PyObject *Object, PyObject *) {

   //
   // Get the dump context (commons registers).
@@ -142,8 +139,7 @@ PyObject *DumpParserGetContext(PyObject *Object, PyObject *NotUsed) {
 //  >>> dump_instance.bugcheck() # return dict
 //

-PyObject *DumpParserGetBugCheckParameters(PyObject *Object, PyObject *NotUsed) {
-  UNREFERENCED_PARAMETER(NotUsed);
+PyObject *DumpParserGetBugCheckParameters(PyObject *Object, PyObject *) {

   //
   // Retrieve the bugcheck parameters.
@0vercl0k 0vercl0k merged commit 0114c86 into master Sep 27, 2020
@0vercl0k 0vercl0k deleted the fbl_nits branch September 27, 2020 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant