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

Rémi Denis-Courmont git at videolan.org
Tue Feb 17 22:30:10 CET 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Feb 17 23:10:16 2015 +0200| [0106600c5090bad0044b1dc4476da7824e7d49d9] | 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=0106600c5090bad0044b1dc4476da7824e7d49d9
---

 include/vlc_common.h                               |   16 +++--
 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_output/amem.c                        |    2 +-
 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_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 +-
 62 files changed, 128 insertions(+), 120 deletions(-)

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


More information about the vlc-commits mailing list