Skip to content

Commit

Permalink
fix: resolve another compiler warning
Browse files Browse the repository at this point in the history
```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>
  • Loading branch information
RaisinTen committed Oct 19, 2022
1 parent 5b5dcee commit 687cc56
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion postject-api.h
Expand Up @@ -93,7 +93,6 @@ static const void* postject_find_resource(

return ptr;
#elif defined(__linux__)
void* ptr = NULL;

if (options != NULL && options->elf_section_name != NULL) {
name = options->elf_section_name;
Expand Down

0 comments on commit 687cc56

Please sign in to comment.