mirror of
https://github.com/esphome/esphome.git
synced 2025-10-18 01:33:51 +01:00
Refactor clang-tidy script to use actual compiler flags and includes (#2133)
Co-authored-by: Otto winter <otto@otto-winter.com>
This commit is contained in:
@@ -8,6 +8,11 @@
|
||||
#include "sntp.h"
|
||||
#endif
|
||||
|
||||
// Yes, the server names are leaked, but that's fine.
|
||||
#ifdef CLANG_TIDY
|
||||
#define strdup(x) (const_cast<char *>(x))
|
||||
#endif
|
||||
|
||||
namespace esphome {
|
||||
namespace sntp {
|
||||
|
||||
|
Reference in New Issue
Block a user