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

Some minor warnings during compile on RPi #1525

Closed
PianetaRadio opened this issue Mar 17, 2024 · 1 comment
Closed

Some minor warnings during compile on RPi #1525

PianetaRadio opened this issue Mar 17, 2024 · 1 comment
Labels
build needs test Patches have been submitted but need testing to close issue
Milestone

Comments

@PianetaRadio
Copy link
Contributor

In file included from kenwood.c:32:
kenwood.c: In function ‘kenwood_transaction’:
kenwood.c:273:19: warning: ‘%s’ directive output may be truncated writing between 2 and 2147483645 bytes into a region of size 23969 [-Wformat-truncation=]
  273 |                   "%s called cmd=%s datasize=%d, datasize < cmd length?\n", __func__,
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../include/hamlib/rig.h:3726:90: note: in definition of macro ‘rig_debug’
 3726 | ,fmt,...) do { snprintf(debugmsgsave2,sizeof(debugmsgsave2),fmt,__VA_ARGS__);rig_debug(debug_level,fmt,##__VA_ARGS__); add2debugmsgsave(debugmsgsave2); } while(0)
      |                                                             ^~~

kenwood.c:273:34: note: format string is defined here
  273 |                   "%s called cmd=%s datasize=%d, datasize < cmd length?\n", __func__,
      |                                  ^~
In file included from kenwood.c:32:
kenwood.c:273:19: note: directive argument in the range [1, 2147483644]
  273 |                   "%s called cmd=%s datasize=%d, datasize < cmd length?\n", __func__,
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../include/hamlib/rig.h:3726:90: note: in definition of macro ‘rig_debug’
 3726 | ,fmt,...) do { snprintf(debugmsgsave2,sizeof(debugmsgsave2),fmt,__VA_ARGS__);rig_debug(debug_level,fmt,##__VA_ARGS__); add2debugmsgsave(debugmsgsave2); } while(0)
      |                                                             ^~~

../../include/hamlib/rig.h:3726:45: note: ‘snprintf’ output between 70 and 2147483722 bytes into a destination of size 24000
 3726 | #define rig_debug(debug_level,fmt,...) do { snprintf(debugmsgsave2,sizeof(debugmsgsave2),fmt,__VA_ARGS__);rig_debug(debug_level,fmt,##__VA_ARGS__); add2debugmsgsave(debugmsgsave2); } while(0)
      |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kenwood.c:272:9: note: in expansion of macro ‘rig_debug’
  272 |         rig_debug(RIG_DEBUG_WARN,
      |         ^~~~~~~~~
In file included from ../../src/serial.h:25,
                 from elecraft.c:29:
elecraft.c: In function ‘verify_kenwood_id’:
elecraft.c:465:38: warning: ‘%s’ directive output may be truncated writing between 5 and 2147483645 bytes into a region of size 23971 [-Wformat-truncation=]
  465 |         rig_debug(RIG_DEBUG_VERBOSE, "%s: Rig ID is %s\n", __func__, id);
      |                                      ^~~~~~~~~~~~~~~~~~~~
../../include/hamlib/rig.h:3726:90: note: in definition of macro ‘rig_debug’
 3726 | ,fmt,...) do { snprintf(debugmsgsave2,sizeof(debugmsgsave2),fmt,__VA_ARGS__);rig_debug(debug_level,fmt,##__VA_ARGS__); add2debugmsgsave(debugmsgsave2); } while(0)
      |                                                             ^~~

elecraft.c:465:53: note: format string is defined here
  465 |         rig_debug(RIG_DEBUG_VERBOSE, "%s: Rig ID is %s\n", __func__, id);
      |                                                     ^~
In file included from ../../src/serial.h:25,
                 from elecraft.c:29:
../../include/hamlib/rig.h:3726:45: note: ‘snprintf’ output between 36 and 2147483676 bytes into a destination of size 24000
 3726 | #define rig_debug(debug_level,fmt,...) do { snprintf(debugmsgsave2,sizeof(debugmsgsave2),fmt,__VA_ARGS__);rig_debug(debug_level,fmt,##__VA_ARGS__); add2debugmsgsave(debugmsgsave2); } while(0)
      |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
elecraft.c:465:9: note: in expansion of macro ‘rig_debug’
  465 |         rig_debug(RIG_DEBUG_VERBOSE, "%s: Rig ID is %s\n", __func__, id);
      |         ^~~~~~~~~
elecraft.c:460:38: warning: ‘%s’ directive output may be truncated writing between 5 and 2147483645 bytes into a region of size 23976 [-Wformat-truncation=]
  460 |         rig_debug(RIG_DEBUG_VERBOSE, "%s: Rig (%s) is not a K2 or K3\n", __func__, id);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../include/hamlib/rig.h:3726:90: note: in definition of macro ‘rig_debug’
 3726 | ,fmt,...) do { snprintf(debugmsgsave2,sizeof(debugmsgsave2),fmt,__VA_ARGS__);rig_debug(debug_level,fmt,##__VA_ARGS__); add2debugmsgsave(debugmsgsave2); } while(0)
      |                                                             ^~~

elecraft.c:460:48: note: format string is defined here
  460 |         rig_debug(RIG_DEBUG_VERBOSE, "%s: Rig (%s) is not a K2 or K3\n", __func__, id);
      |                                                ^~
In file included from ../../src/serial.h:25,
                 from elecraft.c:29:
../../include/hamlib/rig.h:3726:45: note: ‘snprintf’ output between 50 and 2147483690 bytes into a destination of size 24000
 3726 | #define rig_debug(debug_level,fmt,...) do { snprintf(debugmsgsave2,sizeof(debugmsgsave2),fmt,__VA_ARGS__);rig_debug(debug_level,fmt,##__VA_ARGS__); add2debugmsgsave(debugmsgsave2); } while(0)
      |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
elecraft.c:460:9: note: in expansion of macro ‘rig_debug’
  460 |         rig_debug(RIG_DEBUG_VERBOSE, "%s: Rig (%s) is not a K2 or K3\n", __func__, id);
      |         ^~~~~~~~~
In file included from g313-posix.c:34:
g313-posix.c: In function ‘g313_set_conf’:
g313-posix.c:569:39: warning: ‘%s’ directive output may be truncated writing between 64 and 2147483645 bytes into a region of size 23973 [-Wformat-truncation=]
  569 |             rig_debug(RIG_DEBUG_WARN, "%s: set if_path %s is too long\n", __func__, val);
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../include/hamlib/rig.h:3726:90: note: in definition of macro ‘rig_debug’
 3726 | ,fmt,...) do { snprintf(debugmsgsave2,sizeof(debugmsgsave2),fmt,__VA_ARGS__);rig_debug(debug_level,fmt,##__VA_ARGS__); add2debugmsgsave(debugmsgsave2); } while(0)
      |                                                             ^~~

g313-posix.c:569:56: note: format string is defined here
  569 |             rig_debug(RIG_DEBUG_WARN, "%s: set if_path %s is too long\n", __func__, val);
      |                                                        ^~
In file included from g313-posix.c:34:
../../include/hamlib/rig.h:3726:45: note: ‘snprintf’ output between 105 and 2147483686 bytes into a destination of size 24000
 3726 | #define rig_debug(debug_level,fmt,...) do { snprintf(debugmsgsave2,sizeof(debugmsgsave2),fmt,__VA_ARGS__);rig_debug(debug_level,fmt,##__VA_ARGS__); add2debugmsgsave(debugmsgsave2); } while(0)
      |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
g313-posix.c:569:13: note: in expansion of macro ‘rig_debug’
  569 |             rig_debug(RIG_DEBUG_WARN, "%s: set if_path %s is too long\n", __func__, val);
      |             ^~~~~~~~~
g313-posix.c:582:39: warning: ‘%s’ directive output may be truncated writing between 64 and 2147483645 bytes into a region of size 23967 [-Wformat-truncation=]
  582 |             rig_debug(RIG_DEBUG_WARN, "%s: set spectrum_path %s is too long\n", __func__,
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../include/hamlib/rig.h:3726:90: note: in definition of macro ‘rig_debug’
 3726 | ,fmt,...) do { snprintf(debugmsgsave2,sizeof(debugmsgsave2),fmt,__VA_ARGS__);rig_debug(debug_level,fmt,##__VA_ARGS__); add2debugmsgsave(debugmsgsave2); } while(0)
      |                                                             ^~~

g313-posix.c:582:62: note: format string is defined here
  582 |            rig_debug(RIG_DEBUG_WARN, "%s: set spectrum_path %s is too long\n", __func__,
      |                                                             ^~
In file included from g313-posix.c:34:
../../include/hamlib/rig.h:3726:45: note: ‘snprintf’ output between 111 and 2147483692 bytes into a destination of size 24000
 3726 | #define rig_debug(debug_level,fmt,...) do { snprintf(debugmsgsave2,sizeof(debugmsgsave2),fmt,__VA_ARGS__);rig_debug(debug_level,fmt,##__VA_ARGS__); add2debugmsgsave(debugmsgsave2); } while(0)
      |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
g313-posix.c:582:13: note: in expansion of macro ‘rig_debug’
  582 |             rig_debug(RIG_DEBUG_WARN, "%s: set spectrum_path %s is too long\n", __func__,
      |             ^~~~~~~~~
g313-posix.c:556:39: warning: ‘%s’ directive output may be truncated writing between 64 and 2147483645 bytes into a region of size 23970 [-Wformat-truncation=]
  556 |             rig_debug(RIG_DEBUG_WARN, "%s: set audio_path %s is too long\n", __func__, val);
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../include/hamlib/rig.h:3726:90: note: in definition of macro ‘rig_debug’
 3726 | ,fmt,...) do { snprintf(debugmsgsave2,sizeof(debugmsgsave2),fmt,__VA_ARGS__);rig_debug(debug_level,fmt,##__VA_ARGS__); add2debugmsgsave(debugmsgsave2); } while(0)
      |                                                             ^~~

g313-posix.c:556:59: note: format string is defined here
  556 |             rig_debug(RIG_DEBUG_WARN, "%s: set audio_path %s is too long\n", __func__, val);
      |                                                           ^~
In file included from g313-posix.c:34:
../../include/hamlib/rig.h:3726:45: note: ‘snprintf’ output between 108 and 2147483689 bytes into a destination of size 24000
 3726 | #define rig_debug(debug_level,fmt,...) do { snprintf(debugmsgsave2,sizeof(debugmsgsave2),fmt,__VA_ARGS__);rig_debug(debug_level,fmt,##__VA_ARGS__); add2debugmsgsave(debugmsgsave2); } while(0)
      |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
g313-posix.c:556:13: note: in expansion of macro ‘rig_debug’
  556 |             rig_debug(RIG_DEBUG_WARN, "%s: set audio_path %s is too long\n", __func__, val);
      |             ^~~~~~~~~
@mdblack98 mdblack98 added this to the 4.6 milestone Mar 17, 2024
@mdblack98 mdblack98 added the needs test Patches have been submitted but need testing to close issue label Mar 17, 2024
@PianetaRadio
Copy link
Contributor Author

No more warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build needs test Patches have been submitted but need testing to close issue
Projects
None yet
Development

No branches or pull requests

2 participants