[vlc-commits] Mark unreachable code on GCC even if NDEBUG

Rémi Denis-Courmont git at videolan.org
Wed Feb 18 16:52:56 CET 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Feb 17 23:10:16 2015 +0200| [80d88b05f25b6386b067683fa0123f4931ce732a] | committer: Rémi Denis-Courmont

Mark unreachable code on GCC even if NDEBUG

This might suppress some warnings (and very slightly reduce code size)
when assertions are disabled. Not that I particularly like to create
VLC-specific macros.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=80d88b05f25b6386b067683fa0123f4931ce732a
---

 include/vlc_common.h                               |   12 ++--
 lib/event.c                                        |    2 +-
 modules/access/bluray.c                            |    2 +-
 modules/access/dtv/en50221.c                       |    2 +-
 modules/access/file.c                              |    2 +-
 modules/access/http.c                              |    2 +-
 modules/access/live555.cpp                         |    2 +-
 modules/access/mms/mmstu.c                         |    2 +-
 modules/access/v4l2/controls.c                     |    2 +-
 modules/access/v4l2/demux.c                        |    4 +-
 modules/audio_filter/channel_mixer/remap.c         |    3 +-
 modules/audio_output/amem.c                        |    2 +-
 modules/audio_output/audiotrack.c                  |    3 +-
 modules/audio_output/pulse.c                       |    2 +-
 modules/codec/cc.c                                 |    2 +-
 modules/codec/lpcm.c                               |    6 +-
 modules/control/dbus/dbus.c                        |    4 +-
 modules/control/motion.c                           |    2 +-
 modules/control/motionlib.c                        |    2 +-
 modules/control/rc.c                               |    2 +-
 modules/gui/macosx/SPMediaKeyTap.m                 |    2 +-
 .../gui/macosx_dialog_provider/dialogProvider.m    |    4 +-
 .../gui/qt4/components/playlist/playlist_item.cpp  |    2 +-
 .../gui/qt4/components/playlist/standardpanel.cpp  |    2 +-
 modules/gui/qt4/dialogs/sout.cpp                   |    2 +-
 modules/gui/qt4/input_manager.cpp                  |    2 +-
 modules/gui/qt4/qt4.cpp                            |    2 +-
 modules/hw/vdpau/chroma.c                          |    4 +-
 modules/services_discovery/podcast.c               |    2 +-
 modules/services_discovery/sap.c                   |    2 +-
 modules/stream_out/rtp.c                           |    2 +-
 modules/stream_out/rtpfmt.c                        |    6 +-
 modules/video_filter/deinterlace/algo_phosphor.c   |    2 +-
 modules/video_filter/mirror.c                      |    2 +-
 modules/video_filter/posterize.c                   |    6 +-
 modules/video_output/caopengllayer.m               |    2 +-
 modules/video_output/gl.c                          |    2 +-
 modules/video_output/ios2.m                        |    2 +-
 modules/video_output/macosx.m                      |    2 +-
 modules/video_output/msw/common.c                  |    2 +-
 modules/video_output/msw/wingdi.c                  |    2 +-
 modules/video_output/wayland/shell_surface.c       |    2 +-
 modules/video_output/xcb/glx.c                     |    2 +-
 modules/video_output/xcb/xvideo.c                  |    2 +-
 modules/video_splitter/wall.c                      |    2 +-
 modules/visualization/glspectrum.c                 |    2 +-
 modules/visualization/visual/visual.c              |    2 +-
 modules/visualization/visual/window.c              |    2 +-
 src/android/thread.c                               |    2 +-
 src/audio_output/common.c                          |    4 +-
 src/darwin/dirs.c                                  |    2 +-
 src/darwin/thread.c                                |    2 +-
 src/input/es_out.c                                 |    2 +-
 src/input/es_out_timeshift.c                       |   12 ++--
 src/input/stream.c                                 |    2 +-
 src/misc/events.c                                  |    4 +-
 src/misc/variables.c                               |    6 +-
 src/missing.c                                      |   76 ++++++++++----------
 src/network/httpd.c                                |    2 +-
 src/posix/thread.c                                 |    2 +-
 src/posix/timer.c                                  |    2 +-
 src/stream_output/sap.c                            |    4 +-
 src/text/strings.c                                 |    2 +-
 src/text/unicode.c                                 |    2 +-
 src/video_output/display.c                         |    2 +-
 src/win32/dirs.c                                   |    2 +-
 66 files changed, 130 insertions(+), 128 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=80d88b05f25b6386b067683fa0123f4931ce732a


More information about the vlc-commits mailing list