hmdel compiler warning for -Wall #1733
Answered
by
nothings
jmcpheters
asked this question in
Q&A
-
I notice when my program uses hmdel, when compiled with -Wall, it has the the warning shown below that can be suppress by -Wno-unused-value. Is the warning shown below expected and OK? Below I've also included an example program, which appears to execute as expected. Please advise. Warning:
An example program is:
|
Beta Was this translation helpful? Give feedback.
Answered by
nothings
Dec 24, 2024
Replies: 1 comment
-
I think |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jmcpheters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think
hmdel
returns the deleted item if it was present, so you should just cast to(void)
if you're not using its return value, same as any function.