diff options
author | Kurt Pattyn <pattyn.kurt@gmail.com> | 2014-04-15 09:57:15 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-02 17:36:45 +0200 |
commit | beb7258a56b6ec76531b73cc07ee30132a3f548f (patch) | |
tree | e5b28408b394742f7f9c5096868a2b6ffa5e09d6 /lib | |
parent | a006ede6e785b288d6955490217a6da46e62a7b5 (diff) |
Add default case to switch statements
When compiling with the -Wswitch-default flag, the compiler
spits warnings for the moc generated files.
In certain development environments (e.g. where MISRA rules
have to be followed) every switch statement needs to have a
default case. Unfortunately the moc generated files contain
switch statements without default case. This patch adds a
default statement to all switch statements that are generated
by the moc compiler.
Change-Id: I8f3d81e3463fce4d3abf2ea5d0fa8727a7d9ba2e
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions