aboutsummaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-08-13 15:18:34 -0700
committerMartin Braun <martin.braun@ettus.com>2019-08-16 11:29:49 -0700
commitbbb869ca80fa299f7888b35134218229521dd0c0 (patch)
tree75ea1a02c7974bb1688de8d4655cc2e3a9005ff2 /firmware
parent0280a82aa00f340bf7de11f97fafc11424ba4f1e (diff)
downloaduhd-bbb869ca80fa299f7888b35134218229521dd0c0.tar.gz
uhd-bbb869ca80fa299f7888b35134218229521dd0c0.tar.bz2
uhd-bbb869ca80fa299f7888b35134218229521dd0c0.zip
uhd: Add UHD_FALLTHROUGH attribute
This provides a platform-independent attribute to allow fallthroughs in switch statements. Example: switch (foo) { case BAR: do_something(); UHD_FALLTHROUGH case BAZ: do_another_thing(); } The usage of UHD_FALLTHROUGH will avoid a compiler warning if indeed the fallthrough was intentional. The associated warning (-Wimplicit-fallthrough) is only available on gcc and Clang.
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions