commit | 4730f0d78f347dee78087f4849e19816fe4827a0 | [log] [tgz] |
---|---|---|
author | Ken Chen <cken@google.com> | Tue May 09 17:53:36 2023 +0800 |
committer | Ken Chen <cken@google.com> | Tue May 09 17:53:36 2023 +0800 |
tree | 03e1a08b754aa7be41798edc16036e58a397bdc2 | |
parent | 2c10321e203c19b4b6bf301d76eb1e57fa964e57 [diff] |
Fix -Wnullable-to-nonnull-conversion errors Aosp/2566619 added Nonnull annotations in strcasecmp, which causes build break in DNS resolver module and tests. This commit: 1. Checks if a nullable variable is null before passing it to the strcasecmp. 2. Adds a hacky way to avoid -Wnullable-to-nonnull-conversion errors. Bug: 278513807 Test: presubmit Change-Id: I146f5b91114dd7c934c9e3fb12477e4563005c5f
This code uses LOG(X) for logging. Log levels are VERBOSE,DEBUG,INFO,WARNING and ERROR. The default setting is WARNING and logs relate to WARNING and ERROR will be shown. If you want to enable the DEBUG level logs, using following command. adb shell service call dnsresolver 10 i32 1 VERBOSE 0 DEBUG 1 INFO 2 WARNING 3 ERROR 4 Verbose resolver logs could contain PII -- do NOT enable in production builds.