Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning: In function ‘agw_cb_D_connected_data’: #424

Open
sp00ck opened this issue Sep 28, 2022 · 1 comment
Open

warning: In function ‘agw_cb_D_connected_data’: #424

sp00ck opened this issue Sep 28, 2022 · 1 comment

Comments

@sp00ck
Copy link

sp00ck commented Sep 28, 2022

raspberry pi B+

cmake

-- Checking for module 'libudev'
-- Found libudev, version 247
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args (UDEV) does
not match the name of the calling package (udev). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
cmake/modules/Findudev.cmake:68 (find_package_handle_standard_args)
CMakeLists.txt:274 (find_package)


make

[ 9%] Building C object src/CMakeFiles/appserver.dir/appserver.c.o
/home/user/direwolf/src/appserver.c: In function ‘agw_cb_D_connected_data’:
/home/user/direwolf/src/appserver.c:501:65: warning: ‘%-9s’ directive output may be truncated writing between 9 and 479 bytes into a region of size between 54 and 64 [-Wformat-truncation=]
501 | snprintf (greeting, sizeof(greeting), " %2d %d %-9s [time later]\r",
| ^~~~
/home/user/direwolf/src/appserver.c:501:8: note: ‘snprintf’ output between 40 and 520 bytes into a destination of size 80
501 | snprintf (greeting, sizeof(greeting), " %2d %d %-9s [time later]\r",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
502 | n, session[n].channel, session[n].client_addr);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@dranch
Copy link
Collaborator

dranch commented Sep 28, 2022

Please tell us what OS, OS version, cmake version, and GCC version you are running on your Raspberry Pi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants