1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-24 13:21:23 +01:00

Remove unnecessary warning

This commit is contained in:
Asbelos 2024-03-05 19:59:29 +00:00
parent b752666899
commit 4b04a80e6f

View File

@ -95,14 +95,14 @@ constexpr int16_t stuffSize=sizeof(compileTimeSequenceList)/sizeof(int16_t) - 1;
// Compile time function to check for sequence nos. // Compile time function to check for sequence nos.
constexpr bool hasseq(const int16_t value, const uint16_t pos=0 ) { constexpr bool hasseq(const int16_t value, const int16_t pos=0 ) {
return pos>=stuffSize? false : return pos>=stuffSize? false :
compileTimeSequenceList[pos]==value compileTimeSequenceList[pos]==value
|| hasseq(value,pos+1); || hasseq(value,pos+1);
} }
// Compile time function to check for duplicate sequence nos. // Compile time function to check for duplicate sequence nos.
constexpr bool hasdup(const int16_t value, const uint16_t pos ) { constexpr bool hasdup(const int16_t value, const int16_t pos ) {
return pos>=stuffSize? false : return pos>=stuffSize? false :
compileTimeSequenceList[pos]==value compileTimeSequenceList[pos]==value
|| hasseq(value,pos+1) || hasseq(value,pos+1)