Skip to content

Commit eab7726

Browse files
authored
Merge pull request #4664 from hdiethelm/cppcheck_ubuntu_26.04
cppcheck fixes for ubuntu-26.04
2 parents f6eea68 + a950fb5 commit eab7726

5 files changed

Lines changed: 19 additions & 5 deletions

File tree

‎.github/scripts/build-headers.sh‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
set -eu #Needed so CI fails when anything is wrong
4+
set -x
5+
6+
#Any arguments are passed to configure
7+
8+
cd src
9+
./autogen.sh
10+
./configure "$@" --disable-check-runtime-deps --enable-werror
11+
make headers

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,12 @@ jobs:
217217
- name: Install dependencies
218218
run: |
219219
set -x
220-
.github/scripts/use-main-ubuntu-mirror.sh
221-
sudo apt-get -q update
220+
.github/scripts/install-deps.sh
222221
sudo apt-get --yes install cppcheck
222+
- name: Build headers
223+
run: |
224+
set -x
225+
.github/scripts/build-headers.sh --with-realtime=uspace
223226
- name: Cppcheck
224227
run: |
225228
set -x

‎src/hal/classicladder/classicladder_gtk.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ void MainSectionWindowInitGtk()
10591059

10601060

10611061
//no more used since menu/toolbar added...
1062-
#ifdef AAAAAAAAAAAAAAAAAAAAAA
1062+
#if 0
10631063
hboxbottom = gtk_hbox_new (FALSE,0);
10641064
gtk_container_add (GTK_CONTAINER (vbox), hboxbottom);
10651065
gtk_widget_show(hboxbottom);

‎src/hal/classicladder/drawing.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ void DrawElement( cairo_t * cr,int x,int y,int Width,int Height,StrElement Eleme
352352
char DisplayColorState = ( DrawingOption==DRAW_NORMAL && !EditDatas.ModeEdit && InfosGene->LadderState==STATE_RUN );
353353

354354
//Cairo....
355-
#ifdef AAAAAAAAAAAAA
355+
#if 0
356356
GdkGC * DynaGcOff;
357357
GdkGC * TheGc;
358358
GdkColor DynaGdkColor;

‎src/hal/classicladder/vars_names.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
//===OLD CODE NO MORE USED===
4343
//with names directly in it...
4444
//to be deleted, but some precise errors codes aren't present in the new function...
45-
#ifdef AAAAAAAAA
45+
#if 0
4646

4747
char * CreateVarName(int Type, int Offset)
4848
{

0 commit comments

Comments
 (0)