Skip to content

Commit 433583e

Browse files
committed
fix: resolve another compiler warning
```console In file included from /root/project/test/test.c:4: /root/project/test/../dist/postject-api.h: In function 'postject_find_resource': /root/project/test/../dist/postject-api.h:96:9: error: unused variable 'ptr' [-Werror=unused-variable] 96 | void* ptr = NULL; | ^~~ cc1: all warnings being treated as errors ``` Refs: https://app.circleci.com/pipelines/github/postmanlabs/postject/180/workflows/d0eb47c0-5482-4c85-9c63-aa854ddb0221/jobs/1398?invite=true#step-110-678 Signed-off-by: Darshan Sen <raisinten@gmail.com>
1 parent 5b5dcee commit 433583e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

postject-api.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ static const void* postject_find_resource(
140140
return NULL;
141141

142142
#elif defined(_WIN32)
143-
void* ptr = NULL;
144143
char* resource_name = NULL;
145144

146145
if (options != NULL && options->pe_resource_name != NULL) {

0 commit comments

Comments
 (0)