Skip to content

Commit

Permalink
Test compilation with gnu++20 std
Browse files Browse the repository at this point in the history
  • Loading branch information
radioactiveman committed Jan 11, 2024
1 parent e2c9ee4 commit 0e4d020
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ if test "x$GCC" = "xyes"; then
CXXFLAGS="$CXXFLAGS -ffast-math -Wall -pipe"
# use C++17 if possible (Qt 6 requires it)
AUD_CHECK_CXXFLAGS(-std=gnu++17)
if test "${CXXFLAGS%gnu++17}" = "$CXXFLAGS" ; then
AUD_CHECK_CXXFLAGS(-std=gnu++20)
if test "${CXXFLAGS%gnu++20}" = "$CXXFLAGS" ; then
CXXFLAGS="$CXXFLAGS -std=gnu++11"
fi
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project('audacious', 'c', 'cpp',
meson_version: '>= 0.46',
default_options: [
'c_std=gnu99',
'cpp_std=gnu++17',
'cpp_std=gnu++20',
'warning_level=1'
])

Expand Down
2 changes: 1 addition & 1 deletion src/libaudgui/infowin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ static void infowin_show (Playlist list, int entry, const String & filename,
EXPORT void audgui_infowin_show (Playlist playlist, int entry)
{
String filename = playlist.entry_filename (entry);
g_return_if_fail (filename != nullptr);
g_return_if_fail (filename);

String error;
PluginHandle * decoder = playlist.entry_decoder (entry, Playlist::Wait, & error);
Expand Down

0 comments on commit 0e4d020

Please sign in to comment.