Snippets for gammu 1.42.0 from Fedora x86_64
Sourced from https://kojipkgs.fedoraproject.org/packages/gammu/1.42.0/23.fc45/data/logs/x86_64/build.log.
-
/builddir/build/BUILD/gammu-1.42.0-build/gammu-1.42.0/smsd/services/files.c:797:48: warning: initializer-string for array of ‘unsigned char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (2 chars into 1 available) [-Wunterminated-string-initialization] 797 | static unsigned char emptyPath[1] = "\0"; | ^~~~ -
/builddir/build/BUILD/gammu-1.42.0-build/gammu-1.42.0/smsd/services/files.c:94:67: warning: ‘%s’ directive writing up to 399 bytes into a region of size between 18 and 81 [-Wformat-overflow=] 94 | "IN%02d%02d%02d_%02d%02d%02d_%02i_%s_%02i.%s", | ^~ 95 | sms->SMS[i].DateTime.Year, sms->SMS[i].DateTime.Month, sms->SMS[i].DateTime.Day, 96 | sms->SMS[i].DateTime.Hour, sms->SMS[i].DateTime.Minute, sms->SMS[i].DateTime.Second, j, buffer2, i, ext); | ~~~~~~~ -
/builddir/build/BUILD/gammu-1.42.0-build/gammu-1.42.0/smsd/services/files.c:597:67: warning: ‘%s’ directive writing up to 399 bytes into a region of size between 25 and 77 [-Wformat-overflow=] 597 | "OUTC%04d%02d%02d_%02d%02d%02d_00_%s_sms%d.%s", | ^~ 598 | 1900 + timeinfo->tm_year, timeinfo->tm_mon + 1, timeinfo->tm_mday, timeinfo->tm_hour, timeinfo->tm_min, timeinfo->tm_sec, buffer2, j, ext); | ~~~~~~~ -
/builddir/build/BUILD/gammu-1.42.0-build/gammu-1.42.0/smsd/core.c:272:6: warning: conflicting types for ‘SMSD_Log’ due to enum/integer mismatch; have ‘void(SMSD_DebugLevel, GSM_SMSDConfig *, const char *, ...)’ {aka ‘void(SMSD_DebugLevel, struct _GSM_SMSDConfig *, const char *, ...)’} [-Wenum-int-mismatch] 272 | void SMSD_Log(SMSD_DebugLevel level, GSM_SMSDConfig *Config, const char *format, ...) | ^~~~~~~~ -
/builddir/build/BUILD/gammu-1.42.0-build/gammu-1.42.0/smsd/core.c:1929:17: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation] 1929 | strncpy(Config->Status->PhoneID, Config->PhoneID, sizeof(Config->Status->PhoneID)); | ^ -
/builddir/build/BUILD/gammu-1.42.0-build/gammu-1.42.0/libgammu/phone/nokia/dct4s40/6510/n6510.c:3497:40: warning: variable ‘blocks’ set but not used [-Wunused-but-set-variable=] 3497 | int i, length = 7, blocks = 0; | ^~~~~~ -
/builddir/build/BUILD/gammu-1.42.0-build/gammu-1.42.0/libgammu/phone/at/atgen.c:2639:23: warning: ‘%s’ directive writing up to 99 bytes into a region of size 91 [-Wformat-overflow=] 2639 | len = sprintf(buffer, "AT+CSCS=\"%s\"\r", buffer3); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/gammu-1.42.0-build/gammu-1.42.0/libgammu/phone/at/atgen.c:3869:31: warning: ‘%i’ directive writing between 1 and 11 bytes into a region of size between 0 and 10 [-Wformat-overflow=] 3869 | len = sprintf(req, "AT+CPBR=%i,%i\r", start, end); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/gammu-1.42.0-build/gammu-1.42.0/libgammu/phone/at/atgen.c:3867:31: warning: ‘__sprintf_chk’ may write a terminating nul past the end of the destination [-Wformat-overflow=] 3867 | len = sprintf(req, "AT+CPBR=%i\r", start); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/gammu-1.42.0-build/gammu-1.42.0/libgammu/phone/at/atgen.c:4299:31: warning: ‘__sprintf_chk’ may write a terminating nul past the end of the destination [-Wformat-overflow=] 4299 | len = sprintf(req, "AT+MPBR=%i\r", entry->Location + Priv->MotorolaFirstMemoryEntry - 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/gammu-1.42.0-build/gammu-1.42.0/libgammu/phone/at/atgen.c:4277:31: warning: ‘%i’ directive writing between 1 and 11 bytes into a region of size 6 [-Wformat-overflow=] 4277 | len = sprintf(req, "AT^SBNR=\"vcf\",%i\r",entry->Location - 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/gammu-1.42.0-build/gammu-1.42.0/libgammu/phone/at/atgen.c:4315:23: warning: ‘%i’ directive writing between 1 and 11 bytes into a region of size between 0 and 10 [-Wformat-overflow=] 4315 | len = sprintf(req, "AT+CPBR=%i,%i\r", entry->Location + Priv->FirstMemoryEntry - 1, endlocation + Priv->FirstMemoryEntry - 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/gammu-1.42.0-build/gammu-1.42.0/libgammu/phone/at/atgen.c:4313:23: warning: ‘__sprintf_chk’ may write a terminating nul past the end of the destination [-Wformat-overflow=] 4313 | len = sprintf(req, "AT+CPBR=%i\r", entry->Location + Priv->FirstMemoryEntry - 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/builddir/build/BUILD/gammu-1.42.0-build/gammu-1.42.0/libgammu/service/backup/backtext.c:119:51: warning: ‘%s’ directive writing up to 999 bytes into a region of size between 987 and 995 [-Wformat-overflow=] 119 | sprintf(buffer3,"%s%02i = %s%c%c",myname,w,buffer2,13,10); | ^~ ~~~~~~~ -
/builddir/build/BUILD/gammu-1.42.0-build/gammu-1.42.0/gammu/common.c:241:9: warning: call to ‘Wcurl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument [-Wattribute-warning] 241 | curl_easy_setopt(dl_handle, CURLOPT_FOLLOWLOCATION, 1); | ^ -
/builddir/build/BUILD/gammu-1.42.0-build/gammu-1.42.0/gammu/common.c:242:9: warning: call to ‘Wcurl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument [-Wattribute-warning] 242 | curl_easy_setopt(dl_handle, CURLOPT_MAXREDIRS, 10); | ^