Skip to content

Commit

Permalink
uqmi: Ignore wrong maybe-uninitialized and dangling-pointer error
Browse files Browse the repository at this point in the history
  • Loading branch information
coolsnowwolf committed Dec 5, 2024
1 parent ef272b4 commit 8cf7400
Show file tree
Hide file tree
Showing 2 changed files with 126 additions and 65 deletions.
21 changes: 9 additions & 12 deletions package/network/utils/uqmi/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=uqmi
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=$(PROJECT_GIT)/project/uqmi.git
PKG_SOURCE_DATE:=2022-05-04
PKG_SOURCE_VERSION:=56cb2d4056fef132ccf78dfb6f3074ae5d109992
PKG_MIRROR_HASH:=cc832b5318805df8c8387a3650f250dee72d5f1dbda4e4866b5503e186b2210c
PKG_SOURCE_DATE:=2024-08-25
PKG_SOURCE_VERSION:=28b48a10dbcd1177095b73c6d8086d10114f49b8
PKG_MIRROR_HASH:=bf1f8112c94ce49a7c03a4b9593141129d63ce679f98594257c1f6ab9bc49766
PKG_MAINTAINER:=Matti Laakso <malaakso@elisanet.fi>

PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=

PKG_FLAGS:=nonshared
PKG_BUILD_FLAGS:=gc-sections

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
Expand All @@ -31,20 +32,16 @@ define Package/uqmi/description
the QMI-protocol.
endef

TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include -ffunction-sections -fdata-sections

ifneq (,$(findstring $(GCC_MAJOR_VERSION), 12 13))
TARGET_CFLAGS += -Wno-error=dangling-pointer -Wno-error=maybe-uninitialized
endif

TARGET_LDFLAGS += -Wl,--gc-sections
TARGET_CFLAGS += \
-I$(STAGING_DIR)/usr/include \
-Wno-error=maybe-uninitialized

CMAKE_OPTIONS += \
-DDEBUG=1

define Package/uqmi/install
$(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/uqmi $(1)/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/uqmi/uqmi $(1)/sbin/
$(CP) ./files/* $(1)/
endef

Expand Down
Loading

0 comments on commit 8cf7400

Please sign in to comment.