Skip to content

Commit 4ace462

Browse files
laurencelundbladeLaurence Lundblade
andauthored
#ifdef fanout warnings and white space (#322)
Co-authored-by: Laurence Lundblade <lgl@securitytheory.com>
1 parent 99ad51a commit 4ace462

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/qcbor_decode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3458,7 +3458,7 @@ QCBORDecode_Private_MapSearch(QCBORDecodeContext *pMe,
34583458

34593459
if(!bMatched && pCallBack != NULL) {
34603460
/* Call the callback on unmatched labels.
3461-
* (It is tempting to do duplicate detection here, but that
3461+
* (It is tempting to do duplicate detection here, but that
34623462
* would require dynamic memory allocation because the number
34633463
* of labels that might be encountered is unbounded.) */
34643464
uReturn = (*(pCallBack->pfCallback))(pCallBack->pCBContext, &Item);

test/float_tests.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ FloatValuesTests(void)
551551

552552

553553
/* Public function. See float_tests.h */
554-
int32_t
554+
int32_t
555555
HalfPrecisionAgainstRFCCodeTest(void)
556556
{
557557
QCBORItem Item;
@@ -689,7 +689,7 @@ int32_t
689689
GeneralFloatEncodeTests(void)
690690
{
691691
/* See FloatNumberTests() for tests that really cover lots of float values.
692-
* Add new tests for new values or decode modes there.
692+
* Add new tests for new values or decode modes there.
693693
* This test is primarily to cover all the float encode methods. */
694694

695695
UsefulBufC Encoded;
@@ -753,7 +753,7 @@ GeneralFloatEncodeTests(void)
753753

754754

755755
/* Public function. See float_tests.h */
756-
int32_t
756+
int32_t
757757
GeneralFloatDecodeTests(void)
758758
{
759759
/* See FloatNumberTests() for tests that really cover lots of float values */

test/qcbor_decode_tests.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10121,13 +10121,14 @@ static const uint8_t spExpMant[] = {0x81, 0x81, 0xC4, 0x82, 0x20, 0x03};
1012110121
#endif /* !QCBOR_DISABLE_TAGS */
1012210122
#endif
1012310123

10124+
#ifndef QCBOR_DISABLE_NON_INTEGER_LABELS
10125+
1012410126
/* Simple value 1, not well formed */
1012510127
static const uint8_t spNWF[] = {0xf8, 0x01};
1012610128

1012710129
static const uint8_t spArrayWithNWF[] = {0x81, 0xff};
1012810130

1012910131

10130-
#ifndef QCBOR_DISABLE_NON_INTEGER_LABELS
1013110132
int32_t GetMapAndArrayTest(void)
1013210133
{
1013310134
QCBORDecodeContext DCtx;
@@ -10446,7 +10447,7 @@ int32_t GetMapAndArrayTest(void)
1044610447
}
1044710448
#endif /* ! QCBOR_DISABLE_NON_INTEGER_LABELS */
1044810449

10449-
10450+
1045010451
int32_t
1045110452
ErrorHandlingTests(void)
1045210453
{

0 commit comments

Comments
 (0)