replace assert.h with cassert

The former was deprecated with C++14.

According to the C++11 and C++17 standards, both files are identical.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-03-12 15:20:59 -07:00
parent a718086ffb
commit ab9f5d2067
246 changed files with 320 additions and 317 deletions

View File

@@ -29,8 +29,7 @@
#include "Log.hxx"
#include <atomic>
#include <assert.h>
#include <cassert>
#include <jack/jack.h>
#include <jack/types.h>

View File

@@ -27,6 +27,7 @@
#include "util/ByteOrder.hxx"
#include "Log.hxx"
#include <cassert>
#include <iterator>
#include <stdexcept>
@@ -36,7 +37,6 @@
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
#include <assert.h>
#if defined(__OpenBSD__) || defined(__NetBSD__)
# include <soundcard.h>

View File

@@ -33,9 +33,9 @@
#include <pulse/subscribe.h>
#include <pulse/version.h>
#include <cassert>
#include <stdexcept>
#include <assert.h>
#include <stddef.h>
#include <stdlib.h>

View File

@@ -30,10 +30,10 @@
#include "util/Domain.hxx"
#include "util/ScopeExit.hxx"
#include <stdexcept>
#include <cassert>
#include <memory>
#include <stdexcept>
#include <assert.h>
#include <stdlib.h>
static constexpr Domain recorder_domain("recorder");

View File

@@ -30,10 +30,10 @@
#include <shout/shout.h>
#include <stdexcept>
#include <cassert>
#include <memory>
#include <stdexcept>
#include <assert.h>
#include <stdio.h>
static constexpr unsigned DEFAULT_CONN_TIMEOUT = 2;

View File

@@ -27,7 +27,8 @@
#include "net/UniqueSocketDescriptor.hxx"
#include "Log.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <stdio.h>

View File

@@ -32,7 +32,7 @@
#include "util/DeleteDisposer.hxx"
#include "config/Net.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>