Browse Source

chore(interface): avoid gnu extensions in macros

In Standard C++, the `__VA_ARGS__` (`...`) part of variadic macros must
have at least one argument. `(void)` is a valid way to declare
parameterless functions, so we're using that here, even though it's not
idiomatic (but then again, nor is the whole macro).
reviewable/pr6109/r1
iphydf 5 years ago
parent
commit
8c8534f485
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
  1. 4
      src/audio/backend/alsink.h
  2. 4
      src/audio/iaudiosink.h

4
src/audio/backend/alsink.h

@ -49,8 +49,8 @@ public:
uint getSourceId() const; uint getSourceId() const;
void kill(); void kill();
SIGNAL_IMPL(AlSink, finishedPlaying) SIGNAL_IMPL(AlSink, finishedPlaying, void)
SIGNAL_IMPL(AlSink, invalidated) SIGNAL_IMPL(AlSink, invalidated, void)
private: private:
OpenAL& audio; OpenAL& audio;

4
src/audio/iaudiosink.h

@ -107,8 +107,8 @@ public:
virtual operator bool() const = 0; virtual operator bool() const = 0;
signals: signals:
DECLARE_SIGNAL(finishedPlaying); DECLARE_SIGNAL(finishedPlaying, void);
DECLARE_SIGNAL(invalidated); DECLARE_SIGNAL(invalidated, void);
}; };
#endif // IAUDIOSINK_H #endif // IAUDIOSINK_H

Loading…
Cancel
Save