[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Simulavr-devel] [PATCH 0/3] Fix several compiler warnings
From: |
Stefan Brüns |
Subject: |
[Simulavr-devel] [PATCH 0/3] Fix several compiler warnings |
Date: |
Sun, 19 Jan 2014 18:13:32 +0100 |
User-agent: |
KMail/4.11.3 (Linux/3.11.6-4-desktop; KDE/4.11.3; x86_64; ; ) |
Current GCC issues more warnings, fix these cases
The first patch makes sure loading the value and incrementing the
pointer happens in a determined order.
The second and third patch adds a default case to some switch
statements. As far as the compiler knows the switch value might have
any value of the underlying type, in these cases the control flow
reaches the end of the function without returning a sane value.
Stefan Brüns (3):
Fix compiler warning, ambigous order of multiple loads and pointer
increments
Fix compiler warning, compiler does not know about limited range of
prescalers
Fix compiler warning, switch statement needs default case
src/cmd/gdbserver.cpp | 6 +++---
src/hwtimer/hwtimer.cpp | 6 ++++++
src/pin.cpp | 4 ++++
3 files changed, 13 insertions(+), 3 deletions(-)
--
1.8.4
- [Simulavr-devel] [PATCH 0/3] Fix several compiler warnings,
Stefan Brüns <=