11340 gettext: NULL pointer errors

Review Request #2076 - Created July 6, 2019 and submitted

Information
Toomas Soome
illumos-gate
11340
c62861a...
Reviewers
general
gettext.c: In function 'expand_metas':
gettext.c:56:26: error: comparison between pointer and integer [-Werror]
  for (cp = out = in; *in != NULL; out++, in++) {
                          ^~
gettext.c:84:7: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  *out = NULL;
       ^
gettext.c: In function 'main':
gettext.c:231:16: error: comparison between pointer and integer [-Werror]
   exit(*domain == NULL);
                ^~
gettext.c:254:39: error: comparison between pointer and integer [-Werror]
  return ((domain == NULL) || (*domain == NULL));
                                       ^~
cc1: all warnings being treated as errors

  
Andrew Stormont
Garrett D'Amore
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...