Skip to content

enca: fix compiler warnings for GCC with -Wunused-but-set-variable#98

Open
heitbaum wants to merge 1 commit intoProject-OSS-Revival:masterfrom
heitbaum:patch-1
Open

enca: fix compiler warnings for GCC with -Wunused-but-set-variable#98
heitbaum wants to merge 1 commit intoProject-OSS-Revival:masterfrom
heitbaum:patch-1

Conversation

@heitbaum
Copy link
Copy Markdown
Contributor

Variable 'map_created' in xtable() is only used in assert() which is compiled out when -DNDEBUG is defined. Wrap the block in #ifndef NDEBUG to preserve debug-build sanity checking while silencing the warning in release builds.

Variable 'map_created' in xtable() is only used in assert() which is
compiled out when -DNDEBUG is defined. Wrap the block in #ifndef NDEBUG
to preserve debug-build sanity checking while silencing the warning in
release builds.
@Syed-Shahrukh-OSSRevival
Copy link
Copy Markdown
Member

Thank you for your contribution, makes sense.
You can utilize DEBUG.

changelog entry

2003-06-24  David Necas (Yeti) <yeti@physics.muni.cz>
    * lib/internal.h: added enca_csname macro and #include <stdio.h> when
      DEBUG is defined

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.

2 participants