Skip to content

Commit

Permalink
Remove Pragma for unused variable in VDO header files
Browse files Browse the repository at this point in the history
  • Loading branch information
GHakansson authored and johan-olsson-work committed Nov 19, 2024
1 parent 8ceb422 commit cc8eefa
Show file tree
Hide file tree
Showing 24 changed files with 18 additions and 53 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/object-detection-cv25.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
include:
- arch: aarch64
chip: cv25
axis-os: 12.0.91
axis-os: 12.1.60
env:
EXREPO: acap-native-examples
EXNAME: object-detection-cv25
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/object-detection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
include:
- arch: armv7hf
chip: cpu
axis-os: 12.0.91
axis-os: 12.1.60
- arch: armv7hf
chip: edgetpu
axis-os: 12.0.91
axis-os: 12.1.60
- arch: aarch64
chip: artpec8
axis-os: 12.0.91
axis-os: 12.1.60
env:
EXREPO: acap-native-examples
EXNAME: object-detection
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/using-opencv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
axis-os: ["12.0.91"]
axis-os: ["12.1.60"]
arch: ["armv7hf", "aarch64"]
env:
EXREPO: acap-native-examples
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/vdo-larod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ jobs:
include:
- arch: armv7hf
chip: cpu
axis-os: 12.0.91
axis-os: 12.1.60
- arch: armv7hf
chip: edgetpu
axis-os: 12.0.91
axis-os: 12.1.60
- arch: aarch64
chip: artpec8
axis-os: 12.0.91
axis-os: 12.1.60
- arch: aarch64
chip: cv25
axis-os: 12.0.91
axis-os: 12.1.60
env:
EXREPO: acap-native-examples
EXNAME: vdo-larod
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vdo-opencl-filtering.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
axis-os: ["12.0.91"]
axis-os: ["12.1.60"]
arch: ["armv7hf", "aarch64"]
env:
EXREPO: acap-native-examples
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vdostream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
axis-os: ["12.0.91"]
axis-os: ["12.1.60"]
arch: ["armv7hf", "aarch64"]
vdo-format: ["h264", "h265", "y800", "jpeg", "nv12"]
env:
Expand Down
2 changes: 1 addition & 1 deletion object-detection-cv25/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG ARCH=aarch64
ARG VERSION=12.0.0
ARG VERSION=12.1.0-rc.1
ARG UBUNTU_VERSION=24.04
ARG REPO=axisecp
ARG SDK=acap-native-sdk
Expand Down
3 changes: 0 additions & 3 deletions object-detection-cv25/app/imgprovider.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@
#include <gmodule.h>
#include <syslog.h>

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include "vdo-map.h"
#include <vdo-channel.h>
#pragma GCC diagnostic pop

#define VDO_CHANNEL (1)

Expand Down
3 changes: 0 additions & 3 deletions object-detection-cv25/app/imgprovider.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@
#include <stdatomic.h>
#include <stdbool.h>

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include "vdo-stream.h"
#include "vdo-types.h"
#pragma GCC diagnostic pop

#define NUM_VDO_BUFFERS (8)

Expand Down
3 changes: 0 additions & 3 deletions object-detection-cv25/app/object_detection.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,8 @@
#include "imgutils.h"
#include "larod.h"
#include "postprocessing.h"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include "vdo-frame.h"
#include "vdo-types.h"
#pragma GCC diagnostic pop

/**
* @brief Free up resources held by an array of labels.
Expand Down
2 changes: 1 addition & 1 deletion object-detection/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG ARCH=armv7hf
ARG VERSION=12.0.0
ARG VERSION=12.1.0-rc.1
ARG UBUNTU_VERSION=24.04
ARG REPO=axisecp
ARG SDK=acap-native-sdk
Expand Down
3 changes: 0 additions & 3 deletions object-detection/app/imgprovider.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@
#include <gmodule.h>
#include <syslog.h>

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include "vdo-map.h"
#include <vdo-channel.h>
#pragma GCC diagnostic pop

#define VDO_CHANNEL (1)

Expand Down
3 changes: 0 additions & 3 deletions object-detection/app/imgprovider.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@
#include <stdatomic.h>
#include <stdbool.h>

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include "vdo-stream.h"
#include "vdo-types.h"
#pragma GCC diagnostic pop

#define NUM_VDO_BUFFERS (8)

Expand Down
3 changes: 0 additions & 3 deletions object-detection/app/object_detection.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@
#include "imgutils.h"
#include "larod.h"
#include "vdo-frame.h"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include "vdo-types.h"
#pragma GCC diagnostic pop

/**
* @brief Free up resources held by an array of labels.
Expand Down
2 changes: 1 addition & 1 deletion using-opencv/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG ARCH=armv7hf
ARG REPO=axisecp
ARG SDK=acap-native-sdk
ARG UBUNTU_VERSION=24.04
ARG VERSION=12.0.0
ARG VERSION=12.1.0-rc.1

FROM ${REPO}/${SDK}:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION}

Expand Down
3 changes: 0 additions & 3 deletions using-opencv/app/imgprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@
#include <gmodule.h>
#include <syslog.h>

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include "vdo-map.h"
#include <vdo-channel.h>
#pragma GCC diagnostic pop

#define VDO_CHANNEL (1)

Expand Down
3 changes: 0 additions & 3 deletions using-opencv/app/imgprovider.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@

#include <stdbool.h>

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include "vdo-stream.h"
#include "vdo-types.h"
#pragma GCC diagnostic pop

#define NUM_VDO_BUFFERS (8)

Expand Down
2 changes: 1 addition & 1 deletion vdo-larod/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG ARCH=armv7hf
ARG VERSION=12.0.0
ARG VERSION=12.1.0-rc.1
ARG UBUNTU_VERSION=24.04
ARG REPO=axisecp
ARG SDK=acap-native-sdk
Expand Down
4 changes: 1 addition & 3 deletions vdo-larod/app/imgprovider.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@
#include <errno.h>
#include <gmodule.h>
#include <syslog.h>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"

#include "vdo-map.h"
#include <vdo-channel.h>
#pragma GCC diagnostic pop

#define VDO_CHANNEL (1)

Expand Down
3 changes: 0 additions & 3 deletions vdo-larod/app/imgprovider.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@
#include <stdatomic.h>
#include <stdbool.h>

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include "vdo-stream.h"
#include "vdo-types.h"
#pragma GCC diagnostic pop

#define NUM_VDO_BUFFERS (8)

Expand Down
2 changes: 1 addition & 1 deletion vdo-opencl-filtering/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG ARCH=armv7hf
ARG VERSION=12.0.0
ARG VERSION=12.1.0-rc.1
ARG UBUNTU_VERSION=24.04
ARG REPO=axisecp
ARG SDK=acap-native-sdk
Expand Down
3 changes: 0 additions & 3 deletions vdo-opencl-filtering/app/vdo_cl_filter_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,10 @@
#include <syslog.h>
#include <unistd.h>

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include "vdo-error.h"
#include "vdo-map.h"
#include "vdo-stream.h"
#include "vdo-types.h"
#pragma GCC diagnostic pop

#define CL_TARGET_OPENCL_VERSION 120
#include <CL/cl.h>
Expand Down
2 changes: 1 addition & 1 deletion vdostream/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG ARCH=armv7hf
ARG VERSION=12.0.0
ARG VERSION=12.1.0-rc.1
ARG UBUNTU_VERSION=24.04
ARG REPO=axisecp
ARG SDK=acap-native-sdk
Expand Down
3 changes: 0 additions & 3 deletions vdostream/app/vdoencodeclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,10 @@
* -o vdo.out
*/

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include "vdo-error.h"
#include "vdo-map.h"
#include "vdo-stream.h"
#include "vdo-types.h"
#pragma GCC diagnostic pop

#include <glib.h>
#include <glib/gstdio.h>
Expand Down

0 comments on commit cc8eefa

Please sign in to comment.