public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: isar-users <isar-users@googlegroups.com>
Subject: minor: example-hello warning
Date: Wed, 6 Jun 2018 12:36:17 +0200	[thread overview]
Message-ID: <64c75499-8e67-a5d5-3c64-f4646c899b15@siemens.com> (raw)

Hi,

just noticed while waiting for a slow qemu-user build:

gcc -DHAVE_CONFIG_H    -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2
-fdebug-prefix-map=/home/builder/example-hello/example-hello-0.2-86cc719=.
-fstack-protector-strong -Wformat -Werror=format-security -c -o hello.o
hello.c
hello.c: In function 'main':
hello.c:14:7: warning: implicit declaration of function 'strcmp'
[-Wimplicit-function-declaration]
   if (strcmp(argv[argc - 1], "--help") == 0) {
       ^~~~~~

Missing #include <string.h> in our hello.c, I suppose.

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

                 reply	other threads:[~2018-06-06 10:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=64c75499-8e67-a5d5-3c64-f4646c899b15@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox