Skip to content

Commit

Permalink
cmake: Disable format-overflow warning as error
Browse files Browse the repository at this point in the history
gcc10 complains about a check which could potentially be null

build/inc/interface/vcos/vcos_logging.h:234:88: error: '%s' directive argument is null [-Werror=format-overflow=]
  234 | #  define _VCOS_LOG_X(cat, _level, fmt...)   do { if (vcos_is_log_enabled(cat,_level)) vcos_log_impl(cat,_level,fmt); } while (0)
      |                                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

A potential fix would be to check for fmt not being null but lets leave
that to experts

Upstream-Status: Pending

Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed Jul 30, 2021
1 parent 9d266c1 commit 94e78e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host_applications/linux/libs/bcm_host/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if (WIN32)
set(VCOS_PLATFORM win32)
else ()
set(VCOS_PLATFORM pthreads)
add_definitions(-Wall -Werror)
add_definitions(-Wall -Werror -Wno-error=format-overflow)
endif ()

# set this as we want all the source of vchostif to be available in libbcm_host
Expand Down

0 comments on commit 94e78e3

Please sign in to comment.