mirror of https://github.com/YosysHQ/icestorm.git
icetime: avoid string + int Clang warning
Clang warns that "adding 'int' to a string does not append to the string". Although a false positive it's trivially avoided by using the array index equivalent &PREFIX[1].
This commit is contained in:
parent
cd2610e0fa
commit
e52149944e
|
|
@ -155,7 +155,7 @@ std::string find_chipdb(std::string config_device)
|
|||
#else
|
||||
homepath += getenv("HOME");
|
||||
#endif
|
||||
homepath += std::string(PREFIX + 1) + "/" CHIPDB_SUBDIR "/chipdb-" + config_device + ".txt";
|
||||
homepath += std::string(&PREFIX[1]) + "/" CHIPDB_SUBDIR "/chipdb-" + config_device + ".txt";
|
||||
if (verbose)
|
||||
fprintf(stderr, "Looking for chipdb '%s' at %s\n", config_device.c_str(), homepath.c_str());
|
||||
if (file_test_open(homepath))
|
||||
|
|
|
|||
Loading…
Reference in New Issue