Fix build error in Ubuntu20.04/gcc9.x - invalid attempt to printf null

Description

None

Conclusion

None

Activity

Show:

Jacob Cobbett-Smith September 16, 2020 at 9:30 AM

For reference the error:

In function ‘void extractUrlProtocol(const char*&, StringBuffer*)’, inlined from ‘void splitUrlSections(const char*, const char*&, size_t&, StringBuffer&, StringBuffer*)’ at /hpcc-dev/HPCC-Platform/system/jlib/jsecrets.cpp:148:23: /hpcc-dev/HPCC-Platform/system/jlib/jsecrets.cpp:129:34: error: ‘%s’ directive argument is null [-Werror=format-overflow=] 129 | throw MakeStringException(-1, "Invalid URL %s", url); cc1plus: all warnings being treated as errors

Jacob Cobbett-Smith September 16, 2020 at 9:23 AM

NB: noticed when building containers

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Components

Assignee

Reporter

Priority

Fix versions

Created September 16, 2020 at 9:23 AM
Updated September 16, 2020 at 10:31 AM
Resolved September 16, 2020 at 10:30 AM

Flag notifications