osmith has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/41191?usp=email )


Change subject: firmware(libosmocore): update function header
......................................................................

firmware(libosmocore): update function header

Update the function header to be the same as in
target/firmware/include/string.h, so it compiles successfully with
GCC 14.2. Otherwise:

  lib/strcmp.c:5:1: error: return type defaults to 'int' [-Wimplicit-int]
      5 | strcmp(s1, s2)
        | ^~~~~~

Change-Id: Ic601d84c3366d9aec661663c80ba9d7586510d63
---
M src/target/firmware/lib/strcmp.c
1 file changed, 1 insertion(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/91/41191/1

diff --git a/src/target/firmware/lib/strcmp.c b/src/target/firmware/lib/strcmp.c
index 9a7fa81..c098d6e 100644
--- a/src/target/firmware/lib/strcmp.c
+++ b/src/target/firmware/lib/strcmp.c
@@ -2,8 +2,7 @@
  * Compare strings:  s1>s2: >0  s1==s2: 0  s1<s2: <0
  */

-strcmp(s1, s2)
-       register char *s1, *s2;
+int strcmp(const char *s1, const char *s2)
 {
        while (*s1 == *s2++)
                if (*s1++=='\0')

--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/41191?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ic601d84c3366d9aec661663c80ba9d7586510d63
Gerrit-Change-Number: 41191
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>

Reply via email to