Skip to content

Commit 43601f4

Browse files
committed
fix according to comments
1 parent 38c45d2 commit 43601f4

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ jobs:
9696
sudo apt-get update -y && sudo apt-get upgrade -y
9797
sudo apt-get install gcc-avr avr-libc
9898
avr-gcc --version
99-
- run: avr-gcc libcanard/*.c -isystem lib -c -std=c99 -mmcu=${{ env.mcu }} ${{ env.flags }}
100-
- run: avr-gcc libcanard/*.c -isystem lib -c -std=c11 -mmcu=${{ env.mcu }} ${{ env.flags }}
101-
- run: avr-gcc libcanard/*.c -isystem lib -c -std=gnu99 -mmcu=${{ env.mcu }} ${{ env.flags }}
102-
- run: avr-gcc libcanard/*.c -isystem lib -c -std=gnu11 -mmcu=${{ env.mcu }} ${{ env.flags }}
99+
- run: avr-gcc libcanard/*.c -isystem lib/cavl2 -c -std=c99 -mmcu=${{ env.mcu }} ${{ env.flags }}
100+
- run: avr-gcc libcanard/*.c -isystem lib/cavl2 -c -std=c11 -mmcu=${{ env.mcu }} ${{ env.flags }}
101+
- run: avr-gcc libcanard/*.c -isystem lib/cavl2 -c -std=gnu99 -mmcu=${{ env.mcu }} ${{ env.flags }}
102+
- run: avr-gcc libcanard/*.c -isystem lib/cavl2 -c -std=gnu11 -mmcu=${{ env.mcu }} ${{ env.flags }}
103103

104104
arm:
105105
if: github.event_name == 'push'
@@ -111,8 +111,8 @@ jobs:
111111
- run: |
112112
sudo apt-get update -y && sudo apt-get upgrade -y
113113
sudo apt-get install -y gcc-arm-none-eabi
114-
- run: arm-none-eabi-gcc libcanard/*.c -isystem lib -c -std=c99 ${{ env.flags }}
115-
- run: arm-none-eabi-gcc libcanard/*.c -isystem lib -c -std=c11 ${{ env.flags }}
114+
- run: arm-none-eabi-gcc libcanard/*.c -isystem lib/cavl2 -c -std=c99 ${{ env.flags }}
115+
- run: arm-none-eabi-gcc libcanard/*.c -isystem lib/cavl2 -c -std=c11 ${{ env.flags }}
116116

117117
style_check:
118118
if: github.event_name == 'push'
@@ -195,7 +195,6 @@ jobs:
195195
--define sonar.projectName=libcanard
196196
--define sonar.projectKey=libcanard
197197
--define sonar.sources=libcanard
198-
--define sonar.exclusions=lib/cavl2/cavl2.h
199198
--define sonar.cfamily.gcov.reportsPath=.
200199
--define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json"
201200
--define sonar.host.url="${{ env.SONAR_SERVER_URL }}"

libcanard/canard.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
// The internal includes are placed here after the config header is included and CANARD_ASSERT is defined.
4343
#define CAVL2_T struct CanardTreeNode
4444
#define CAVL2_ASSERT(x) CANARD_ASSERT(x)
45-
#include <../lib/cavl2/cavl2.h>
45+
#include <cavl2.h>
4646

4747
// --------------------------------------------- COMMON DEFINITIONS ---------------------------------------------
4848

tests/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Woverloaded-virtual -Wnon-virtual-dtor
7070

7171
include_directories(${library_dir})
7272
include_directories(SYSTEM catch)
73-
include_directories(SYSTEM ${CMAKE_SOURCE_DIR}/../libcanard)
73+
include_directories(SYSTEM ${CMAKE_SOURCE_DIR}/../lib/cavl2)
74+
include_directories(${CMAKE_SOURCE_DIR}/../libcanard)
7475
add_definitions(-DCATCH_CONFIG_FAST_COMPILE=1 -DCATCH_CONFIG_ENABLE_ALL_STRINGMAKERS=1)
7576

7677
set(common_sources ${CMAKE_SOURCE_DIR}/main.cpp ${library_dir}/canard.c)

0 commit comments

Comments
 (0)