bind9/lib/ns
Aram Sargsyan 369a350e04 Resolve false positive compilation warning from some GCC versions
The complier claims that 'qresult_type' may be used uninitialized,
though all the cases inside the switch either set the variable
or return from the function, and the warning is generated on a line
after the switch-case block.

Slightly modify the code to set a default value for the variable when
declaring it.

    In function 'rpz_rewrite',
        inlined from 'query_checkrpz' at query.c:7288:12,
        inlined from 'query_gotanswer' at query.c:7724:12:
    query.c:4693:14: error: 'qresult_type' may be used uninitialized [-Werror=maybe-uninitialized]
     4693 |             !dnsrps_set_p(&emsg, client, st, qtype, &rdataset,
          |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     4694 |                           qresult_type != qresult_type_recurse))
          |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    query.c: In function 'query_gotanswer':
    query.c:4268:24: note: 'qresult_type' was declared here
     4268 |         qresult_type_t qresult_type;
          |                        ^~~~~~~~~~~~
    cc1: all warnings being treated as errors
2025-08-27 10:00:45 +00:00
..
include Implement '-T slowrpz' named testing option 2025-08-27 10:00:45 +00:00
.gitignore Add support for User Statically Defined Tracing (USDT) probes 2023-08-21 18:39:53 +02:00
client.c Log dropped or slipped responses in the query-errors category 2025-07-10 08:57:27 +00:00
hooks.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
interfacemgr.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
listenlist.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
log.c Log the rcode returned to for a query 2024-09-30 00:10:47 +00:00
Makefile.am Add support for User Statically Defined Tracing (USDT) probes 2023-08-21 18:39:53 +02:00
notify.c convert TSIG keyring storage from RBT to hash table 2023-06-14 08:14:38 +00:00
probes.d Add a probe when the response rate limiting drops or slips query 2023-08-21 18:39:53 +02:00
query.c Resolve false positive compilation warning from some GCC versions 2025-08-27 10:00:45 +00:00
server.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
sortlist.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
stats.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
tests Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
update.c Implement a new 'notify-defer' configuration option 2025-05-16 09:58:48 +00:00
xfrout.c Revert "Attach dnssecsignstats, rcvquerystats, and requeststats" 2024-12-08 12:03:12 +01:00