*: add "noexcept" to many, many function prototypes
See commit 71f0ed8b74
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
|
||||
gcc_pure
|
||||
static uint_least32_t
|
||||
ParseAlsaVersion(const char *p)
|
||||
ParseAlsaVersion(const char *p) noexcept
|
||||
{
|
||||
char *endptr;
|
||||
unsigned long major, minor = 0, subminor = 0;
|
||||
@@ -42,7 +42,7 @@ ParseAlsaVersion(const char *p)
|
||||
}
|
||||
|
||||
uint_least32_t
|
||||
GetRuntimeAlsaVersion()
|
||||
GetRuntimeAlsaVersion() noexcept
|
||||
{
|
||||
const char *version = snd_asoundlib_version();
|
||||
if (version == nullptr)
|
||||
|
@@ -37,6 +37,6 @@ MakeAlsaVersion(uint_least32_t major, uint_least32_t minor,
|
||||
*/
|
||||
gcc_const
|
||||
uint_least32_t
|
||||
GetRuntimeAlsaVersion();
|
||||
GetRuntimeAlsaVersion() noexcept;
|
||||
|
||||
#endif
|
||||
|
@@ -38,7 +38,7 @@ nfs_init(EventLoop &event_loop)
|
||||
}
|
||||
|
||||
void
|
||||
nfs_finish()
|
||||
nfs_finish() noexcept
|
||||
{
|
||||
assert(in_use > 0);
|
||||
|
||||
@@ -49,7 +49,7 @@ nfs_finish()
|
||||
}
|
||||
|
||||
EventLoop &
|
||||
nfs_get_event_loop()
|
||||
nfs_get_event_loop() noexcept
|
||||
{
|
||||
assert(in_use > 0);
|
||||
|
||||
|
@@ -30,14 +30,14 @@ void
|
||||
nfs_init(EventLoop &event_loop);
|
||||
|
||||
void
|
||||
nfs_finish();
|
||||
nfs_finish() noexcept;
|
||||
|
||||
/**
|
||||
* Return the EventLoop that was passed to nfs_init().
|
||||
*/
|
||||
gcc_const
|
||||
EventLoop &
|
||||
nfs_get_event_loop();
|
||||
nfs_get_event_loop() noexcept;
|
||||
|
||||
gcc_pure
|
||||
NfsConnection &
|
||||
|
Reference in New Issue
Block a user